[Box Backup-commit] COMMIT r3292 - box/trunk/test/backupstore
subversion at boxbackup.org
subversion at boxbackup.org
Sun Mar 2 08:57:51 GMT 2014
Author: chris
Date: 2014-03-02 08:57:50 +0000 (Sun, 02 Mar 2014)
New Revision: 3292
Modified:
box/trunk/test/backupstore/testbackupstore.cpp
Log:
Simplify code
Modified: box/trunk/test/backupstore/testbackupstore.cpp
===================================================================
--- box/trunk/test/backupstore/testbackupstore.cpp 2014-03-01 10:42:48 UTC (rev 3291)
+++ box/trunk/test/backupstore/testbackupstore.cpp 2014-03-02 08:57:50 UTC (rev 3292)
@@ -2037,9 +2037,7 @@
// BLOCK
{
// Open a connection to the server
- std::auto_ptr<BackupProtocolCallable> apProtocol(new
- BackupProtocolClient(open_conn("localhost", context)));
- BackupProtocolCallable& protocol(*apProtocol);
+ BackupProtocolClient protocol(open_conn("localhost", context));
// Check the version
std::auto_ptr<BackupProtocolVersion> serverVersion(protocol.QueryVersion(BACKUP_STORE_SERVER_VERSION));
@@ -2121,9 +2119,7 @@
// BLOCK
{
// Open a connection to the server
- std::auto_ptr<BackupProtocolCallable> apProtocol(new
- BackupProtocolClient(open_conn("localhost", context)));
- BackupProtocolCallable& protocol(*apProtocol);
+ BackupProtocolClient protocol(open_conn("localhost", context));
// Check the version
std::auto_ptr<BackupProtocolVersion> serverVersion(protocol.QueryVersion(BACKUP_STORE_SERVER_VERSION));
@@ -2305,9 +2301,7 @@
// Try to upload a file and create a directory, and check an error is generated
{
// Open a connection to the server
- std::auto_ptr<BackupProtocolCallable> apProtocol =
- test_server_login("localhost", context);
- BackupProtocolCallable& protocol(*apProtocol);
+ BackupProtocolClient protocol(open_conn("localhost", context));
int64_t modtime = 0;
More information about the Boxbackup-commit
mailing list