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

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

Issue 1096203006: Collect all ConnectionAttempts from both sockets in TransportConnectJob. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@domrel_serverip1
Patch Set: Return fake ConnectionAttempt in MockTCPClientSocket 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 unified diff | Download patch
« no previous file with comments | « net/socket/unix_domain_client_socket_posix.cc ('k') | net/spdy/spdy_proxy_client_socket.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/websocket_endpoint_lock_manager.h" 5 #include "net/socket/websocket_endpoint_lock_manager.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool WasEverUsed() const override { return false; } 47 bool WasEverUsed() const override { return false; }
48 48
49 bool UsingTCPFastOpen() const override { return false; } 49 bool UsingTCPFastOpen() const override { return false; }
50 50
51 bool WasNpnNegotiated() const override { return false; } 51 bool WasNpnNegotiated() const override { return false; }
52 52
53 NextProto GetNegotiatedProtocol() const override { return kProtoUnknown; } 53 NextProto GetNegotiatedProtocol() const override { return kProtoUnknown; }
54 54
55 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; } 55 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; }
56 56
57 void GetConnectionAttempts(ConnectionAttempts* out) const override {
58 out->clear();
59 }
60
61 void ClearConnectionAttempts() override {}
62
63 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
64
57 // Socket implementation 65 // Socket implementation
58 int Read(IOBuffer* buf, 66 int Read(IOBuffer* buf,
59 int buf_len, 67 int buf_len,
60 const CompletionCallback& callback) override { 68 const CompletionCallback& callback) override {
61 return ERR_FAILED; 69 return ERR_FAILED;
62 } 70 }
63 71
64 int Write(IOBuffer* buf, 72 int Write(IOBuffer* buf,
65 int buf_len, 73 int buf_len,
66 const CompletionCallback& callback) override { 74 const CompletionCallback& callback) override {
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 blocking_waiter.WaitForLock(); 320 blocking_waiter.WaitForLock();
313 TimeTicks after_unlock = TimeTicks::Now(); 321 TimeTicks after_unlock = TimeTicks::Now();
314 EXPECT_GE(after_unlock - before_unlock, unlock_delay); 322 EXPECT_GE(after_unlock - before_unlock, unlock_delay);
315 instance()->SetUnlockDelayForTesting(base::TimeDelta()); 323 instance()->SetUnlockDelayForTesting(base::TimeDelta());
316 UnlockDummyEndpoint(1); 324 UnlockDummyEndpoint(1);
317 } 325 }
318 326
319 } // namespace 327 } // namespace
320 328
321 } // namespace net 329 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/unix_domain_client_socket_posix.cc ('k') | net/spdy/spdy_proxy_client_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698