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

Unified Diff: chrome_frame/test/mock_ie_event_sink_test.cc

Issue 10053004: Use TimeDelta for Chrome Frame test's TimedMsgLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/mock_ie_event_sink_test.h ('k') | chrome_frame/test/navigation_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/mock_ie_event_sink_test.cc
diff --git a/chrome_frame/test/mock_ie_event_sink_test.cc b/chrome_frame/test/mock_ie_event_sink_test.cc
index c858362a09f31cd80fb2cd6d78154507a329969b..11a7dbdd9e6cc3f34b36c812ed7ae5804d7bb5fe 100644
--- a/chrome_frame/test/mock_ie_event_sink_test.cc
+++ b/chrome_frame/test/mock_ie_event_sink_test.cc
@@ -192,15 +192,15 @@ MockIEEventSinkTest::MockIEEventSinkTest(int port, const std::wstring& address,
}
void MockIEEventSinkTest::LaunchIEAndNavigate(const std::wstring& url) {
- LaunchIENavigateAndLoop(url, kChromeFrameLongNavigationTimeoutInSeconds);
+ LaunchIENavigateAndLoop(url, kChromeFrameLongNavigationTimeout);
}
void MockIEEventSinkTest::LaunchIENavigateAndLoop(const std::wstring& url,
- int timeout) {
+ base::TimeDelta timeout) {
if (GetInstalledIEVersion() >= IE_8) {
chrome_frame_test::ClearIESessionHistory();
}
- hung_call_detector_ = HungCOMCallDetector::Setup(timeout);
+ hung_call_detector_ = HungCOMCallDetector::Setup(ceil(timeout.InSecondsF()));
EXPECT_TRUE(hung_call_detector_ != NULL);
IEEventSink::SetAbnormalShutdown(false);
« no previous file with comments | « chrome_frame/test/mock_ie_event_sink_test.h ('k') | chrome_frame/test/navigation_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698