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

Side by Side Diff: net/socket/transport_client_socket_pool_unittest.cc

Issue 12886034: Remove experimental code to pick the "warmest" socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync, fix conflict Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/socket/tcp_client_socket_win.cc ('k') | net/socket/transport_client_socket_unittest.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 (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/socket/transport_client_socket_pool.h" 5 #include "net/socket/transport_client_socket_pool.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return OK; 118 return OK;
119 } 119 }
120 virtual const BoundNetLog& NetLog() const OVERRIDE { 120 virtual const BoundNetLog& NetLog() const OVERRIDE {
121 return net_log_; 121 return net_log_;
122 } 122 }
123 123
124 virtual void SetSubresourceSpeculation() OVERRIDE {} 124 virtual void SetSubresourceSpeculation() OVERRIDE {}
125 virtual void SetOmniboxSpeculation() OVERRIDE {} 125 virtual void SetOmniboxSpeculation() OVERRIDE {}
126 virtual bool WasEverUsed() const OVERRIDE { return false; } 126 virtual bool WasEverUsed() const OVERRIDE { return false; }
127 virtual bool UsingTCPFastOpen() const OVERRIDE { return false; } 127 virtual bool UsingTCPFastOpen() const OVERRIDE { return false; }
128 virtual int64 NumBytesRead() const OVERRIDE { return -1; }
129 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE {
130 return base::TimeDelta::FromMicroseconds(-1);
131 }
132 virtual bool WasNpnNegotiated() const OVERRIDE { 128 virtual bool WasNpnNegotiated() const OVERRIDE {
133 return false; 129 return false;
134 } 130 }
135 virtual NextProto GetNegotiatedProtocol() const OVERRIDE { 131 virtual NextProto GetNegotiatedProtocol() const OVERRIDE {
136 return kProtoUnknown; 132 return kProtoUnknown;
137 } 133 }
138 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE { 134 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE {
139 return false; 135 return false;
140 } 136 }
141 137
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 return ERR_UNEXPECTED; 180 return ERR_UNEXPECTED;
185 } 181 }
186 virtual const BoundNetLog& NetLog() const OVERRIDE { 182 virtual const BoundNetLog& NetLog() const OVERRIDE {
187 return net_log_; 183 return net_log_;
188 } 184 }
189 185
190 virtual void SetSubresourceSpeculation() OVERRIDE {} 186 virtual void SetSubresourceSpeculation() OVERRIDE {}
191 virtual void SetOmniboxSpeculation() OVERRIDE {} 187 virtual void SetOmniboxSpeculation() OVERRIDE {}
192 virtual bool WasEverUsed() const OVERRIDE { return false; } 188 virtual bool WasEverUsed() const OVERRIDE { return false; }
193 virtual bool UsingTCPFastOpen() const OVERRIDE { return false; } 189 virtual bool UsingTCPFastOpen() const OVERRIDE { return false; }
194 virtual int64 NumBytesRead() const OVERRIDE { return -1; }
195 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE {
196 return base::TimeDelta::FromMicroseconds(-1);
197 }
198 virtual bool WasNpnNegotiated() const OVERRIDE { 190 virtual bool WasNpnNegotiated() const OVERRIDE {
199 return false; 191 return false;
200 } 192 }
201 virtual NextProto GetNegotiatedProtocol() const OVERRIDE { 193 virtual NextProto GetNegotiatedProtocol() const OVERRIDE {
202 return kProtoUnknown; 194 return kProtoUnknown;
203 } 195 }
204 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE { 196 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE {
205 return false; 197 return false;
206 } 198 }
207 199
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 return OK; 267 return OK;
276 } 268 }
277 virtual const BoundNetLog& NetLog() const OVERRIDE { 269 virtual const BoundNetLog& NetLog() const OVERRIDE {
278 return net_log_; 270 return net_log_;
279 } 271 }
280 272
281 virtual void SetSubresourceSpeculation() OVERRIDE {} 273 virtual void SetSubresourceSpeculation() OVERRIDE {}
282 virtual void SetOmniboxSpeculation() OVERRIDE {} 274 virtual void SetOmniboxSpeculation() OVERRIDE {}
283 virtual bool WasEverUsed() const OVERRIDE { return false; } 275 virtual bool WasEverUsed() const OVERRIDE { return false; }
284 virtual bool UsingTCPFastOpen() const OVERRIDE { return false; } 276 virtual bool UsingTCPFastOpen() const OVERRIDE { return false; }
285 virtual int64 NumBytesRead() const OVERRIDE { return -1; }
286 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE {
287 return base::TimeDelta::FromMicroseconds(-1);
288 }
289 virtual bool WasNpnNegotiated() const OVERRIDE { 277 virtual bool WasNpnNegotiated() const OVERRIDE {
290 return false; 278 return false;
291 } 279 }
292 virtual NextProto GetNegotiatedProtocol() const OVERRIDE { 280 virtual NextProto GetNegotiatedProtocol() const OVERRIDE {
293 return kProtoUnknown; 281 return kProtoUnknown;
294 } 282 }
295 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE { 283 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE {
296 return false; 284 return false;
297 } 285 }
298 286
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 EXPECT_TRUE(handle.socket()); 1339 EXPECT_TRUE(handle.socket());
1352 IPEndPoint endpoint; 1340 IPEndPoint endpoint;
1353 handle.socket()->GetLocalAddress(&endpoint); 1341 handle.socket()->GetLocalAddress(&endpoint);
1354 EXPECT_EQ(kIPv4AddressSize, endpoint.address().size()); 1342 EXPECT_EQ(kIPv4AddressSize, endpoint.address().size());
1355 EXPECT_EQ(1, client_socket_factory_.allocation_count()); 1343 EXPECT_EQ(1, client_socket_factory_.allocation_count());
1356 } 1344 }
1357 1345
1358 } // namespace 1346 } // namespace
1359 1347
1360 } // namespace net 1348 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/tcp_client_socket_win.cc ('k') | net/socket/transport_client_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698