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

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

Issue 9663043: Add a boolean |had_context| argument to the TLS ExportKeyingMaterial (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Make suggested changes, add patch file Created 8 years, 9 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') | remoting/protocol/auth_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.
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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; 589 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE;
590 virtual const BoundNetLog& NetLog() const OVERRIDE; 590 virtual const BoundNetLog& NetLog() const OVERRIDE;
591 virtual void SetSubresourceSpeculation() OVERRIDE {} 591 virtual void SetSubresourceSpeculation() OVERRIDE {}
592 virtual void SetOmniboxSpeculation() OVERRIDE {} 592 virtual void SetOmniboxSpeculation() OVERRIDE {}
593 593
594 // SSLClientSocket implementation. 594 // SSLClientSocket implementation.
595 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 595 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
596 virtual void GetSSLCertRequestInfo( 596 virtual void GetSSLCertRequestInfo(
597 SSLCertRequestInfo* cert_request_info) OVERRIDE; 597 SSLCertRequestInfo* cert_request_info) OVERRIDE;
598 virtual int ExportKeyingMaterial(const base::StringPiece& label, 598 virtual int ExportKeyingMaterial(const base::StringPiece& label,
599 bool has_context,
599 const base::StringPiece& context, 600 const base::StringPiece& context,
600 unsigned char *out, 601 unsigned char* out,
601 unsigned int outlen) OVERRIDE; 602 unsigned int outlen) OVERRIDE;
602 virtual NextProtoStatus GetNextProto(std::string* proto, 603 virtual NextProtoStatus GetNextProto(std::string* proto,
603 std::string* server_protos) OVERRIDE; 604 std::string* server_protos) OVERRIDE;
604 virtual OriginBoundCertService* GetOriginBoundCertService() const OVERRIDE; 605 virtual OriginBoundCertService* GetOriginBoundCertService() const OVERRIDE;
605 606
606 protected: 607 protected:
607 virtual ~MockClientSocket(); 608 virtual ~MockClientSocket();
608 void RunCallbackAsync(const CompletionCallback& callback, int result); 609 void RunCallbackAsync(const CompletionCallback& callback, int result);
609 void RunCallback(const CompletionCallback& callback, int result); 610 void RunCallback(const CompletionCallback& callback, int result);
610 611
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 1043
1043 extern const char kSOCKS5OkRequest[]; 1044 extern const char kSOCKS5OkRequest[];
1044 extern const int kSOCKS5OkRequestLength; 1045 extern const int kSOCKS5OkRequestLength;
1045 1046
1046 extern const char kSOCKS5OkResponse[]; 1047 extern const char kSOCKS5OkResponse[];
1047 extern const int kSOCKS5OkResponseLength; 1048 extern const int kSOCKS5OkResponseLength;
1048 1049
1049 } // namespace net 1050 } // namespace net
1050 1051
1051 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ 1052 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | net/socket/socket_test_util.cc » ('j') | remoting/protocol/auth_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698