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/base/socket_test_util.h" | 5 #include "net/base/socket_test_util.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "net/base/io_buffer.h" |
10 #include "net/base/socket.h" | 11 #include "net/base/socket.h" |
11 #include "net/base/ssl_client_socket.h" | 12 #include "net/base/ssl_client_socket.h" |
12 #include "net/base/ssl_info.h" | 13 #include "net/base/ssl_info.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 class MockClientSocket : public net::SSLClientSocket { | 18 class MockClientSocket : public net::SSLClientSocket { |
18 public: | 19 public: |
19 MockClientSocket(); | 20 MockClientSocket(); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 320 |
320 SSLClientSocket* MockClientSocketFactory::CreateSSLClientSocket( | 321 SSLClientSocket* MockClientSocketFactory::CreateSSLClientSocket( |
321 ClientSocket* transport_socket, | 322 ClientSocket* transport_socket, |
322 const std::string& hostname, | 323 const std::string& hostname, |
323 const SSLConfig& ssl_config) { | 324 const SSLConfig& ssl_config) { |
324 return new MockSSLClientSocket(transport_socket, hostname, ssl_config, | 325 return new MockSSLClientSocket(transport_socket, hostname, ssl_config, |
325 mock_ssl_sockets_.GetNext()); | 326 mock_ssl_sockets_.GetNext()); |
326 } | 327 } |
327 | 328 |
328 } // namespace net | 329 } // namespace net |
OLD | NEW |