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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
507 } | 507 } |
508 | 508 |
509 // ClientSocketFactory | 509 // ClientSocketFactory |
510 scoped_ptr<DatagramClientSocket> CreateDatagramClientSocket( | 510 scoped_ptr<DatagramClientSocket> CreateDatagramClientSocket( |
511 DatagramSocket::BindType bind_type, | 511 DatagramSocket::BindType bind_type, |
512 const RandIntCallback& rand_int_cb, | 512 const RandIntCallback& rand_int_cb, |
513 NetLog* net_log, | 513 NetLog* net_log, |
514 const NetLog::Source& source) override; | 514 const NetLog::Source& source) override; |
515 scoped_ptr<StreamSocket> CreateTransportClientSocket( | 515 scoped_ptr<StreamSocket> CreateTransportClientSocket( |
516 const AddressList& addresses, | 516 const AddressList& addresses, |
517 SocketPerformanceWatcherFactory* socket_performance_watcher_factory, | |
bengr
2016/02/08 18:51:14
Forward declare.
tbansal1
2016/02/08 21:33:26
Done.
| |
517 NetLog* net_log, | 518 NetLog* net_log, |
518 const NetLog::Source& source) override; | 519 const NetLog::Source& source) override; |
519 scoped_ptr<SSLClientSocket> CreateSSLClientSocket( | 520 scoped_ptr<SSLClientSocket> CreateSSLClientSocket( |
520 scoped_ptr<ClientSocketHandle> transport_socket, | 521 scoped_ptr<ClientSocketHandle> transport_socket, |
521 const HostPortPair& host_and_port, | 522 const HostPortPair& host_and_port, |
522 const SSLConfig& ssl_config, | 523 const SSLConfig& ssl_config, |
523 const SSLClientSocketContext& context) override; | 524 const SSLClientSocketContext& context) override; |
524 void ClearSSLSessionCache() override; | 525 void ClearSSLSessionCache() override; |
525 | 526 |
526 const std::vector<uint16_t>& udp_client_socket_ports() const { | 527 const std::vector<uint16_t>& udp_client_socket_ports() const { |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
999 | 1000 |
1000 // Helper function to get the total data size of the MockReads in |reads|. | 1001 // Helper function to get the total data size of the MockReads in |reads|. |
1001 int64_t CountReadBytes(const MockRead reads[], size_t reads_size); | 1002 int64_t CountReadBytes(const MockRead reads[], size_t reads_size); |
1002 | 1003 |
1003 // Helper function to get the total data size of the MockWrites in |writes|. | 1004 // Helper function to get the total data size of the MockWrites in |writes|. |
1004 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size); | 1005 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size); |
1005 | 1006 |
1006 } // namespace net | 1007 } // namespace net |
1007 | 1008 |
1008 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1009 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
OLD | NEW |