summaryrefslogtreecommitdiff
path: root/test/backupstorepatch/testbackupstorepatch.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2013-09-30 08:29:03 +0000
committerChris Wilson <chris+github@qwirx.com>2013-09-30 08:29:03 +0000
commit74ae28b464f3bd691b7e24f6eb0ace619e290114 (patch)
tree1a1f2f27c8b90d213ebf5abde9007b2f914e5307 /test/backupstorepatch/testbackupstorepatch.cpp
parentdae6303135c66acdd0e4f3985c6e5c95334aea7f (diff)
Fix test fallout from SendStream ptr to auto_ptr change.
You can only pass a std::auto_ptr<IOStream> to SendStream now. Nothing else will do for Clang. But you can cast a std::auto_ptr<subclass>.
Diffstat (limited to 'test/backupstorepatch/testbackupstorepatch.cpp')
-rw-r--r--test/backupstorepatch/testbackupstorepatch.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/backupstorepatch/testbackupstorepatch.cpp b/test/backupstorepatch/testbackupstorepatch.cpp
index fab56523..42594652 100644
--- a/test/backupstorepatch/testbackupstorepatch.cpp
+++ b/test/backupstorepatch/testbackupstorepatch.cpp
@@ -22,6 +22,7 @@
#include "BackupStoreDirectory.h"
#include "BackupStoreException.h"
#include "BackupStoreFile.h"
+#include "BackupStoreFileEncodeStream.h"
#include "BackupStoreFilenameClear.h"
#include "BackupStoreInfo.h"
#include "BoxPortsAndFiles.h"
@@ -370,7 +371,7 @@ int test(int argc, const char *argv[])
BackupProtocolListDirectory::RootDirectory, storeFilename));
std::auto_ptr<BackupProtocolSuccess> stored(protocol.QueryStoreFile(
BackupProtocolListDirectory::RootDirectory, ModificationTime,
- ModificationTime, 0 /* no diff from file ID */, storeFilename, *upload));
+ ModificationTime, 0 /* no diff from file ID */, storeFilename, upload));
test_files[0].IDOnServer = stored->GetObjectID();
test_files[0].IsCompletelyDifferent = true;
ModificationTime += MODIFICATION_TIME_INC;
@@ -409,7 +410,8 @@ int test(int argc, const char *argv[])
// Upload the patch to the store
std::auto_ptr<BackupProtocolSuccess> stored(protocol.QueryStoreFile(
BackupProtocolListDirectory::RootDirectory, ModificationTime,
- ModificationTime, isCompletelyDifferent?(0):(diffFromID), storeFilename, *patchStream));
+ ModificationTime, isCompletelyDifferent?(0):(diffFromID),
+ storeFilename, patchStream));
ModificationTime += MODIFICATION_TIME_INC;
// Store details