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

Unified Diff: components/update_client/request_sender_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/request_sender_unittest.cc
diff --git a/components/update_client/request_sender_unittest.cc b/components/update_client/request_sender_unittest.cc
index 1c34b3a2e07289ce2d385a3ffe51215fde9f13b9..e0b891461fd90eb6507cf39ac9aa6cee5ed0c580 100644
--- a/components/update_client/request_sender_unittest.cc
+++ b/components/update_client/request_sender_unittest.cc
@@ -11,6 +11,7 @@
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/string_util.h"
+#include "base/test/scoped_task_scheduler.h"
#include "base/threading/thread_task_runner_handle.h"
#include "components/update_client/test_configurator.h"
#include "components/update_client/url_request_post_interceptor.h"
@@ -69,13 +70,17 @@ class RequestSenderTest : public testing::Test {
private:
base::MessageLoopForIO loop_;
+ base::test::ScopedTaskScheduler scoped_task_scheduler_;
base::Closure quit_closure_;
DISALLOW_COPY_AND_ASSIGN(RequestSenderTest);
};
RequestSenderTest::RequestSenderTest()
- : post_interceptor_1_(nullptr), post_interceptor_2_(nullptr), error_(0) {}
+ : post_interceptor_1_(nullptr),
+ post_interceptor_2_(nullptr),
+ error_(0),
+ scoped_task_scheduler_(&loop_) {}
RequestSenderTest::~RequestSenderTest() {}
« no previous file with comments | « no previous file | components/update_client/update_checker_unittest.cc » ('j') | net/url_request/url_request_simple_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698