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

Side by Side Diff: net/url_request/url_request_throttler_test_support.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/url_request/url_request_throttler_test_support.h" 5 #include "net/url_request/url_request_throttler_test_support.h"
6 6
7 #include "net/url_request/url_request_throttler_entry.h" 7 #include "net/url_request/url_request_throttler_entry.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 24 matching lines...) Expand all
35 : fake_retry_value_(retry_value), 35 : fake_retry_value_(retry_value),
36 fake_opt_out_value_(opt_out_value), 36 fake_opt_out_value_(opt_out_value),
37 fake_response_code_(response_code) { 37 fake_response_code_(response_code) {
38 } 38 }
39 39
40 MockURLRequestThrottlerHeaderAdapter::~MockURLRequestThrottlerHeaderAdapter() { 40 MockURLRequestThrottlerHeaderAdapter::~MockURLRequestThrottlerHeaderAdapter() {
41 } 41 }
42 42
43 std::string MockURLRequestThrottlerHeaderAdapter::GetNormalizedValue( 43 std::string MockURLRequestThrottlerHeaderAdapter::GetNormalizedValue(
44 const std::string& key) const { 44 const std::string& key) const {
45 if (key == 45 if (key == URLRequestThrottlerEntry::kExponentialThrottlingHeader &&
46 URLRequestThrottlerEntry::kExponentialThrottlingHeader &&
47 !fake_opt_out_value_.empty()) { 46 !fake_opt_out_value_.empty()) {
48 return fake_opt_out_value_; 47 return fake_opt_out_value_;
49 } 48 }
50 49
51 return std::string(); 50 return std::string();
52 } 51 }
53 52
54 int MockURLRequestThrottlerHeaderAdapter::GetResponseCode() const { 53 int MockURLRequestThrottlerHeaderAdapter::GetResponseCode() const {
55 return fake_response_code_; 54 return fake_response_code_;
56 } 55 }
57 56
58 } // namespace net 57 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698