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

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

Issue 9958028: Add a new GetNegotiatedProtocol method to StreamSocket and implement in all subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 8 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/client_socket_pool_base_unittest.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 #pragma once 7 #pragma once
8 8
9 #include <cstring> 9 #include <cstring>
10 #include <deque> 10 #include <deque>
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; 743 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE;
744 744
745 // SSLClientSocket implementation. 745 // SSLClientSocket implementation.
746 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 746 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
747 virtual void GetSSLCertRequestInfo( 747 virtual void GetSSLCertRequestInfo(
748 SSLCertRequestInfo* cert_request_info) OVERRIDE; 748 SSLCertRequestInfo* cert_request_info) OVERRIDE;
749 virtual NextProtoStatus GetNextProto(std::string* proto, 749 virtual NextProtoStatus GetNextProto(std::string* proto,
750 std::string* server_protos) OVERRIDE; 750 std::string* server_protos) OVERRIDE;
751 virtual bool was_npn_negotiated() const OVERRIDE; 751 virtual bool was_npn_negotiated() const OVERRIDE;
752 virtual bool set_was_npn_negotiated(bool negotiated) OVERRIDE; 752 virtual bool set_was_npn_negotiated(bool negotiated) OVERRIDE;
753 virtual NextProto protocol_negotiated() const OVERRIDE;
754 virtual void set_protocol_negotiated( 753 virtual void set_protocol_negotiated(
755 NextProto protocol_negotiated) OVERRIDE; 754 NextProto protocol_negotiated) OVERRIDE;
755 virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
756 756
757 // This MockSocket does not implement the manual async IO feature. 757 // This MockSocket does not implement the manual async IO feature.
758 virtual void OnReadComplete(const MockRead& data) OVERRIDE; 758 virtual void OnReadComplete(const MockRead& data) OVERRIDE;
759 759
760 virtual bool WasDomainBoundCertSent() const OVERRIDE; 760 virtual bool WasDomainBoundCertSent() const OVERRIDE;
761 virtual SSLClientCertType domain_bound_cert_type() const OVERRIDE; 761 virtual SSLClientCertType domain_bound_cert_type() const OVERRIDE;
762 virtual SSLClientCertType set_domain_bound_cert_type( 762 virtual SSLClientCertType set_domain_bound_cert_type(
763 SSLClientCertType type) OVERRIDE; 763 SSLClientCertType type) OVERRIDE;
764 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; 764 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE;
765 765
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 1043
1044 extern const char kSOCKS5OkRequest[]; 1044 extern const char kSOCKS5OkRequest[];
1045 extern const int kSOCKS5OkRequestLength; 1045 extern const int kSOCKS5OkRequestLength;
1046 1046
1047 extern const char kSOCKS5OkResponse[]; 1047 extern const char kSOCKS5OkResponse[];
1048 extern const int kSOCKS5OkResponseLength; 1048 extern const int kSOCKS5OkResponseLength;
1049 1049
1050 } // namespace net 1050 } // namespace net
1051 1051
1052 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1052 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/socket/client_socket_pool_base_unittest.cc ('k') | net/socket/socket_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698