| Index: sync/internal_api/syncapi_server_connection_manager_unittest.cc
|
| diff --git a/sync/internal_api/syncapi_server_connection_manager_unittest.cc b/sync/internal_api/syncapi_server_connection_manager_unittest.cc
|
| index e438ac181fc06e9c8a17f9a68b6cd76841d8e1da..208b3a2d763c118221a77d1a20de9b6989bd1255 100644
|
| --- a/sync/internal_api/syncapi_server_connection_manager_unittest.cc
|
| +++ b/sync/internal_api/syncapi_server_connection_manager_unittest.cc
|
| @@ -72,10 +72,8 @@ TEST(SyncAPIServerConnectionManagerTest, VeryEarlyAbortPost) {
|
| "server", 0, true, new BlockingHttpPostFactory(), &signal);
|
|
|
| ServerConnectionManager::PostBufferParams params;
|
| - ScopedServerStatusWatcher watcher(&server, ¶ms.response);
|
|
|
| - bool result = server.PostBufferToPath(
|
| - ¶ms, "/testpath", "testauth", &watcher);
|
| + bool result = server.PostBufferToPath(¶ms, "/testpath", "testauth");
|
|
|
| EXPECT_FALSE(result);
|
| EXPECT_EQ(HttpResponse::CONNECTION_UNAVAILABLE,
|
| @@ -89,11 +87,9 @@ TEST(SyncAPIServerConnectionManagerTest, EarlyAbortPost) {
|
| "server", 0, true, new BlockingHttpPostFactory(), &signal);
|
|
|
| ServerConnectionManager::PostBufferParams params;
|
| - ScopedServerStatusWatcher watcher(&server, ¶ms.response);
|
|
|
| signal.Signal();
|
| - bool result = server.PostBufferToPath(
|
| - ¶ms, "/testpath", "testauth", &watcher);
|
| + bool result = server.PostBufferToPath(¶ms, "/testpath", "testauth");
|
|
|
| EXPECT_FALSE(result);
|
| EXPECT_EQ(HttpResponse::CONNECTION_UNAVAILABLE,
|
| @@ -107,7 +103,6 @@ TEST(SyncAPIServerConnectionManagerTest, AbortPost) {
|
| "server", 0, true, new BlockingHttpPostFactory(), &signal);
|
|
|
| ServerConnectionManager::PostBufferParams params;
|
| - ScopedServerStatusWatcher watcher(&server, ¶ms.response);
|
|
|
| base::Thread abort_thread("Test_AbortThread");
|
| ASSERT_TRUE(abort_thread.Start());
|
| @@ -117,8 +112,7 @@ TEST(SyncAPIServerConnectionManagerTest, AbortPost) {
|
| base::Unretained(&signal)),
|
| TestTimeouts::tiny_timeout());
|
|
|
| - bool result = server.PostBufferToPath(
|
| - ¶ms, "/testpath", "testauth", &watcher);
|
| + bool result = server.PostBufferToPath(¶ms, "/testpath", "testauth");
|
|
|
| EXPECT_FALSE(result);
|
| EXPECT_EQ(HttpResponse::CONNECTION_UNAVAILABLE,
|
|
|