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

Unified Diff: net/url_request/url_request_context_builder_unittest.cc

Issue 2679233003: Use TaskScheduler instead of WorkerPool in polling_proxy_config_service.cc. (Closed)
Patch Set: private 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
« no previous file with comments | « net/proxy/polling_proxy_config_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context_builder_unittest.cc
diff --git a/net/url_request/url_request_context_builder_unittest.cc b/net/url_request/url_request_context_builder_unittest.cc
index cd8f21dd4ff5acca21b8122a8dd4d4eb6df87fbf..dabd8c5627e382951b09357899123cf81bfc6956 100644
--- a/net/url_request/url_request_context_builder_unittest.cc
+++ b/net/url_request/url_request_context_builder_unittest.cc
@@ -7,7 +7,9 @@
#include <memory>
#include "base/memory/ptr_util.h"
+#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
+#include "base/test/scoped_task_scheduler.h"
#include "build/build_config.h"
#include "net/base/request_priority.h"
#include "net/http/http_auth_challenge_tokenizer.h"
@@ -58,7 +60,8 @@ class MockHttpAuthHandlerFactory : public HttpAuthHandlerFactory {
class URLRequestContextBuilderTest : public PlatformTest {
protected:
- URLRequestContextBuilderTest() {
+ URLRequestContextBuilderTest()
+ : scoped_task_scheduler_(base::MessageLoop::current()) {
test_server_.AddDefaultHandlers(
base::FilePath(FILE_PATH_LITERAL("net/data/url_request_unittest")));
#if defined(OS_LINUX) || defined(OS_ANDROID)
@@ -69,6 +72,9 @@ class URLRequestContextBuilderTest : public PlatformTest {
EmbeddedTestServer test_server_;
URLRequestContextBuilder builder_;
+
+ private:
+ base::test::ScopedTaskScheduler scoped_task_scheduler_;
eroman 2017/02/13 23:14:52 Same question that I asked on this code review (ht
fdoray 2017/02/16 21:41:00 1. Upload a patch set. 2. Send it to the CQ dry ru
eroman 2017/02/16 22:14:02 Thanks for the explanation. This pattern still fe
};
TEST_F(URLRequestContextBuilderTest, DefaultSettings) {
« no previous file with comments | « net/proxy/polling_proxy_config_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698