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

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

Issue 8817021: Add a new SSLClientSocket::was_origin_cert_sent() method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « no previous file | net/socket/socket_test_util.cc » ('j') | net/socket/ssl_client_socket.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 // SSLClientSocket methods: 605 // SSLClientSocket methods:
606 virtual void GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE; 606 virtual void GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE;
607 virtual void GetSSLCertRequestInfo( 607 virtual void GetSSLCertRequestInfo(
608 net::SSLCertRequestInfo* cert_request_info) OVERRIDE; 608 net::SSLCertRequestInfo* cert_request_info) OVERRIDE;
609 virtual int ExportKeyingMaterial(const base::StringPiece& label, 609 virtual int ExportKeyingMaterial(const base::StringPiece& label,
610 const base::StringPiece& context, 610 const base::StringPiece& context,
611 unsigned char *out, 611 unsigned char *out,
612 unsigned int outlen) OVERRIDE; 612 unsigned int outlen) OVERRIDE;
613 virtual NextProtoStatus GetNextProto(std::string* proto) OVERRIDE; 613 virtual NextProtoStatus GetNextProto(std::string* proto) OVERRIDE;
614 virtual bool WasOriginBoundCertNegotiated() OVERRIDE;
614 615
615 protected: 616 protected:
616 virtual ~MockClientSocket(); 617 virtual ~MockClientSocket();
617 void RunCallbackAsync(net::OldCompletionCallback* callback, int result); 618 void RunCallbackAsync(net::OldCompletionCallback* callback, int result);
618 void RunCallback(net::OldCompletionCallback*, int result); 619 void RunCallback(net::OldCompletionCallback*, int result);
619 620
620 ScopedRunnableMethodFactory<MockClientSocket> method_factory_; 621 ScopedRunnableMethodFactory<MockClientSocket> method_factory_;
621 622
622 // True if Connect completed successfully and Disconnect hasn't been called. 623 // True if Connect completed successfully and Disconnect hasn't been called.
623 bool connected_; 624 bool connected_;
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 1035
1035 extern const char kSOCKS5OkRequest[]; 1036 extern const char kSOCKS5OkRequest[];
1036 extern const int kSOCKS5OkRequestLength; 1037 extern const int kSOCKS5OkRequestLength;
1037 1038
1038 extern const char kSOCKS5OkResponse[]; 1039 extern const char kSOCKS5OkResponse[];
1039 extern const int kSOCKS5OkResponseLength; 1040 extern const int kSOCKS5OkResponseLength;
1040 1041
1041 } // namespace net 1042 } // namespace net
1042 1043
1043 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1044 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | net/socket/socket_test_util.cc » ('j') | net/socket/ssl_client_socket.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698