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

Unified Diff: net/url_request/url_request_job_unittest.cc

Issue 2090613002: Remove calls to deprecated MessageLoop methods in net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « net/url_request/url_request_job_factory_impl_unittest.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_job_unittest.cc
diff --git a/net/url_request/url_request_job_unittest.cc b/net/url_request/url_request_job_unittest.cc
index 99856b3c87e81f38ad7cf826ac83d9413e2e9696..61d9188f540bf3290330aa8b54eafa3ec3b43eef 100644
--- a/net/url_request/url_request_job_unittest.cc
+++ b/net/url_request/url_request_job_unittest.cc
@@ -160,7 +160,7 @@ TEST(URLRequestJob, TransactionNotifiedWhenDone) {
req->set_method("GET");
req->Start();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_TRUE(network_layer.done_reading_called());
@@ -272,7 +272,7 @@ TEST(URLRequestJob, EmptyBodySkipFilter) {
req->set_method("GET");
req->Start();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_FALSE(d.request_failed());
EXPECT_EQ(200, req->GetResponseCode());
@@ -296,7 +296,7 @@ TEST(URLRequestJob, InvalidContentGZipTransaction) {
req->set_method("GET");
req->Start();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
// Request failed indicates the request failed before headers were received,
// so should be false.
@@ -324,7 +324,7 @@ TEST(URLRequestJob, SlowFilterRead) {
req->set_method("GET");
req->Start();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_FALSE(d.request_failed());
EXPECT_EQ(200, req->GetResponseCode());
« no previous file with comments | « net/url_request/url_request_job_factory_impl_unittest.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698