Lines Matching refs:MessageLoop
46 return MessageLoop::CreateMessagePumpForType(MessageLoop::TYPE_DEFAULT); in TypeDefaultMessagePumpFactory()
50 return MessageLoop::CreateMessagePumpForType(MessageLoop::TYPE_IO); in TypeIOMessagePumpFactory()
54 return MessageLoop::CreateMessagePumpForType(MessageLoop::TYPE_UI); in TypeUIMessagePumpFactory()
85 MessageLoop::current()->QuitWhenIdle(); in SlowFunc()
100 MessageLoop::current()->SetNestableTasksAllowed(true); in SubPumpFunc()
106 MessageLoop::current()->QuitWhenIdle(); in SubPumpFunc()
110 MessageLoop loop(MessageLoop::TYPE_UI); in RunTest_PostDelayedTask_SharedTimer_SubPump()
240 MessageLoop::current()->SetNestableTasksAllowed(true); in MessageBoxFunc()
262 MessageLoop::current()->SetNestableTasksAllowed(true); in RecursiveFunc()
263 MessageLoop::current()->PostTask( in RecursiveFunc()
272 MessageLoop::current()->QuitWhenIdle(); in QuitFunc()
276 void RecursiveFuncWin(MessageLoop* target, in RecursiveFuncWin()
325 void RunTest_RecursiveDenial2(MessageLoop::Type message_loop_type) { in RunTest_RecursiveDenial2()
326 MessageLoop loop(message_loop_type); in RunTest_RecursiveDenial2()
336 MessageLoop::current(), in RunTest_RecursiveDenial2()
343 MessageLoop::current()->Run(); in RunTest_RecursiveDenial2()
369 void RunTest_RecursiveSupport2(MessageLoop::Type message_loop_type) { in RunTest_RecursiveSupport2()
370 MessageLoop loop(message_loop_type); in RunTest_RecursiveSupport2()
380 MessageLoop::current(), in RunTest_RecursiveSupport2()
387 MessageLoop::current()->Run(); in RunTest_RecursiveSupport2()
420 MessageLoop::current()->task_runner()->PostTask( in PostNTasksThenQuit()
423 MessageLoop::current()->QuitWhenIdle(); in PostNTasksThenQuit()
491 options.message_loop_type = MessageLoop::TYPE_IO; in RunTest_IOHandler()
494 MessageLoop* thread_loop = thread.message_loop(); in RunTest_IOHandler()
532 options.message_loop_type = MessageLoop::TYPE_IO; in RunTest_WaitForIO()
535 MessageLoop* thread_loop = thread.message_loop(); in RunTest_WaitForIO()
593 RunTest_RecursiveDenial2(MessageLoop::TYPE_DEFAULT); in TEST()
594 RunTest_RecursiveDenial2(MessageLoop::TYPE_UI); in TEST()
595 RunTest_RecursiveDenial2(MessageLoop::TYPE_IO); in TEST()
600 RunTest_RecursiveSupport2(MessageLoop::TYPE_UI); in TEST()
604 class DummyTaskObserver : public MessageLoop::TaskObserver {
640 MessageLoop loop; in TEST()
660 MessageLoop loop; in TEST()
692 MessageLoop::current()->QuitWhenIdle(); in OnFileCanWriteWithoutBlocking()
695 MessageLoop::current()->QuitWhenIdle(); in OnFileCanReadWithoutBlocking()
785 class MLDestructionObserver : public MessageLoop::DestructionObserver {
810 MessageLoop* loop = new MessageLoop; in TEST()
834 MessageLoop loop; in TEST()
842 MessageLoop::current()->task_runner()->PostTask( in TEST()
844 Bind(&MessageLoop::QuitWhenIdle, Unretained(MessageLoop::current()))); in TEST()
854 MessageLoop loop(MessageLoop::TYPE_UI); in TEST()
855 EXPECT_TRUE(loop.IsType(MessageLoop::TYPE_UI)); in TEST()
856 EXPECT_FALSE(loop.IsType(MessageLoop::TYPE_IO)); in TEST()
857 EXPECT_FALSE(loop.IsType(MessageLoop::TYPE_DEFAULT)); in TEST()
864 MessageLoop::current()->PostTask(FROM_HERE, base::Bind(&EmptyFunction)); in PostMultipleTasks()
865 MessageLoop::current()->PostTask(FROM_HERE, base::Bind(&EmptyFunction)); in PostMultipleTasks()
893 MessageLoop::current()->PostTask(FROM_HERE, base::Bind(&PostMultipleTasks)); in TestWndProcThunk()
896 MessageLoop::current()->PostTask(FROM_HERE, in TestWndProcThunk()
902 MessageLoop::current()->SetNestableTasksAllowed(true); in TestWndProcThunk()
904 MessageLoop::current()->PostTask(FROM_HERE, in TestWndProcThunk()
919 MessageLoop::current()->QuitWhenIdle(); in TestWndProcThunk()
926 MessageLoop loop(MessageLoop::TYPE_UI); in TEST()
949 MessageLoop loop; in TEST()
958 MessageLoop loop; in TEST()
973 MessageLoop loop; in TEST()
974 std::unique_ptr<MessageLoop> unbound_loop(MessageLoop::CreateUnbound( in TEST()
975 MessageLoop::TYPE_DEFAULT, MessageLoop::MessagePumpFactoryCallback())); in TEST()
977 EXPECT_EQ(&loop, MessageLoop::current()); in TEST()
984 MessageLoop loop; in TEST()