| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/socket/socks_client_socket.h" | 5 #include "net/socket/socks_client_socket.h" |
| 6 | 6 |
| 7 #include "net/base/address_list.h" | 7 #include "net/base/address_list.h" |
| 8 #include "net/base/listen_socket.h" | |
| 9 #include "net/base/mock_host_resolver.h" | 8 #include "net/base/mock_host_resolver.h" |
| 10 #include "net/base/test_completion_callback.h" | 9 #include "net/base/test_completion_callback.h" |
| 11 #include "net/base/winsock_init.h" | 10 #include "net/base/winsock_init.h" |
| 12 #include "net/socket/client_socket_factory.h" | 11 #include "net/socket/client_socket_factory.h" |
| 13 #include "net/socket/tcp_client_socket.h" | 12 #include "net/socket/tcp_client_socket.h" |
| 14 #include "net/socket/socket_test_util.h" | 13 #include "net/socket/socket_test_util.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "testing/platform_test.h" | 15 #include "testing/platform_test.h" |
| 17 | 16 |
| 18 //----------------------------------------------------------------------------- | 17 //----------------------------------------------------------------------------- |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 int rv = user_sock_->Connect(&callback_); | 268 int rv = user_sock_->Connect(&callback_); |
| 270 EXPECT_EQ(ERR_IO_PENDING, rv); | 269 EXPECT_EQ(ERR_IO_PENDING, rv); |
| 271 rv = callback_.WaitForResult(); | 270 rv = callback_.WaitForResult(); |
| 272 EXPECT_EQ(OK, rv); | 271 EXPECT_EQ(OK, rv); |
| 273 EXPECT_TRUE(user_sock_->IsConnected()); | 272 EXPECT_TRUE(user_sock_->IsConnected()); |
| 274 EXPECT_EQ(SOCKSClientSocket::kSOCKS4a, user_sock_->socks_version_); | 273 EXPECT_EQ(SOCKSClientSocket::kSOCKS4a, user_sock_->socks_version_); |
| 275 } | 274 } |
| 276 | 275 |
| 277 } // namespace net | 276 } // namespace net |
| 278 | 277 |
| OLD | NEW |