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

Unified Diff: components/update_client/update_checker_unittest.cc

Issue 2679583004: Use TaskScheduler instead of WorkerPool in url_request_simple_job.cc. (Closed)
Patch Set: MessageLoopForIO Created 3 years, 10 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
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() {
}

Powered by Google App Engine
This is Rietveld 408576698