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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc

Issue 981633002: Created new URLRequestContext for secure proxy check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved Secure Proxy check to separate class. Addressed comments. Created 5 years, 9 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/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 0d240e9d20454ccb0f127fbe6253d6cbe47bd82d..dd44515604d9a9ba628686b242728d4063d4aa71 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<base::SingleThreadTaskRunner> task_runner =
+ base::MessageLoopProxy::current();
+
+ scoped_ptr<net::TestURLRequestContext> test_request_context(
+ new net::TestURLRequestContext(true));
+ test_request_context->Init();
+
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter(
+ new net::TestURLRequestContextGetter(
sclittle 2015/04/02 00:07:00 Change to new net::TestURLRequestContextGetter(tas
tbansal1 2015/04/02 23:21:20 Done.
+ 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.

Powered by Google App Engine
This is Rietveld 408576698