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

Unified Diff: headless/public/util/generic_url_request_job_test.cc

Issue 2311373002: Remove calls to deprecated MessageLoop methods in headless. (Closed)
Patch Set: Created 4 years, 3 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/public/util/generic_url_request_job_test.cc
diff --git a/headless/public/util/generic_url_request_job_test.cc b/headless/public/util/generic_url_request_job_test.cc
index 74d35940d886f84979f3bb689a7dff8cd5e89e41..474b03eed775d507d674145c99001135bdf23da6 100644
--- a/headless/public/util/generic_url_request_job_test.cc
+++ b/headless/public/util/generic_url_request_job_test.cc
@@ -146,7 +146,7 @@ class GenericURLRequestJobTest : public testing::Test {
std::unique_ptr<net::URLRequest> request(url_request_context_.CreateRequest(
url, net::DEFAULT_PRIORITY, &request_delegate_));
request->Start();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
return request;
}
@@ -179,7 +179,7 @@ TEST_F(GenericURLRequestJobTest, BasicRequestParams) {
request->SetExtraRequestHeaderByName("User-Agent", "TestBrowser", true);
request->SetExtraRequestHeaderByName("Accept", "text/plain", true);
request->Start();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
std::string expected_request_json =
"{\"url\": \"https://example.com/\","
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698