Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(506)

Unified Diff: google_apis/drive/base_requests_server_unittest.cc

Issue 2467133004: Correct net::EmbeddedTestServer usage in google_apis_unittests. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | google_apis/drive/base_requests_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | google_apis/drive/base_requests_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698