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

Side by Side Diff: net/http/http_proxy_client_socket_pool_unittest.cc

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 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
« no previous file with comments | « net/http/http_proxy_client_socket_pool.cc ('k') | net/http/http_proxy_client_socket_wrapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/http/http_proxy_client_socket_pool.h" 5 #include "net/http/http_proxy_client_socket_pool.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/test/histogram_tester.h" 13 #include "base/test/histogram_tester.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "net/base/proxy_delegate.h" 15 #include "net/base/proxy_delegate.h"
16 #include "net/base/test_completion_callback.h" 16 #include "net/base/test_completion_callback.h"
17 #include "net/base/test_proxy_delegate.h" 17 #include "net/base/test_proxy_delegate.h"
18 #include "net/http/http_network_session.h" 18 #include "net/http/http_network_session.h"
19 #include "net/http/http_proxy_client_socket.h" 19 #include "net/http/http_proxy_client_socket.h"
20 #include "net/http/http_response_headers.h" 20 #include "net/http/http_response_headers.h"
21 #include "net/log/net_log_with_source.h" 21 #include "net/log/net_log_with_source.h"
22 #include "net/socket/client_socket_handle.h" 22 #include "net/socket/client_socket_handle.h"
23 #include "net/socket/next_proto.h" 23 #include "net/socket/next_proto.h"
24 #include "net/socket/socket_test_util.h" 24 #include "net/socket/socket_test_util.h"
25 #include "net/spdy/spdy_protocol.h" 25 #include "net/spdy/chromium/spdy_test_util_common.h"
26 #include "net/spdy/spdy_test_util_common.h" 26 #include "net/spdy/core/spdy_protocol.h"
27 #include "net/test/gtest_util.h" 27 #include "net/test/gtest_util.h"
28 #include "testing/gmock/include/gmock/gmock.h" 28 #include "testing/gmock/include/gmock/gmock.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 using net::test::IsError; 31 using net::test::IsError;
32 using net::test::IsOk; 32 using net::test::IsOk;
33 33
34 namespace net { 34 namespace net {
35 35
36 namespace { 36 namespace {
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 // Make sure Location header was included and correct. 718 // Make sure Location header was included and correct.
719 std::string location; 719 std::string location;
720 EXPECT_TRUE(headers->IsRedirect(&location)); 720 EXPECT_TRUE(headers->IsRedirect(&location));
721 EXPECT_EQ(location, redirectTarget); 721 EXPECT_EQ(location, redirectTarget);
722 } 722 }
723 } 723 }
724 724
725 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. 725 // It would be nice to also test the timeouts in HttpProxyClientSocketPool.
726 726
727 } // namespace net 727 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_pool.cc ('k') | net/http/http_proxy_client_socket_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698