| 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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 int buf_len, | 773 int buf_len, |
| 774 const CompletionCallback& callback) override; | 774 const CompletionCallback& callback) override; |
| 775 int SetReceiveBufferSize(int32_t size) override; | 775 int SetReceiveBufferSize(int32_t size) override; |
| 776 int SetSendBufferSize(int32_t size) override; | 776 int SetSendBufferSize(int32_t size) override; |
| 777 int SetDoNotFragment() override; | 777 int SetDoNotFragment() override; |
| 778 | 778 |
| 779 // DatagramSocket implementation. | 779 // DatagramSocket implementation. |
| 780 void Close() override; | 780 void Close() override; |
| 781 int GetPeerAddress(IPEndPoint* address) const override; | 781 int GetPeerAddress(IPEndPoint* address) const override; |
| 782 int GetLocalAddress(IPEndPoint* address) const override; | 782 int GetLocalAddress(IPEndPoint* address) const override; |
| 783 void UseNonBlockingIO() override; | |
| 784 const NetLogWithSource& NetLog() const override; | 783 const NetLogWithSource& NetLog() const override; |
| 785 | 784 |
| 786 // DatagramClientSocket implementation. | 785 // DatagramClientSocket implementation. |
| 787 int Connect(const IPEndPoint& address) override; | 786 int Connect(const IPEndPoint& address) override; |
| 788 int ConnectUsingNetwork(NetworkChangeNotifier::NetworkHandle network, | 787 int ConnectUsingNetwork(NetworkChangeNotifier::NetworkHandle network, |
| 789 const IPEndPoint& address) override; | 788 const IPEndPoint& address) override; |
| 790 int ConnectUsingDefaultNetwork(const IPEndPoint& address) override; | 789 int ConnectUsingDefaultNetwork(const IPEndPoint& address) override; |
| 791 NetworkChangeNotifier::NetworkHandle GetBoundNetwork() const override; | 790 NetworkChangeNotifier::NetworkHandle GetBoundNetwork() const override; |
| 792 | 791 |
| 793 // AsyncSocket implementation. | 792 // AsyncSocket implementation. |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 | 1046 |
| 1048 // Helper function to get the total data size of the MockReads in |reads|. | 1047 // Helper function to get the total data size of the MockReads in |reads|. |
| 1049 int64_t CountReadBytes(const MockRead reads[], size_t reads_size); | 1048 int64_t CountReadBytes(const MockRead reads[], size_t reads_size); |
| 1050 | 1049 |
| 1051 // Helper function to get the total data size of the MockWrites in |writes|. | 1050 // Helper function to get the total data size of the MockWrites in |writes|. |
| 1052 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size); | 1051 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size); |
| 1053 | 1052 |
| 1054 } // namespace net | 1053 } // namespace net |
| 1055 | 1054 |
| 1056 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1055 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
| OLD | NEW |