Commit 89f8a5cc authored by tedvessenes@gmail.com's avatar tedvessenes@gmail.com

Convert uses of int ms to TimeDelta in content/browser/debugger.


R=yurys@chromium.org
BUG=108171


Review URL: http://codereview.chromium.org/9572040

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124948 0039d316-1c4b-4281-b951-d872f2087c98
parent 8fb5bee4
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
...@@ -195,8 +195,8 @@ TEST_F(DevToolsManagerTest, NoUnresponsiveDialogInInspectedTab) { ...@@ -195,8 +195,8 @@ TEST_F(DevToolsManagerTest, NoUnresponsiveDialogInInspectedTab) {
// Start with a short timeout. // Start with a short timeout.
inspected_rvh->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); inspected_rvh->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10));
// Wait long enough for first timeout and see if it fired. // Wait long enough for first timeout and see if it fired.
MessageLoop::current()->PostDelayedTask(FROM_HERE, MessageLoop::current()->PostDelayedTask(
MessageLoop::QuitClosure(), 10); FROM_HERE, MessageLoop::QuitClosure(), TimeDelta::FromMilliseconds(10));
MessageLoop::current()->Run(); MessageLoop::current()->Run();
EXPECT_FALSE(delegate.renderer_unresponsive_received()); EXPECT_FALSE(delegate.renderer_unresponsive_received());
...@@ -205,8 +205,8 @@ TEST_F(DevToolsManagerTest, NoUnresponsiveDialogInInspectedTab) { ...@@ -205,8 +205,8 @@ TEST_F(DevToolsManagerTest, NoUnresponsiveDialogInInspectedTab) {
// Start with a short timeout. // Start with a short timeout.
inspected_rvh->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); inspected_rvh->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10));
// Wait long enough for first timeout and see if it fired. // Wait long enough for first timeout and see if it fired.
MessageLoop::current()->PostDelayedTask(FROM_HERE, MessageLoop::current()->PostDelayedTask(
MessageLoop::QuitClosure(), 10); FROM_HERE, MessageLoop::QuitClosure(), TimeDelta::FromMilliseconds(10));
MessageLoop::current()->Run(); MessageLoop::current()->Run();
EXPECT_TRUE(delegate.renderer_unresponsive_received()); EXPECT_TRUE(delegate.renderer_unresponsive_received());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment