Index: google_apis/drive/base_requests_server_unittest.cc |
diff --git a/google_apis/drive/base_requests_server_unittest.cc b/google_apis/drive/base_requests_server_unittest.cc |
index 822e5a631f9dbf299bad9919298a216c71bb3d83..6f815b99aa211d489c28dd61ec1b0e6c8d08f267 100644 |
--- a/google_apis/drive/base_requests_server_unittest.cc |
+++ b/google_apis/drive/base_requests_server_unittest.cc |
@@ -47,11 +47,12 @@ class BaseRequestsServerTest : public testing::Test { |
message_loop_.task_runner(), |
kTestUserAgent)); |
- ASSERT_TRUE(test_server_.Start()); |
+ ASSERT_TRUE(test_server_.InitializeAndListen()); |
test_server_.RegisterRequestHandler( |
base::Bind(&test_util::HandleDownloadFileRequest, |
test_server_.base_url(), |
base::Unretained(&http_request_))); |
+ test_server_.StartAcceptingConnections(); |
} |
// Returns a temporary file path suitable for storing the cache file. |