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

Unified Diff: chrome/service/cloud_print/printer_job_handler_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
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler.cc ('k') | chrome/service/service_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/printer_job_handler_unittest.cc
diff --git a/chrome/service/cloud_print/printer_job_handler_unittest.cc b/chrome/service/cloud_print/printer_job_handler_unittest.cc
index 58b4ed8b1cf0e69048c5e37bc632bf672796aa99..d8b27e00c87a5a22305b22942d5fb6a5e1ef36e9 100644
--- a/chrome/service/cloud_print/printer_job_handler_unittest.cc
+++ b/chrome/service/cloud_print/printer_job_handler_unittest.cc
@@ -11,6 +11,7 @@
#include "base/md5.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread_task_runner_handle.h"
@@ -618,7 +619,7 @@ void PrinterJobHandlerTest::BeginTest(int timeout_seconds) {
base::MessageLoop::current()),
base::TimeDelta::FromSeconds(timeout_seconds));
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
void PrinterJobHandlerTest::SendCapsAndDefaults(
@@ -638,7 +639,7 @@ void PrinterJobHandlerTest::TearDown() {
}
void PrinterJobHandlerTest::IdleOut() {
- base::MessageLoop::current()->RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
MockPrintServerWatcher::MockPrintServerWatcher() : delegate_(NULL) {
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler.cc ('k') | chrome/service/service_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698