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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h

Issue 1066513005: Use a custom URLRequestContextGetter for performing the secure proxy check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename a field Created 5 years, 8 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_test_utils.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h
index c7be2e4a30734e5d40814041a1892f43d4bc2209..88dcc11c445c5799d9813b3cf4409ce80496bc97 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h
@@ -20,6 +20,7 @@
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h"
#include "net/base/backoff_entry.h"
#include "net/log/test_net_log.h"
+#include "net/url_request/url_request_context_getter.h"
#include "testing/gmock/include/gmock/gmock.h"
class TestingPrefServiceSimple;
@@ -32,7 +33,6 @@ namespace net {
class MockClientSocketFactory;
class NetLog;
class URLRequestContext;
-class URLRequestContextGetter;
class URLRequestContextStorage;
}
@@ -182,6 +182,11 @@ class TestDataReductionProxyIOData : public DataReductionProxyIOData {
return config_client_.get();
}
+ void SetSimpleURLRequestContextGetter(
+ const scoped_refptr<net::URLRequestContextGetter> context_getter) {
+ basic_url_request_context_getter_ = context_getter;
+ }
+
base::WeakPtr<DataReductionProxyIOData> GetWeakPtr() {
return weak_factory_.GetWeakPtr();
}

Powered by Google App Engine
This is Rietveld 408576698