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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc

Issue 749793002: Data reduction proxy bypass with test server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 6 years 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/common/data_reduction_proxy_params_test_utils.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc
index bf274372493ddf26ddfa875fd79434f2afcffee4..d6dd412ec93eacd95bac606df33b0842c2f8edbd 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc
@@ -96,6 +96,15 @@ std::string TestDataReductionProxyParams::FlagProbeURL() {
return kFlagProbeURL;
}
+void TestDataReductionProxyParams::set_origin(const GURL& origin) {
+ origin_ = origin;
+}
+
+void TestDataReductionProxyParams::set_fallback_origin(
+ const GURL& fallback_origin) {
+ fallback_origin_ = fallback_origin;
+}
+
std::string TestDataReductionProxyParams::GetDefaultDevOrigin() const {
return GetDefinition(
TestDataReductionProxyParams::HAS_DEV_ORIGIN, kDefaultDevOrigin);

Powered by Google App Engine
This is Rietveld 408576698