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

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: Another 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
« no previous file with comments | « chrome_frame/test/automation_client_mock.cc ('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 1f50b2efb8a2558fe3cb8c90937c60d2ac5cf681..8b553a5bf3cd04ad691a8c7c854dcfe0f2484d70 100644
--- a/chrome_frame/test/chrome_frame_automation_mock.cc
+++ b/chrome_frame/test/chrome_frame_automation_mock.cc
@@ -6,11 +6,12 @@
#include "chrome_frame/test/chrome_frame_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
-const int kLongWaitTimeout = 25 * 1000;
+const base::TimeDelta kLongWaitTimeout = base::TimeDelta::FromSeconds(25);
TEST(ChromeFrame, Launch) {
MessageLoopForUI loop;
- AutomationMockLaunch mock_launch(&loop, kLongWaitTimeout);
+ AutomationMockLaunch mock_launch(&loop,
+ kLongWaitTimeout.InMilliseconds());
loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
@@ -21,7 +22,8 @@ TEST(ChromeFrame, Launch) {
TEST(ChromeFrame, Navigate) {
MessageLoopForUI loop;
- AutomationMockNavigate mock_navigate(&loop, kLongWaitTimeout);
+ AutomationMockNavigate mock_navigate(&loop,
+ kLongWaitTimeout.InMilliseconds());
loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
@@ -32,7 +34,8 @@ TEST(ChromeFrame, Navigate) {
TEST(ChromeFrame, PostMessage) {
MessageLoopForUI loop;
- AutomationMockPostMessage mock_postmessage(&loop, kLongWaitTimeout);
+ AutomationMockPostMessage mock_postmessage(&loop,
+ kLongWaitTimeout.InMilliseconds());
loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
@@ -43,8 +46,8 @@ TEST(ChromeFrame, PostMessage) {
TEST(ChromeFrame, RequestStart) {
MessageLoopForUI loop;
- AutomationMockHostNetworkRequestStart mock_request_start(&loop,
- kLongWaitTimeout);
+ AutomationMockHostNetworkRequestStart mock_request_start(
+ &loop, kLongWaitTimeout.InMilliseconds());
loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout);
« no previous file with comments | « chrome_frame/test/automation_client_mock.cc ('k') | chrome_frame/test/chrome_frame_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698