| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 MOCK_METHOD0(SetOmniboxSpeculation, void()); | 58 MOCK_METHOD0(SetOmniboxSpeculation, void()); |
| 59 MOCK_CONST_METHOD0(WasEverUsed, bool()); | 59 MOCK_CONST_METHOD0(WasEverUsed, bool()); |
| 60 MOCK_CONST_METHOD0(UsingTCPFastOpen, bool()); | 60 MOCK_CONST_METHOD0(UsingTCPFastOpen, bool()); |
| 61 MOCK_CONST_METHOD0(WasNpnNegotiated, bool()); | 61 MOCK_CONST_METHOD0(WasNpnNegotiated, bool()); |
| 62 MOCK_CONST_METHOD0(GetNegotiatedProtocol, net::NextProto()); | 62 MOCK_CONST_METHOD0(GetNegotiatedProtocol, net::NextProto()); |
| 63 MOCK_METHOD1(GetSSLInfo, bool(net::SSLInfo*)); | 63 MOCK_METHOD1(GetSSLInfo, bool(net::SSLInfo*)); |
| 64 MOCK_CONST_METHOD1(GetConnectionAttempts, void(net::ConnectionAttempts*)); | 64 MOCK_CONST_METHOD1(GetConnectionAttempts, void(net::ConnectionAttempts*)); |
| 65 MOCK_METHOD0(ClearConnectionAttempts, void()); | 65 MOCK_METHOD0(ClearConnectionAttempts, void()); |
| 66 MOCK_METHOD1(AddConnectionAttempts, void(const net::ConnectionAttempts&)); | 66 MOCK_METHOD1(AddConnectionAttempts, void(const net::ConnectionAttempts&)); |
| 67 MOCK_CONST_METHOD0(GetTotalReceivedBytes, int64_t()); | 67 MOCK_CONST_METHOD0(GetTotalReceivedBytes, int64_t()); |
| 68 MOCK_CONST_METHOD1(DumpMemoryStats, |
| 69 void(base::trace_event::MemoryAllocatorDump* dump)); |
| 68 MOCK_METHOD5(ExportKeyingMaterial, | 70 MOCK_METHOD5(ExportKeyingMaterial, |
| 69 int(const StringPiece&, | 71 int(const StringPiece&, |
| 70 bool, | 72 bool, |
| 71 const StringPiece&, | 73 const StringPiece&, |
| 72 unsigned char*, | 74 unsigned char*, |
| 73 unsigned int)); | 75 unsigned int)); |
| 74 MOCK_METHOD1(GetSSLCertRequestInfo, void(net::SSLCertRequestInfo*)); | 76 MOCK_METHOD1(GetSSLCertRequestInfo, void(net::SSLCertRequestInfo*)); |
| 75 MOCK_CONST_METHOD0(GetUnverifiedServerCertificateChain, | 77 MOCK_CONST_METHOD0(GetUnverifiedServerCertificateChain, |
| 76 scoped_refptr<net::X509Certificate>()); | 78 scoped_refptr<net::X509Certificate>()); |
| 77 MOCK_CONST_METHOD0(GetChannelIDService, net::ChannelIDService*()); | 79 MOCK_CONST_METHOD0(GetChannelIDService, net::ChannelIDService*()); |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 total_bytes_written += amount_written_invocation; | 322 total_bytes_written += amount_written_invocation; |
| 321 cb.first.Run(amount_written_invocation); | 323 cb.first.Run(amount_written_invocation); |
| 322 } | 324 } |
| 323 | 325 |
| 324 ASSERT_EQ(total_bytes_requested, total_bytes_written) | 326 ASSERT_EQ(total_bytes_requested, total_bytes_written) |
| 325 << "There should be exactly as many bytes written as originally " | 327 << "There should be exactly as many bytes written as originally " |
| 326 << "requested to Write()."; | 328 << "requested to Write()."; |
| 327 } | 329 } |
| 328 | 330 |
| 329 } // namespace extensions | 331 } // namespace extensions |
| OLD | NEW |