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

Unified Diff: remoting/base/auto_thread_unittest.cc

Issue 14314026: remoting: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | « remoting/base/auto_thread_task_runner_unittest.cc ('k') | remoting/host/chromoting_host_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/auto_thread_unittest.cc
diff --git a/remoting/base/auto_thread_unittest.cc b/remoting/base/auto_thread_unittest.cc
index cfbb86bf57a86c61a31a72c792c4943edcb407f9..f78bbf986136406aebcc82816f616b417f12bdd6 100644
--- a/remoting/base/auto_thread_unittest.cc
+++ b/remoting/base/auto_thread_unittest.cc
@@ -67,8 +67,9 @@ class AutoThreadTest : public testing::Test {
// references created in tests are gone. We also post a delayed quit
// task to |message_loop_| so the test will not hang on failure.
main_task_runner_ = NULL;
- message_loop_.PostDelayedTask(
- FROM_HERE, MessageLoop::QuitClosure(), base::TimeDelta::FromSeconds(5));
+ message_loop_.PostDelayedTask(FROM_HERE,
+ base::MessageLoop::QuitClosure(),
+ base::TimeDelta::FromSeconds(5));
message_loop_.Run();
}
@@ -87,10 +88,10 @@ class AutoThreadTest : public testing::Test {
protected:
void QuitMainMessageLoop() {
message_loop_quit_correctly_ = true;
- message_loop_.PostTask(FROM_HERE, MessageLoop::QuitClosure());
+ message_loop_.PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
}
- MessageLoop message_loop_;
+ base::MessageLoop message_loop_;
bool message_loop_quit_correctly_;
scoped_refptr<AutoThreadTaskRunner> main_task_runner_;
};
@@ -145,9 +146,10 @@ TEST_F(AutoThreadTest, ThreadDependency) {
#if defined(OS_WIN)
TEST_F(AutoThreadTest, ThreadWithComMta) {
scoped_refptr<base::TaskRunner> task_runner =
- AutoThread::CreateWithLoopAndComInitTypes(
- kThreadName, main_task_runner_, MessageLoop::TYPE_DEFAULT,
- AutoThread::COM_INIT_MTA);
+ AutoThread::CreateWithLoopAndComInitTypes(kThreadName,
+ main_task_runner_,
+ base::MessageLoop::TYPE_DEFAULT,
+ AutoThread::COM_INIT_MTA);
EXPECT_TRUE(task_runner.get());
// Post a task to query the COM apartment type.
@@ -170,9 +172,10 @@ TEST_F(AutoThreadTest, ThreadWithComMta) {
TEST_F(AutoThreadTest, ThreadWithComSta) {
scoped_refptr<base::TaskRunner> task_runner =
- AutoThread::CreateWithLoopAndComInitTypes(
- kThreadName, main_task_runner_, MessageLoop::TYPE_UI,
- AutoThread::COM_INIT_STA);
+ AutoThread::CreateWithLoopAndComInitTypes(kThreadName,
+ main_task_runner_,
+ base::MessageLoop::TYPE_UI,
+ AutoThread::COM_INIT_STA);
EXPECT_TRUE(task_runner.get());
// Post a task to query the COM apartment type.
« no previous file with comments | « remoting/base/auto_thread_task_runner_unittest.cc ('k') | remoting/host/chromoting_host_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698