Chromium Code Reviews| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc |
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc |
| index e877e859e9a1189cb0afe6979a6926d8e6390516..8ccc820da3fa6e1a7ef7b95249a6c07b82c508e3 100644 |
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc |
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc |
| @@ -88,9 +88,21 @@ class DataReductionProxyIODataTest : public testing::Test { |
| }; |
| TEST_F(DataReductionProxyIODataTest, TestConstruction) { |
| + scoped_refptr<net::URLRequestContextGetter> request_context_getter; |
| + scoped_refptr<base::SingleThreadTaskRunner> task_runner = |
| + base::MessageLoopProxy::current(); |
| + |
| + scoped_ptr<net::TestURLRequestContext> test_request_context( |
| + new net::TestURLRequestContext(true)); |
|
bengr
2015/03/24 15:39:12
Indentation.
tbansal1
2015/04/01 19:58:59
Done.
|
| + test_request_context->Init(); |
| + |
| + request_context_getter = new net::TestURLRequestContextGetter( |
| + task_runner, test_request_context.Pass()); |
| + |
| scoped_ptr<DataReductionProxyIOData> io_data(new DataReductionProxyIOData( |
| Client::UNKNOWN, DataReductionProxyParams::kAllowed, net_log(), |
| - message_loop_proxy(), message_loop_proxy(), false /* enable_quic */)); |
| + request_context_getter.get(), message_loop_proxy(), message_loop_proxy(), |
| + false /* enable_quic */)); |
| // Check that io_data creates an interceptor. Such an interceptor is |
| // thoroughly tested by DataReductionProxyInterceptoTest. |