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

Unified Diff: chrome_frame/test/chrome_frame_automation_mock.cc

Issue 10019015: Update uses of TimeDelta in chrome_frame/*. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 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
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 1f50b2efb8a2558fe3cb8c90937c60d2ac5cf681..596e103b53529c753bfac50ed8a1cb75a131524d 100644
--- a/chrome_frame/test/chrome_frame_automation_mock.cc
+++ b/chrome_frame/test/chrome_frame_automation_mock.cc
@@ -12,7 +12,9 @@ TEST(ChromeFrame, Launch) {
MessageLoopForUI loop;
AutomationMockLaunch mock_launch(&loop, kLongWaitTimeout);
grt (UTC plus 2) 2012/04/17 14:13:32 and this would become kLongWaitTimeout.ToMilliseco
- loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
+ loop.PostDelayedTask(FROM_HERE,
+ MessageLoop::QuitClosure(),
+ base::TimeDelta::FromMilliseconds(kLongWaitTimeout));
mock_launch.Navigate("about:blank");
loop.RunWithDispatcher(NULL);
@@ -23,7 +25,9 @@ TEST(ChromeFrame, Navigate) {
MessageLoopForUI loop;
AutomationMockNavigate mock_navigate(&loop, kLongWaitTimeout);
- loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
+ loop.PostDelayedTask(FROM_HERE,
+ MessageLoop::QuitClosure(),
+ base::TimeDelta::FromMilliseconds(kLongWaitTimeout));
mock_navigate.NavigateRelativeFile(L"postmessage_basic_frame.html");
loop.RunWithDispatcher(NULL);
@@ -34,7 +38,9 @@ TEST(ChromeFrame, PostMessage) {
MessageLoopForUI loop;
AutomationMockPostMessage mock_postmessage(&loop, kLongWaitTimeout);
- loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
+ loop.PostDelayedTask(FROM_HERE,
+ MessageLoop::QuitClosure(),
+ base::TimeDelta::FromMilliseconds(kLongWaitTimeout));
mock_postmessage.NavigateRelativeFile(L"postmessage_basic_frame.html");
loop.RunWithDispatcher(NULL);
@@ -46,7 +52,9 @@ TEST(ChromeFrame, RequestStart) {
AutomationMockHostNetworkRequestStart mock_request_start(&loop,
kLongWaitTimeout);
- loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
+ loop.PostDelayedTask(FROM_HERE,
+ MessageLoop::QuitClosure(),
+ base::TimeDelta::FromMilliseconds(kLongWaitTimeout));
mock_request_start.NavigateRelative(L"postmessage_basic_frame.html");
loop.RunWithDispatcher(NULL);

Powered by Google App Engine
This is Rietveld 408576698