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

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

Issue 1127623005: Gather metrics classifying the cause of the TLS fallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fallback-required
Patch Set: missing header 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/client_socket_handle.cc ('k') | net/socket/socket_test_util.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 #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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 // SSLClientSocket implementation. 783 // SSLClientSocket implementation.
784 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 784 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
785 int ExportKeyingMaterial(const base::StringPiece& label, 785 int ExportKeyingMaterial(const base::StringPiece& label,
786 bool has_context, 786 bool has_context,
787 const base::StringPiece& context, 787 const base::StringPiece& context,
788 unsigned char* out, 788 unsigned char* out,
789 unsigned int outlen) override; 789 unsigned int outlen) override;
790 int GetTLSUniqueChannelBinding(std::string* out) override; 790 int GetTLSUniqueChannelBinding(std::string* out) override;
791 NextProtoStatus GetNextProto(std::string* proto) const override; 791 NextProtoStatus GetNextProto(std::string* proto) const override;
792 ChannelIDService* GetChannelIDService() const override; 792 ChannelIDService* GetChannelIDService() const override;
793 SSLFailureState GetSSLFailureState() const override;
793 794
794 protected: 795 protected:
795 ~MockClientSocket() override; 796 ~MockClientSocket() override;
796 void RunCallbackAsync(const CompletionCallback& callback, int result); 797 void RunCallbackAsync(const CompletionCallback& callback, int result);
797 void RunCallback(const CompletionCallback& callback, int result); 798 void RunCallback(const CompletionCallback& callback, int result);
798 799
799 // SSLClientSocket implementation. 800 // SSLClientSocket implementation.
800 scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain() 801 scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain()
801 const override; 802 const override;
802 803
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 1379
1379 extern const char kSOCKS5OkRequest[]; 1380 extern const char kSOCKS5OkRequest[];
1380 extern const int kSOCKS5OkRequestLength; 1381 extern const int kSOCKS5OkRequestLength;
1381 1382
1382 extern const char kSOCKS5OkResponse[]; 1383 extern const char kSOCKS5OkResponse[];
1383 extern const int kSOCKS5OkResponseLength; 1384 extern const int kSOCKS5OkResponseLength;
1384 1385
1385 } // namespace net 1386 } // namespace net
1386 1387
1387 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1388 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/socket/client_socket_handle.cc ('k') | net/socket/socket_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698