Chromium Code Reviews| 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) { |