| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/socket/tcp_server_socket.h" | 5 #include "net/socket/tcp_server_socket.h" |
| 6 | 6 |
| 7 #include <string> |
| 8 |
| 7 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 8 #include "base/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 9 #include "net/base/address_list.h" | 11 #include "net/base/address_list.h" |
| 10 #include "net/base/ip_endpoint.h" | 12 #include "net/base/ip_endpoint.h" |
| 11 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
| 12 #include "net/base/sys_addrinfo.h" | 14 #include "net/base/sys_addrinfo.h" |
| 13 #include "net/base/test_completion_callback.h" | 15 #include "net/base/test_completion_callback.h" |
| 14 #include "net/socket/tcp_client_socket.h" | 16 #include "net/socket/tcp_client_socket.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "testing/platform_test.h" | 18 #include "testing/platform_test.h" |
| 17 | 19 |
| 18 namespace net { | 20 namespace net { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // Both sockets should be on the loopback network interface. | 186 // Both sockets should be on the loopback network interface. |
| 185 EXPECT_EQ(GetPeerAddress(accepted_socket.get()).address(), | 187 EXPECT_EQ(GetPeerAddress(accepted_socket.get()).address(), |
| 186 local_address_.address()); | 188 local_address_.address()); |
| 187 | 189 |
| 188 EXPECT_EQ(OK, connect_callback.WaitForResult()); | 190 EXPECT_EQ(OK, connect_callback.WaitForResult()); |
| 189 } | 191 } |
| 190 | 192 |
| 191 } // namespace | 193 } // namespace |
| 192 | 194 |
| 193 } // namespace net | 195 } // namespace net |
| OLD | NEW |