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

Side by Side Diff: net/base/test_proxy_delegate.cc

Issue 2442633002: Add a QUIC proxy server to the list of QUIC servers supported at start up (Closed)
Patch Set: Addressed rch comments Created 4 years, 1 month 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
« no previous file with comments | « net/base/test_proxy_delegate.h ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/base/test_proxy_delegate.h" 5 #include "net/base/test_proxy_delegate.h"
6 6
7 #include "net/http/http_request_headers.h" 7 #include "net/http/http_request_headers.h"
8 #include "net/http/http_response_headers.h" 8 #include "net/http/http_response_headers.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 get_alternative_proxy_invocations_++; 90 get_alternative_proxy_invocations_++;
91 } 91 }
92 92
93 void TestProxyDelegate::OnAlternativeProxyBroken( 93 void TestProxyDelegate::OnAlternativeProxyBroken(
94 const ProxyServer& alternative_proxy_server) { 94 const ProxyServer& alternative_proxy_server) {
95 EXPECT_TRUE(alternative_proxy_server.is_valid()); 95 EXPECT_TRUE(alternative_proxy_server.is_valid());
96 EXPECT_EQ(alternative_proxy_server_, alternative_proxy_server); 96 EXPECT_EQ(alternative_proxy_server_, alternative_proxy_server);
97 alternative_proxy_server_ = ProxyServer(); 97 alternative_proxy_server_ = ProxyServer();
98 } 98 }
99 99
100 ProxyServer TestProxyDelegate::GetDefaultAlternativeProxy() const {
101 return alternative_proxy_server_;
102 }
103
100 } // namespace net 104 } // namespace net
OLDNEW
« no previous file with comments | « net/base/test_proxy_delegate.h ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698