OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #include "net/base/tcp_client_socket.h" | 5 #include "net/base/tcp_client_socket.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "net/base/address_list.h" | 8 #include "net/base/address_list.h" |
9 #include "net/base/host_resolver.h" | 9 #include "net/base/host_resolver.h" |
| 10 #include "net/base/io_buffer.h" |
10 #include "net/base/listen_socket.h" | 11 #include "net/base/listen_socket.h" |
11 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
12 #include "net/base/test_completion_callback.h" | 13 #include "net/base/test_completion_callback.h" |
13 #include "net/base/winsock_init.h" | 14 #include "net/base/winsock_init.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "testing/platform_test.h" | 16 #include "testing/platform_test.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 namespace { | 20 namespace { |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 // Close the server socket, so there will at least be a 0-byte read. | 329 // Close the server socket, so there will at least be a 0-byte read. |
329 CloseServerSocket(); | 330 CloseServerSocket(); |
330 | 331 |
331 rv = callback.WaitForResult(); | 332 rv = callback.WaitForResult(); |
332 EXPECT_GE(rv, 0); | 333 EXPECT_GE(rv, 0); |
333 } | 334 } |
334 | 335 |
335 } // namespace | 336 } // namespace |
336 | 337 |
337 } // namespace net | 338 } // namespace net |
OLD | NEW |