Index: content/browser/renderer_host/render_widget_host_unittest.cc |
diff --git a/content/browser/renderer_host/render_widget_host_unittest.cc b/content/browser/renderer_host/render_widget_host_unittest.cc |
index 6e791115da3c7612f6a7047499049de7b5e8e966..75a998e79ba4c269d9e28d3336d3a5dd60520978 100644 |
--- a/content/browser/renderer_host/render_widget_host_unittest.cc |
+++ b/content/browser/renderer_host/render_widget_host_unittest.cc |
@@ -725,11 +725,11 @@ TEST_F(RenderWidgetHostTest, DontPostponeHangMonitorTimeout) { |
// Immediately try to add a long 30 second timeout. |
EXPECT_FALSE(host_->unresponsive_timer_fired()); |
- host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(30000)); |
+ host_->StartHangMonitorTimeout(TimeDelta::FromSeconds(30)); |
// Wait long enough for first timeout and see if it fired. |
- MessageLoop::current()->PostDelayedTask(FROM_HERE, |
- MessageLoop::QuitClosure(), 10); |
+ MessageLoop::current()->PostDelayedTask( |
+ FROM_HERE, MessageLoop::QuitClosure(), TimeDelta::FromMilliseconds(10)); |
MessageLoop::current()->Run(); |
EXPECT_TRUE(host_->unresponsive_timer_fired()); |
} |
@@ -746,8 +746,8 @@ TEST_F(RenderWidgetHostTest, StopAndStartHangMonitorTimeout) { |
host_->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); |
// Wait long enough for first timeout and see if it fired. |
- MessageLoop::current()->PostDelayedTask(FROM_HERE, |
- MessageLoop::QuitClosure(), 40); |
+ MessageLoop::current()->PostDelayedTask( |
+ FROM_HERE, MessageLoop::QuitClosure(), TimeDelta::FromMilliseconds(40)); |
MessageLoop::current()->Run(); |
EXPECT_TRUE(host_->unresponsive_timer_fired()); |
} |
@@ -766,8 +766,8 @@ TEST_F(RenderWidgetHostTest, MultipleInputEvents) { |
SendInputEventACK(WebInputEvent::RawKeyDown, true); |
// Wait long enough for first timeout and see if it fired. |
- MessageLoop::current()->PostDelayedTask(FROM_HERE, |
- MessageLoop::QuitClosure(), 40); |
+ MessageLoop::current()->PostDelayedTask( |
+ FROM_HERE, MessageLoop::QuitClosure(), TimeDelta::FromMilliseconds(40)); |
MessageLoop::current()->Run(); |
EXPECT_TRUE(host_->unresponsive_timer_fired()); |
} |