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

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

Issue 10823084: Add a new GetTlsUniqueChannelBinding method to SSLSocket, and implement nss version. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | net/socket/socket_test_util.cc » ('j') | net/socket/socket_test_util.cc » ('J')
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.
wtc 2012/07/30 20:05:08 If you have a bug report for this work, please add
Ryan Hamilton 2012/07/30 21:37:58 Done.
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>
11 #include <vector> 11 #include <vector>
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 virtual void SetOmniboxSpeculation() OVERRIDE {} 595 virtual void SetOmniboxSpeculation() OVERRIDE {}
596 596
597 // SSLClientSocket implementation. 597 // SSLClientSocket implementation.
598 virtual void GetSSLCertRequestInfo( 598 virtual void GetSSLCertRequestInfo(
599 SSLCertRequestInfo* cert_request_info) OVERRIDE; 599 SSLCertRequestInfo* cert_request_info) OVERRIDE;
600 virtual int ExportKeyingMaterial(const base::StringPiece& label, 600 virtual int ExportKeyingMaterial(const base::StringPiece& label,
601 bool has_context, 601 bool has_context,
602 const base::StringPiece& context, 602 const base::StringPiece& context,
603 unsigned char* out, 603 unsigned char* out,
604 unsigned int outlen) OVERRIDE; 604 unsigned int outlen) OVERRIDE;
605 virtual int GetTlsUniqueChannelBinding(unsigned char* out,
606 unsigned int *outlen,
607 unsigned int outlen_max) OVERRIDE;
605 virtual NextProtoStatus GetNextProto(std::string* proto, 608 virtual NextProtoStatus GetNextProto(std::string* proto,
606 std::string* server_protos) OVERRIDE; 609 std::string* server_protos) OVERRIDE;
607 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; 610 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE;
608 611
609 protected: 612 protected:
610 virtual ~MockClientSocket(); 613 virtual ~MockClientSocket();
611 void RunCallbackAsync(const CompletionCallback& callback, int result); 614 void RunCallbackAsync(const CompletionCallback& callback, int result);
612 void RunCallback(const CompletionCallback& callback, int result); 615 void RunCallback(const CompletionCallback& callback, int result);
613 616
614 base::WeakPtrFactory<MockClientSocket> weak_factory_; 617 base::WeakPtrFactory<MockClientSocket> weak_factory_;
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 1054
1052 extern const char kSOCKS5OkRequest[]; 1055 extern const char kSOCKS5OkRequest[];
1053 extern const int kSOCKS5OkRequestLength; 1056 extern const int kSOCKS5OkRequestLength;
1054 1057
1055 extern const char kSOCKS5OkResponse[]; 1058 extern const char kSOCKS5OkResponse[];
1056 extern const int kSOCKS5OkResponseLength; 1059 extern const int kSOCKS5OkResponseLength;
1057 1060
1058 } // namespace net 1061 } // namespace net
1059 1062
1060 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1063 #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/socket_test_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698