summaryrefslogtreecommitdiffstats
path: root/base/mac/libdispatch_task_runner_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/mac/libdispatch_task_runner_unittest.cc')
-rw-r--r--base/mac/libdispatch_task_runner_unittest.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/base/mac/libdispatch_task_runner_unittest.cc b/base/mac/libdispatch_task_runner_unittest.cc
index 5ebe8d2..cf0dd0e 100644
--- a/base/mac/libdispatch_task_runner_unittest.cc
+++ b/base/mac/libdispatch_task_runner_unittest.cc
@@ -22,7 +22,7 @@ class LibDispatchTaskRunnerTest : public testing::Test {
void DispatchLastTask() {
dispatch_async(task_runner_->GetDispatchQueue(), ^{
(&message_loop_)->PostTask(FROM_HERE,
- MessageLoop::QuitWhenIdleClosure());
+ base::MessageLoop::QuitWhenIdleClosure());
});
message_loop_.Run();
task_runner_->Shutdown();
@@ -52,7 +52,7 @@ class LibDispatchTaskRunnerTest : public testing::Test {
}
// The message loop for the test main thread.
- MessageLoop message_loop_;
+ base::MessageLoop message_loop_;
// The task runner under test.
scoped_refptr<base::mac::LibDispatchTaskRunner> task_runner_;
@@ -117,7 +117,7 @@ TEST_F(LibDispatchTaskRunnerTest, PostTaskWithinTask) {
TEST_F(LibDispatchTaskRunnerTest, NoMessageLoop) {
task_runner_->PostTask(FROM_HERE, base::BindBlock(^{
TaskOrderMarker marker(this,
- base::StringPrintf("MessageLoop = %p", MessageLoop::current()));
+ base::StringPrintf("MessageLoop = %p", base::MessageLoop::current()));
}));
DispatchLastTask();
@@ -158,7 +158,7 @@ TEST_F(LibDispatchTaskRunnerTest, NonNestable) {
task_runner_->PostNonNestableTask(FROM_HERE, base::BindBlock(^{
TaskOrderMarker marker(this, "Second NonNestable");
(&message_loop_)->PostTask(FROM_HERE,
- MessageLoop::QuitWhenIdleClosure());
+ base::MessageLoop::QuitWhenIdleClosure());
}));
}));
message_loop_.Run();
@@ -183,7 +183,8 @@ TEST_F(LibDispatchTaskRunnerTest, PostDelayed) {
task_runner_->PostDelayedTask(FROM_HERE, base::BindBlock(^{
TaskOrderMarker marker(this, "Timed");
run_time = base::TimeTicks::Now();
- (&message_loop_)->PostTask(FROM_HERE, MessageLoop::QuitWhenIdleClosure());
+ (&message_loop_)->PostTask(FROM_HERE,
+ base::MessageLoop::QuitWhenIdleClosure());
}), delta);
task_runner_->PostTask(FROM_HERE, BoundRecordTaskOrder(this, "Second"));
message_loop_.Run();