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

Unified Diff: chrome_frame/test/chrome_frame_automation_mock.cc

Issue 15935013: chrome_frame: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license 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 | « chrome_frame/test/chrome_frame_automation_mock.h ('k') | chrome_frame/test/chrome_frame_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/chrome_frame_automation_mock.cc
diff --git a/chrome_frame/test/chrome_frame_automation_mock.cc b/chrome_frame/test/chrome_frame_automation_mock.cc
index d3077124943dcbfba2405c6e509bbf4f2c838a19..06c456b041b6cd131f7cdb86c0ea0fddfbcbed0a 100644
--- a/chrome_frame/test/chrome_frame_automation_mock.cc
+++ b/chrome_frame/test/chrome_frame_automation_mock.cc
@@ -9,11 +9,12 @@
const base::TimeDelta kLongWaitTimeout = base::TimeDelta::FromSeconds(25);
TEST(ChromeFrame, Launch) {
- MessageLoopForUI loop;
+ base::MessageLoopForUI loop;
AutomationMockLaunch mock_launch(&loop,
kLongWaitTimeout.InMilliseconds());
- loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
+ loop.PostDelayedTask(
+ FROM_HERE, base::MessageLoop::QuitClosure(), kLongWaitTimeout);
mock_launch.Navigate("about:blank");
base::RunLoop run_loop(NULL);
@@ -22,11 +23,12 @@ TEST(ChromeFrame, Launch) {
}
TEST(ChromeFrame, Navigate) {
- MessageLoopForUI loop;
+ base::MessageLoopForUI loop;
AutomationMockNavigate mock_navigate(&loop,
kLongWaitTimeout.InMilliseconds());
- loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
+ loop.PostDelayedTask(
+ FROM_HERE, base::MessageLoop::QuitClosure(), kLongWaitTimeout);
mock_navigate.NavigateRelativeFile(L"postmessage_basic_frame.html");
base::RunLoop run_loop(NULL);
@@ -35,11 +37,12 @@ TEST(ChromeFrame, Navigate) {
}
TEST(ChromeFrame, PostMessage) {
- MessageLoopForUI loop;
+ base::MessageLoopForUI loop;
AutomationMockPostMessage mock_postmessage(&loop,
kLongWaitTimeout.InMilliseconds());
- loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
+ loop.PostDelayedTask(
+ FROM_HERE, base::MessageLoop::QuitClosure(), kLongWaitTimeout);
mock_postmessage.NavigateRelativeFile(L"postmessage_basic_frame.html");
base::RunLoop run_loop(NULL);
@@ -48,11 +51,12 @@ TEST(ChromeFrame, PostMessage) {
}
TEST(ChromeFrame, RequestStart) {
- MessageLoopForUI loop;
+ base::MessageLoopForUI loop;
AutomationMockHostNetworkRequestStart mock_request_start(
&loop, kLongWaitTimeout.InMilliseconds());
- loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
+ loop.PostDelayedTask(
+ FROM_HERE, base::MessageLoop::QuitClosure(), kLongWaitTimeout);
mock_request_start.NavigateRelative(L"postmessage_basic_frame.html");
base::RunLoop run_loop(NULL);
« no previous file with comments | « chrome_frame/test/chrome_frame_automation_mock.h ('k') | chrome_frame/test/chrome_frame_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698