diff options
author | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 01:40:01 +0000 |
---|---|---|
committer | tedvessenes@gmail.com <tedvessenes@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 01:40:01 +0000 |
commit | f2ad6f5420484a071b317f5ad68a7f8e409a525f (patch) | |
tree | f565e17e27ad39018c256cb53027b09b9a8e84c3 /chrome_frame/test/chrome_frame_automation_mock.cc | |
parent | 46a519fba6cefd6ca03a2643ded86bfe7d8f6d4d (diff) | |
download | chromium_src-f2ad6f5420484a071b317f5ad68a7f8e409a525f.zip chromium_src-f2ad6f5420484a071b317f5ad68a7f8e409a525f.tar.gz chromium_src-f2ad6f5420484a071b317f5ad68a7f8e409a525f.tar.bz2 |
Update uses of TimeDelta in chrome_frame/*. Also update a bit of TimeDelta use in webkit npapi code.
Adding robertshield for his thoughts on this.
R=ananta@chromium.org
BUG=108171
Review URL: http://codereview.chromium.org/10019015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133395 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/chrome_frame_automation_mock.cc')
-rw-r--r-- | chrome_frame/test/chrome_frame_automation_mock.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/chrome_frame/test/chrome_frame_automation_mock.cc b/chrome_frame/test/chrome_frame_automation_mock.cc index 1f50b2e..8b553a5 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); |