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 |
11 #include <cstring> | 11 #include <cstring> |
12 #include <deque> | 12 #include <deque> |
13 #include <memory> | 13 #include <memory> |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/callback.h" | 17 #include "base/callback.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
21 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
22 #include "base/memory/scoped_vector.h" | |
23 #include "base/memory/weak_ptr.h" | 22 #include "base/memory/weak_ptr.h" |
24 #include "base/strings/string16.h" | 23 #include "base/strings/string16.h" |
25 #include "base/time/time.h" | 24 #include "base/time/time.h" |
26 #include "net/base/address_list.h" | 25 #include "net/base/address_list.h" |
27 #include "net/base/io_buffer.h" | 26 #include "net/base/io_buffer.h" |
28 #include "net/base/net_errors.h" | 27 #include "net/base/net_errors.h" |
29 #include "net/base/test_completion_callback.h" | 28 #include "net/base/test_completion_callback.h" |
30 #include "net/http/http_auth_controller.h" | 29 #include "net/http/http_auth_controller.h" |
31 #include "net/http/http_proxy_client_socket_pool.h" | 30 #include "net/http/http_proxy_client_socket_pool.h" |
32 #include "net/log/net_log_with_source.h" | 31 #include "net/log/net_log_with_source.h" |
(...skipping 1014 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 |