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

Side by Side Diff: net/socket/socket_test_util.h

Issue 1096203006: Collect all ConnectionAttempts from both sockets in TransportConnectJob. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@domrel_serverip1
Patch Set: Add a couple comments 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
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 #ifndef NET_SOCKET_SOCKET_TEST_UTIL_H_ 5 #ifndef NET_SOCKET_SOCKET_TEST_UTIL_H_
6 #define NET_SOCKET_SOCKET_TEST_UTIL_H_ 6 #define NET_SOCKET_SOCKET_TEST_UTIL_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 // StreamSocket implementation. 772 // StreamSocket implementation.
773 int Connect(const CompletionCallback& callback) override = 0; 773 int Connect(const CompletionCallback& callback) override = 0;
774 void Disconnect() override; 774 void Disconnect() override;
775 bool IsConnected() const override; 775 bool IsConnected() const override;
776 bool IsConnectedAndIdle() const override; 776 bool IsConnectedAndIdle() const override;
777 int GetPeerAddress(IPEndPoint* address) const override; 777 int GetPeerAddress(IPEndPoint* address) const override;
778 int GetLocalAddress(IPEndPoint* address) const override; 778 int GetLocalAddress(IPEndPoint* address) const override;
779 const BoundNetLog& NetLog() const override; 779 const BoundNetLog& NetLog() const override;
780 void SetSubresourceSpeculation() override {} 780 void SetSubresourceSpeculation() override {}
781 void SetOmniboxSpeculation() override {} 781 void SetOmniboxSpeculation() override {}
782 void GetConnectionAttempts(ConnectionAttempts* out) const override;
783 void ClearConnectionAttempts() override {}
784 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
782 785
783 // SSLClientSocket implementation. 786 // SSLClientSocket implementation.
784 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 787 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
785 int ExportKeyingMaterial(const base::StringPiece& label, 788 int ExportKeyingMaterial(const base::StringPiece& label,
786 bool has_context, 789 bool has_context,
787 const base::StringPiece& context, 790 const base::StringPiece& context,
788 unsigned char* out, 791 unsigned char* out,
789 unsigned int outlen) override; 792 unsigned int outlen) override;
790 int GetTLSUniqueChannelBinding(std::string* out) override; 793 int GetTLSUniqueChannelBinding(std::string* out) override;
791 NextProtoStatus GetNextProto(std::string* proto) const override; 794 NextProtoStatus GetNextProto(std::string* proto) const override;
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 1381
1379 extern const char kSOCKS5OkRequest[]; 1382 extern const char kSOCKS5OkRequest[];
1380 extern const int kSOCKS5OkRequestLength; 1383 extern const int kSOCKS5OkRequestLength;
1381 1384
1382 extern const char kSOCKS5OkResponse[]; 1385 extern const char kSOCKS5OkResponse[];
1383 extern const int kSOCKS5OkResponseLength; 1386 extern const int kSOCKS5OkResponseLength;
1384 1387
1385 } // namespace net 1388 } // namespace net
1386 1389
1387 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1390 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698