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

Side by Side Diff: chrome/browser/extensions/api/socket/tls_socket_unittest.cc

Issue 1807063002: Remove GetTLSUniqueChannelBinding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | net/socket/socket_test_util.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "extensions/browser/api/socket/tls_socket.h" 5 #include "extensions/browser/api/socket/tls_socket.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 MOCK_CONST_METHOD1(GetConnectionAttempts, void(net::ConnectionAttempts*)); 60 MOCK_CONST_METHOD1(GetConnectionAttempts, void(net::ConnectionAttempts*));
61 MOCK_METHOD0(ClearConnectionAttempts, void()); 61 MOCK_METHOD0(ClearConnectionAttempts, void());
62 MOCK_METHOD1(AddConnectionAttempts, void(const net::ConnectionAttempts&)); 62 MOCK_METHOD1(AddConnectionAttempts, void(const net::ConnectionAttempts&));
63 MOCK_CONST_METHOD0(GetTotalReceivedBytes, int64_t()); 63 MOCK_CONST_METHOD0(GetTotalReceivedBytes, int64_t());
64 MOCK_METHOD5(ExportKeyingMaterial, 64 MOCK_METHOD5(ExportKeyingMaterial,
65 int(const StringPiece&, 65 int(const StringPiece&,
66 bool, 66 bool,
67 const StringPiece&, 67 const StringPiece&,
68 unsigned char*, 68 unsigned char*,
69 unsigned int)); 69 unsigned int));
70 MOCK_METHOD1(GetTLSUniqueChannelBinding, int(std::string*));
71 MOCK_METHOD1(GetSSLCertRequestInfo, void(net::SSLCertRequestInfo*)); 70 MOCK_METHOD1(GetSSLCertRequestInfo, void(net::SSLCertRequestInfo*));
72 MOCK_CONST_METHOD1(GetNextProto, 71 MOCK_CONST_METHOD1(GetNextProto,
73 net::SSLClientSocket::NextProtoStatus(std::string*)); 72 net::SSLClientSocket::NextProtoStatus(std::string*));
74 MOCK_CONST_METHOD0(GetUnverifiedServerCertificateChain, 73 MOCK_CONST_METHOD0(GetUnverifiedServerCertificateChain,
75 scoped_refptr<net::X509Certificate>()); 74 scoped_refptr<net::X509Certificate>());
76 MOCK_CONST_METHOD0(GetChannelIDService, net::ChannelIDService*()); 75 MOCK_CONST_METHOD0(GetChannelIDService, net::ChannelIDService*());
77 MOCK_METHOD2(GetSignedEKMForTokenBinding, 76 MOCK_METHOD2(GetSignedEKMForTokenBinding,
78 net::Error(crypto::ECPrivateKey*, std::vector<uint8_t>*)); 77 net::Error(crypto::ECPrivateKey*, std::vector<uint8_t>*));
79 MOCK_CONST_METHOD0(GetChannelIDKey, crypto::ECPrivateKey*()); 78 MOCK_CONST_METHOD0(GetChannelIDKey, crypto::ECPrivateKey*());
80 MOCK_CONST_METHOD0(GetSSLFailureState, net::SSLFailureState()); 79 MOCK_CONST_METHOD0(GetSSLFailureState, net::SSLFailureState());
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 total_bytes_written += amount_written_invocation; 315 total_bytes_written += amount_written_invocation;
317 cb.first.Run(amount_written_invocation); 316 cb.first.Run(amount_written_invocation);
318 } 317 }
319 318
320 ASSERT_EQ(total_bytes_requested, total_bytes_written) 319 ASSERT_EQ(total_bytes_requested, total_bytes_written)
321 << "There should be exactly as many bytes written as originally " 320 << "There should be exactly as many bytes written as originally "
322 << "requested to Write()."; 321 << "requested to Write().";
323 } 322 }
324 323
325 } // namespace extensions 324 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698