OLD | NEW |
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 <deque> | 7 #include <deque> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 MOCK_CONST_METHOD0(WasEverUsed, bool()); | 53 MOCK_CONST_METHOD0(WasEverUsed, bool()); |
54 MOCK_CONST_METHOD0(UsingTCPFastOpen, bool()); | 54 MOCK_CONST_METHOD0(UsingTCPFastOpen, bool()); |
55 MOCK_METHOD1(GetSSLInfo, bool(net::SSLInfo*)); | 55 MOCK_METHOD1(GetSSLInfo, bool(net::SSLInfo*)); |
56 MOCK_METHOD5(ExportKeyingMaterial, | 56 MOCK_METHOD5(ExportKeyingMaterial, |
57 int(const StringPiece&, | 57 int(const StringPiece&, |
58 bool, | 58 bool, |
59 const StringPiece&, | 59 const StringPiece&, |
60 unsigned char*, | 60 unsigned char*, |
61 unsigned int)); | 61 unsigned int)); |
62 MOCK_METHOD1(GetTLSUniqueChannelBinding, int(std::string*)); | 62 MOCK_METHOD1(GetTLSUniqueChannelBinding, int(std::string*)); |
| 63 MOCK_CONST_METHOD0(GetSessionCacheKey, std::string()); |
63 MOCK_CONST_METHOD0(InSessionCache, bool()); | 64 MOCK_CONST_METHOD0(InSessionCache, bool()); |
64 MOCK_METHOD1(SetHandshakeCompletionCallback, void(const base::Closure&)); | 65 MOCK_METHOD1(SetHandshakeCompletionCallback, void(const base::Closure&)); |
65 MOCK_METHOD1(GetSSLCertRequestInfo, void(net::SSLCertRequestInfo*)); | 66 MOCK_METHOD1(GetSSLCertRequestInfo, void(net::SSLCertRequestInfo*)); |
66 MOCK_METHOD1(GetNextProto, | 67 MOCK_METHOD1(GetNextProto, |
67 net::SSLClientSocket::NextProtoStatus(std::string*)); | 68 net::SSLClientSocket::NextProtoStatus(std::string*)); |
68 MOCK_CONST_METHOD0(GetUnverifiedServerCertificateChain, | 69 MOCK_CONST_METHOD0(GetUnverifiedServerCertificateChain, |
69 scoped_refptr<net::X509Certificate>()); | 70 scoped_refptr<net::X509Certificate>()); |
70 MOCK_CONST_METHOD0(GetChannelIDService, net::ChannelIDService*()); | 71 MOCK_CONST_METHOD0(GetChannelIDService, net::ChannelIDService*()); |
71 virtual bool IsConnected() const OVERRIDE { return true; } | 72 virtual bool IsConnected() const OVERRIDE { return true; } |
72 | 73 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 total_bytes_written += amount_written_invocation; | 308 total_bytes_written += amount_written_invocation; |
308 cb.first.Run(amount_written_invocation); | 309 cb.first.Run(amount_written_invocation); |
309 } | 310 } |
310 | 311 |
311 ASSERT_EQ(total_bytes_requested, total_bytes_written) | 312 ASSERT_EQ(total_bytes_requested, total_bytes_written) |
312 << "There should be exactly as many bytes written as originally " | 313 << "There should be exactly as many bytes written as originally " |
313 << "requested to Write()."; | 314 << "requested to Write()."; |
314 } | 315 } |
315 | 316 |
316 } // namespace extensions | 317 } // namespace extensions |
OLD | NEW |