| 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 <cstring> | 8 #include <cstring> |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
| 18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 19 #include "base/string16.h" | 19 #include "base/string16.h" |
| 20 #include "net/base/address_list.h" | 20 #include "net/base/address_list.h" |
| 21 #include "net/base/io_buffer.h" | 21 #include "net/base/io_buffer.h" |
| 22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
| 23 #include "net/base/net_log.h" | 23 #include "net/base/net_log.h" |
| 24 #include "net/base/ssl_config_service.h" | |
| 25 #include "net/base/test_completion_callback.h" | 24 #include "net/base/test_completion_callback.h" |
| 26 #include "net/http/http_auth_controller.h" | 25 #include "net/http/http_auth_controller.h" |
| 27 #include "net/http/http_proxy_client_socket_pool.h" | 26 #include "net/http/http_proxy_client_socket_pool.h" |
| 28 #include "net/socket/client_socket_factory.h" | 27 #include "net/socket/client_socket_factory.h" |
| 29 #include "net/socket/client_socket_handle.h" | 28 #include "net/socket/client_socket_handle.h" |
| 30 #include "net/socket/socks_client_socket_pool.h" | 29 #include "net/socket/socks_client_socket_pool.h" |
| 31 #include "net/socket/ssl_client_socket.h" | 30 #include "net/socket/ssl_client_socket.h" |
| 32 #include "net/socket/ssl_client_socket_pool.h" | 31 #include "net/socket/ssl_client_socket_pool.h" |
| 33 #include "net/socket/transport_client_socket_pool.h" | 32 #include "net/socket/transport_client_socket_pool.h" |
| 33 #include "net/ssl/ssl_config_service.h" |
| 34 #include "net/udp/datagram_client_socket.h" | 34 #include "net/udp/datagram_client_socket.h" |
| 35 #include "testing/gtest/include/gtest/gtest.h" | 35 #include "testing/gtest/include/gtest/gtest.h" |
| 36 | 36 |
| 37 namespace net { | 37 namespace net { |
| 38 | 38 |
| 39 enum { | 39 enum { |
| 40 // A private network error code used by the socket test utility classes. | 40 // A private network error code used by the socket test utility classes. |
| 41 // If the |result| member of a MockRead is | 41 // If the |result| member of a MockRead is |
| 42 // ERR_TEST_PEER_CLOSE_AFTER_NEXT_MOCK_READ, that MockRead is just a | 42 // ERR_TEST_PEER_CLOSE_AFTER_NEXT_MOCK_READ, that MockRead is just a |
| 43 // marker that indicates the peer will close the connection after the next | 43 // marker that indicates the peer will close the connection after the next |
| (...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 | 1074 |
| 1075 extern const char kSOCKS5OkRequest[]; | 1075 extern const char kSOCKS5OkRequest[]; |
| 1076 extern const int kSOCKS5OkRequestLength; | 1076 extern const int kSOCKS5OkRequestLength; |
| 1077 | 1077 |
| 1078 extern const char kSOCKS5OkResponse[]; | 1078 extern const char kSOCKS5OkResponse[]; |
| 1079 extern const int kSOCKS5OkResponseLength; | 1079 extern const int kSOCKS5OkResponseLength; |
| 1080 | 1080 |
| 1081 } // namespace net | 1081 } // namespace net |
| 1082 | 1082 |
| 1083 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ | 1083 #endif // NET_SOCKET_SOCKET_TEST_UTIL_H_ |
| OLD | NEW |