Index: components/update_client/update_checker_unittest.cc |
diff --git a/components/update_client/update_checker_unittest.cc b/components/update_client/update_checker_unittest.cc |
index 0eb37fc6df2f6aab0a17478d631526977a1f6311..a6bd7e2b049cb8e700a1be57324a6fe2f52ca286 100644 |
--- a/components/update_client/update_checker_unittest.cc |
+++ b/components/update_client/update_checker_unittest.cc |
@@ -15,6 +15,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/path_service.h" |
#include "base/run_loop.h" |
+#include "base/test/scoped_task_scheduler.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "base/version.h" |
#include "build/build_config.h" |
@@ -81,13 +82,14 @@ class UpdateCheckerTest : public testing::Test { |
private: |
base::MessageLoopForIO loop_; |
+ base::test::ScopedTaskScheduler scoped_task_scheduler_; |
base::Closure quit_closure_; |
DISALLOW_COPY_AND_ASSIGN(UpdateCheckerTest); |
}; |
-UpdateCheckerTest::UpdateCheckerTest() : post_interceptor_(NULL), error_(0) { |
-} |
+UpdateCheckerTest::UpdateCheckerTest() |
+ : post_interceptor_(NULL), error_(0), scoped_task_scheduler_(&loop_) {} |
UpdateCheckerTest::~UpdateCheckerTest() { |
} |