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

Unified Diff: net/url_request/url_request_throttler_test_support.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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: 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
deleted file mode 100644
index 9d3f4e253bc3c5c3d8e0bd32c64b940224342043..0000000000000000000000000000000000000000
--- a/net/url_request/url_request_throttler_test_support.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/url_request/url_request_throttler_test_support.h"
-
-#include "net/url_request/url_request_throttler_entry.h"
-
-namespace net {
-
-MockBackoffEntry::MockBackoffEntry(const BackoffEntry::Policy* const policy)
- : BackoffEntry(policy) {
-}
-
-MockBackoffEntry::~MockBackoffEntry() {
-}
-
-base::TimeTicks MockBackoffEntry::ImplGetTimeNow() const {
- return fake_now_;
-}
-
-void MockBackoffEntry::set_fake_now(const base::TimeTicks& now) {
- fake_now_ = now;
-}
-
-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
« no previous file with comments | « net/url_request/url_request_throttler_test_support.h ('k') | net/url_request/url_request_throttler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698