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

Unified Diff: chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc

Issue 2083363002: Remove calls to deprecated MessageLoop methods in chrome. (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
Index: chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc
diff --git a/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc b/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc
index 2bdea6d84a113a6cebeeb3e51be6bb33c93bb854..c76ab7e92a7125b2283fc50a909db2c3a7838110 100644
--- a/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc
+++ b/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc
@@ -335,7 +335,7 @@ TEST_F(CloudPrintURLFetcherBasicTest, HandleRawResponse) {
SetHandleRawResponse(true);
CreateFetcher(test_server.GetURL("/echo"), 0);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(CloudPrintURLFetcherBasicTest, HandleRawData) {
@@ -345,7 +345,7 @@ TEST_F(CloudPrintURLFetcherBasicTest, HandleRawData) {
SetHandleRawData(true);
CreateFetcher(test_server.GetURL("/echo"), 0);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(CloudPrintURLFetcherOverloadTest, Protect) {
@@ -356,7 +356,7 @@ TEST_F(CloudPrintURLFetcherOverloadTest, Protect) {
GURL url(test_server.GetURL("/defaultresponse"));
CreateFetcher(url, 11);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
TEST_F(CloudPrintURLFetcherRetryBackoffTest, GiveUp) {
@@ -367,7 +367,7 @@ TEST_F(CloudPrintURLFetcherRetryBackoffTest, GiveUp) {
GURL url(test_server.GetURL("/defaultresponse"));
CreateFetcher(url, 11);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
} // namespace cloud_print

Powered by Google App Engine
This is Rietveld 408576698