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

Unified Diff: chromeos/process_proxy/process_proxy_unittest.cc

Issue 2314853004: Remove calls to deprecated MessageLoop methods in chromeos. (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
Index: chromeos/process_proxy/process_proxy_unittest.cc
diff --git a/chromeos/process_proxy/process_proxy_unittest.cc b/chromeos/process_proxy/process_proxy_unittest.cc
index 292b3b673c786e4c90151e3bcae421baf5a5741d..76e3c6db42a8c92728d4fdeabff116a152cc843f 100644
--- a/chromeos/process_proxy/process_proxy_unittest.cc
+++ b/chromeos/process_proxy/process_proxy_unittest.cc
@@ -12,6 +12,7 @@
#include "base/location.h"
#include "base/process/kill.h"
#include "base/process/process.h"
+#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "base/threading/thread_task_runner_handle.h"
@@ -207,14 +208,14 @@ class ProcessProxyTest : public testing::Test {
// Wait until all data from output watcher is received (QuitTask will be
// fired on watcher thread).
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&ProcessProxyTest::EndRegistryTest, base::Unretained(this)));
// Wait until we clean up the process proxy.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
std::unique_ptr<TestRunner> test_runner_;

Powered by Google App Engine
This is Rietveld 408576698