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 // This file contains some tests for TCPClientSocket. | 5 // This file contains some tests for TCPClientSocket. |
6 // transport_client_socket_unittest.cc contans some other tests that | 6 // transport_client_socket_unittest.cc contans some other tests that |
7 // are common for TCP and other types of sockets. | 7 // are common for TCP and other types of sockets. |
8 | 8 |
9 #include "net/socket/tcp_client_socket.h" | 9 #include "net/socket/tcp_client_socket.h" |
10 | 10 |
11 #include <stddef.h> | 11 #include <stddef.h> |
12 | 12 |
13 #include "net/base/ip_address.h" | 13 #include "net/base/ip_address.h" |
14 #include "net/base/ip_endpoint.h" | 14 #include "net/base/ip_endpoint.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "net/base/socket_performance_watcher.h" | |
17 #include "net/base/test_completion_callback.h" | 16 #include "net/base/test_completion_callback.h" |
| 17 #include "net/socket/socket_performance_watcher.h" |
18 #include "net/socket/tcp_server_socket.h" | 18 #include "net/socket/tcp_server_socket.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 class TimeDelta; | 22 class TimeDelta; |
23 } | 23 } |
24 | 24 |
25 namespace net { | 25 namespace net { |
26 | 26 |
27 namespace { | 27 namespace { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 ASSERT_NE(OK, connect_callback.GetResult( | 159 ASSERT_NE(OK, connect_callback.GetResult( |
160 socket.Connect(connect_callback.callback()))); | 160 socket.Connect(connect_callback.callback()))); |
161 | 161 |
162 EXPECT_EQ(kNumIPs - 1, watcher_ptr->connection_changed_count()); | 162 EXPECT_EQ(kNumIPs - 1, watcher_ptr->connection_changed_count()); |
163 } | 163 } |
164 | 164 |
165 } // namespace | 165 } // namespace |
166 | 166 |
167 } // namespace net | 167 } // namespace net |
OLD | NEW |