Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: net/base/socket_test_util.cc

Issue 115870: Reduce header dependencies in net/ (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698