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

Side by Side Diff: net/spdy/spdy_proxy_client_socket_spdy3_unittest.cc

Issue 12518036: net: move host_resolver files from net/base to net/dns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/spdy/spdy_proxy_client_socket.h" 5 #include "net/spdy/spdy_proxy_client_socket.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "net/base/address_list.h" 10 #include "net/base/address_list.h"
11 #include "net/base/capturing_net_log.h" 11 #include "net/base/capturing_net_log.h"
12 #include "net/base/net_log.h" 12 #include "net/base/net_log.h"
13 #include "net/base/net_log_unittest.h" 13 #include "net/base/net_log_unittest.h"
14 #include "net/base/mock_host_resolver.h"
15 #include "net/base/test_completion_callback.h" 14 #include "net/base/test_completion_callback.h"
16 #include "net/base/winsock_init.h" 15 #include "net/base/winsock_init.h"
16 #include "net/dns/mock_host_resolver.h"
17 #include "net/http/http_response_headers.h"
17 #include "net/http/http_response_info.h" 18 #include "net/http/http_response_info.h"
18 #include "net/http/http_response_headers.h"
19 #include "net/socket/client_socket_factory.h" 19 #include "net/socket/client_socket_factory.h"
20 #include "net/socket/socket_test_util.h"
20 #include "net/socket/tcp_client_socket.h" 21 #include "net/socket/tcp_client_socket.h"
21 #include "net/socket/socket_test_util.h"
22 #include "net/spdy/buffered_spdy_framer.h" 22 #include "net/spdy/buffered_spdy_framer.h"
23 #include "net/spdy/spdy_http_utils.h" 23 #include "net/spdy/spdy_http_utils.h"
24 #include "net/spdy/spdy_protocol.h" 24 #include "net/spdy/spdy_protocol.h"
25 #include "net/spdy/spdy_session_pool.h" 25 #include "net/spdy/spdy_session_pool.h"
26 #include "net/spdy/spdy_test_util_common.h" 26 #include "net/spdy/spdy_test_util_common.h"
27 #include "net/spdy/spdy_test_util_spdy3.h" 27 #include "net/spdy/spdy_test_util_spdy3.h"
28 #include "testing/gtest/include/gtest/gtest.h"
28 #include "testing/platform_test.h" 29 #include "testing/platform_test.h"
29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 using namespace net::test_spdy3; 31 using namespace net::test_spdy3;
32 32
33 //----------------------------------------------------------------------------- 33 //-----------------------------------------------------------------------------
34 34
35 namespace { 35 namespace {
36 36
37 static const char kRequestUrl[] = "https://www.google.com/"; 37 static const char kRequestUrl[] = "https://www.google.com/";
38 static const char kOriginHost[] = "www.google.com"; 38 static const char kOriginHost[] = "www.google.com";
39 static const int kOriginPort = 443; 39 static const int kOriginPort = 443;
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 write_callback_.callback())); 1410 write_callback_.callback()));
1411 1411
1412 Run(2); 1412 Run(2);
1413 1413
1414 EXPECT_FALSE(sock_.get()); 1414 EXPECT_FALSE(sock_.get());
1415 EXPECT_TRUE(read_callback.have_result()); 1415 EXPECT_TRUE(read_callback.have_result());
1416 EXPECT_FALSE(write_callback_.have_result()); 1416 EXPECT_FALSE(write_callback_.have_result());
1417 } 1417 }
1418 1418
1419 } // namespace net 1419 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698