diff options
Diffstat (limited to 'chrome_frame/test/chrome_frame_automation_mock.cc')
-rw-r--r-- | chrome_frame/test/chrome_frame_automation_mock.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome_frame/test/chrome_frame_automation_mock.cc b/chrome_frame/test/chrome_frame_automation_mock.cc index 8b553a5..d307712 100644 --- a/chrome_frame/test/chrome_frame_automation_mock.cc +++ b/chrome_frame/test/chrome_frame_automation_mock.cc @@ -16,7 +16,8 @@ TEST(ChromeFrame, Launch) { loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); mock_launch.Navigate("about:blank"); - loop.RunWithDispatcher(NULL); + base::RunLoop run_loop(NULL); + run_loop.Run(); EXPECT_TRUE(mock_launch.launch_result()); } @@ -28,7 +29,8 @@ TEST(ChromeFrame, Navigate) { loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); mock_navigate.NavigateRelativeFile(L"postmessage_basic_frame.html"); - loop.RunWithDispatcher(NULL); + base::RunLoop run_loop(NULL); + run_loop.Run(); EXPECT_FALSE(mock_navigate.navigation_result()); } @@ -40,7 +42,8 @@ TEST(ChromeFrame, PostMessage) { loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); mock_postmessage.NavigateRelativeFile(L"postmessage_basic_frame.html"); - loop.RunWithDispatcher(NULL); + base::RunLoop run_loop(NULL); + run_loop.Run(); EXPECT_FALSE(mock_postmessage.postmessage_result()); } @@ -52,7 +55,8 @@ TEST(ChromeFrame, RequestStart) { loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); mock_request_start.NavigateRelative(L"postmessage_basic_frame.html"); - loop.RunWithDispatcher(NULL); + base::RunLoop run_loop(NULL); + run_loop.Run(); EXPECT_TRUE(mock_request_start.request_start_result()); } |