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

Unified Diff: chromeos/process_proxy/process_proxy_unittest.cc

Issue 15774005: chromeos: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | « chromeos/power/power_manager_handler_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ad0ba4bcaba5ee5002eaeeae06d22d8942320da3..c98c80c6c67af6e7398fc6e6a827a36d1d49abe0 100644
--- a/chromeos/process_proxy/process_proxy_unittest.cc
+++ b/chromeos/process_proxy/process_proxy_unittest.cc
@@ -77,8 +77,8 @@ class RegistryTestRunner : public TestRunner {
}
if (!valid || TestSucceeded()) {
- MessageLoop::current()->PostTask(FROM_HERE,
- MessageLoop::QuitClosure());
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
}
}
@@ -137,8 +137,8 @@ class RegistryNotifiedOnProcessExitTestRunner : public TestRunner {
return;
}
EXPECT_EQ("exit", type);
- MessageLoop::current()->PostTask(FROM_HERE,
- MessageLoop::QuitClosure());
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
}
virtual void StartRegistryTest(ProcessProxyRegistry* registry) OVERRIDE {
@@ -163,8 +163,8 @@ class SigIntTestRunner : public TestRunner {
// We may receive ^C on stdout, but we don't care about that, as long as we
// eventually received exit event.
if (type == "exit") {
- MessageLoop::current()->PostTask(FROM_HERE,
- MessageLoop::QuitClosure());
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
}
}
@@ -202,27 +202,27 @@ class ProcessProxyTest : public testing::Test {
if (status == base::TERMINATION_STATUS_STILL_RUNNING)
base::KillProcess(pid_, 0, true);
- MessageLoop::current()->PostTask(FROM_HERE,
- MessageLoop::QuitClosure());
+ base::MessageLoop::current()->PostTask(FROM_HERE,
+ base::MessageLoop::QuitClosure());
}
void RunTest() {
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&ProcessProxyTest::InitRegistryTest,
base::Unretained(this)));
// Wait until all data from output watcher is received (QuitTask will be
// fired on watcher thread).
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&ProcessProxyTest::EndRegistryTest,
base::Unretained(this)));
// Wait until we clean up the process proxy.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
}
scoped_ptr<TestRunner> test_runner_;
@@ -231,7 +231,7 @@ class ProcessProxyTest : public testing::Test {
ProcessProxyRegistry* registry_;
pid_t pid_;
- MessageLoop message_loop_;
+ base::MessageLoop message_loop_;
};
// Test will open new process that will run cat command, and verify data we
« no previous file with comments | « chromeos/power/power_manager_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698