| OLD | NEW |
| 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 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 int GetLocalAddress(IPEndPoint* address) const override; | 574 int GetLocalAddress(IPEndPoint* address) const override; |
| 575 const NetLogWithSource& NetLog() const override; | 575 const NetLogWithSource& NetLog() const override; |
| 576 void SetSubresourceSpeculation() override {} | 576 void SetSubresourceSpeculation() override {} |
| 577 void SetOmniboxSpeculation() override {} | 577 void SetOmniboxSpeculation() override {} |
| 578 bool WasNpnNegotiated() const override; | 578 bool WasNpnNegotiated() const override; |
| 579 NextProto GetNegotiatedProtocol() const override; | 579 NextProto GetNegotiatedProtocol() const override; |
| 580 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 580 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
| 581 void ClearConnectionAttempts() override {} | 581 void ClearConnectionAttempts() override {} |
| 582 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 582 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 583 int64_t GetTotalReceivedBytes() const override; | 583 int64_t GetTotalReceivedBytes() const override; |
| 584 void DumpMemoryStats( |
| 585 base::trace_event::MemoryAllocatorDump* dump) const override {} |
| 584 | 586 |
| 585 // SSLClientSocket implementation. | 587 // SSLClientSocket implementation. |
| 586 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; | 588 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; |
| 587 int ExportKeyingMaterial(const base::StringPiece& label, | 589 int ExportKeyingMaterial(const base::StringPiece& label, |
| 588 bool has_context, | 590 bool has_context, |
| 589 const base::StringPiece& context, | 591 const base::StringPiece& context, |
| 590 unsigned char* out, | 592 unsigned char* out, |
| 591 unsigned int outlen) override; | 593 unsigned int outlen) override; |
| 592 ChannelIDService* GetChannelIDService() const override; | 594 ChannelIDService* GetChannelIDService() const override; |
| 593 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, | 595 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 | 1017 |
| 1016 // Helper function to get the total data size of the MockReads in |reads|. | 1018 // Helper function to get the total data size of the MockReads in |reads|. |
| 1017 int64_t CountReadBytes(const MockRead reads[], size_t reads_size); | 1019 int64_t CountReadBytes(const MockRead reads[], size_t reads_size); |
| 1018 | 1020 |
| 1019 // Helper function to get the total data size of the MockWrites in |writes|. | 1021 // Helper function to get the total data size of the MockWrites in |writes|. |
| 1020 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size); | 1022 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size); |
| 1021 | 1023 |
| 1022 } // namespace net | 1024 } // namespace net |
| 1023 | 1025 |
| 1024 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1026 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
| OLD | NEW |