| Index: content/browser/devtools/devtools_manager_unittest.cc
|
| diff --git a/content/browser/devtools/devtools_manager_unittest.cc b/content/browser/devtools/devtools_manager_unittest.cc
|
| index cd632c1aecadd28671d309ed8dda99aa0afb87de..9ace6fa6825b0d212e69b19d0c5c71412f0d0ba3 100644
|
| --- a/content/browser/devtools/devtools_manager_unittest.cc
|
| +++ b/content/browser/devtools/devtools_manager_unittest.cc
|
| @@ -3,7 +3,10 @@
|
| // found in the LICENSE file.
|
|
|
| #include "base/basictypes.h"
|
| +#include "base/location.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/single_thread_task_runner.h"
|
| +#include "base/thread_task_runner_handle.h"
|
| #include "base/time/time.h"
|
| #include "content/browser/devtools/devtools_manager.h"
|
| #include "content/browser/devtools/shared_worker_devtools_manager.h"
|
| @@ -140,9 +143,8 @@ TEST_F(DevToolsManagerTest, NoUnresponsiveDialogInInspectedContents) {
|
| // Start with a short timeout.
|
| inspected_rvh->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10));
|
| // Wait long enough for first timeout and see if it fired.
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| - FROM_HERE,
|
| - base::MessageLoop::QuitClosure(),
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| + FROM_HERE, base::MessageLoop::QuitClosure(),
|
| TimeDelta::FromMilliseconds(10));
|
| base::MessageLoop::current()->Run();
|
| EXPECT_FALSE(delegate.renderer_unresponsive_received());
|
| @@ -152,9 +154,8 @@ TEST_F(DevToolsManagerTest, NoUnresponsiveDialogInInspectedContents) {
|
| // Start with a short timeout.
|
| inspected_rvh->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10));
|
| // Wait long enough for first timeout and see if it fired.
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| - FROM_HERE,
|
| - base::MessageLoop::QuitClosure(),
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| + FROM_HERE, base::MessageLoop::QuitClosure(),
|
| TimeDelta::FromMilliseconds(10));
|
| base::MessageLoop::current()->Run();
|
| EXPECT_TRUE(delegate.renderer_unresponsive_received());
|
|
|