| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "net/socket/fuzzed_socket_factory.h" | 5 #include "net/socket/fuzzed_socket_factory.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/test/fuzzed_data_provider.h" | 9 #include "base/test/fuzzed_data_provider.h" |
| 10 #include "net/base/address_list.h" | 10 #include "net/base/address_list.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void GetConnectionAttempts(ConnectionAttempts* out) const override { | 82 void GetConnectionAttempts(ConnectionAttempts* out) const override { |
| 83 out->clear(); | 83 out->clear(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void ClearConnectionAttempts() override {} | 86 void ClearConnectionAttempts() override {} |
| 87 | 87 |
| 88 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 88 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
| 89 | 89 |
| 90 int64_t GetTotalReceivedBytes() const override { return 0; } | 90 int64_t GetTotalReceivedBytes() const override { return 0; } |
| 91 | 91 |
| 92 void DumpMemoryStats( |
| 93 base::trace_event::MemoryAllocatorDump* dump) const override {} |
| 94 |
| 92 // SSLSocket implementation: | 95 // SSLSocket implementation: |
| 93 int ExportKeyingMaterial(const base::StringPiece& label, | 96 int ExportKeyingMaterial(const base::StringPiece& label, |
| 94 bool has_context, | 97 bool has_context, |
| 95 const base::StringPiece& context, | 98 const base::StringPiece& context, |
| 96 unsigned char* out, | 99 unsigned char* out, |
| 97 unsigned int outlen) override { | 100 unsigned int outlen) override { |
| 98 NOTREACHED(); | 101 NOTREACHED(); |
| 99 return 0; | 102 return 0; |
| 100 } | 103 } |
| 101 | 104 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 std::unique_ptr<ClientSocketHandle> transport_socket, | 162 std::unique_ptr<ClientSocketHandle> transport_socket, |
| 160 const HostPortPair& host_and_port, | 163 const HostPortPair& host_and_port, |
| 161 const SSLConfig& ssl_config, | 164 const SSLConfig& ssl_config, |
| 162 const SSLClientSocketContext& context) { | 165 const SSLClientSocketContext& context) { |
| 163 return base::MakeUnique<FailingSSLClientSocket>(); | 166 return base::MakeUnique<FailingSSLClientSocket>(); |
| 164 } | 167 } |
| 165 | 168 |
| 166 void FuzzedSocketFactory::ClearSSLSessionCache() {} | 169 void FuzzedSocketFactory::ClearSSLSessionCache() {} |
| 167 | 170 |
| 168 } // namespace net | 171 } // namespace net |
| OLD | NEW |