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

Unified Diff: net/url_request/url_request_throttler_test_support.cc

Issue 1148603003: Remove X-Chrome-Exponential-Throttling header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 5 years, 7 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: net/url_request/url_request_throttler_test_support.cc
diff --git a/net/url_request/url_request_throttler_test_support.cc b/net/url_request/url_request_throttler_test_support.cc
index 5b39c047f32b4b6c608bcbd659df2c21750dd431..8d103352c244a3ee7a7888c2fcbaa6f44700c6c4 100644
--- a/net/url_request/url_request_throttler_test_support.cc
+++ b/net/url_request/url_request_throttler_test_support.cc
@@ -18,36 +18,4 @@ base::TimeTicks TestTickClock::NowTicks() {
return now_ticks_;
}
-MockURLRequestThrottlerHeaderAdapter::MockURLRequestThrottlerHeaderAdapter(
- int response_code)
- : fake_response_code_(response_code) {
-}
-
-MockURLRequestThrottlerHeaderAdapter::MockURLRequestThrottlerHeaderAdapter(
- const std::string& retry_value,
- const std::string& opt_out_value,
- int response_code)
- : fake_retry_value_(retry_value),
- fake_opt_out_value_(opt_out_value),
- fake_response_code_(response_code) {
-}
-
-MockURLRequestThrottlerHeaderAdapter::~MockURLRequestThrottlerHeaderAdapter() {
-}
-
-std::string MockURLRequestThrottlerHeaderAdapter::GetNormalizedValue(
- const std::string& key) const {
- if (key ==
- URLRequestThrottlerEntry::kExponentialThrottlingHeader &&
- !fake_opt_out_value_.empty()) {
- return fake_opt_out_value_;
- }
-
- return std::string();
-}
-
-int MockURLRequestThrottlerHeaderAdapter::GetResponseCode() const {
- return fake_response_code_;
-}
-
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698