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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Adding includes to files that were "include-hidden" by "net_log.h". Created 4 years, 2 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) 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_stream_factory_impl.h" 5 #include "net/http/http_stream_factory_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 12 matching lines...) Expand all
23 #include "net/http/bidirectional_stream_request_info.h" 23 #include "net/http/bidirectional_stream_request_info.h"
24 #include "net/http/http_auth_handler_factory.h" 24 #include "net/http/http_auth_handler_factory.h"
25 #include "net/http/http_network_session.h" 25 #include "net/http/http_network_session.h"
26 #include "net/http/http_network_session_peer.h" 26 #include "net/http/http_network_session_peer.h"
27 #include "net/http/http_network_transaction.h" 27 #include "net/http/http_network_transaction.h"
28 #include "net/http/http_request_info.h" 28 #include "net/http/http_request_info.h"
29 #include "net/http/http_server_properties.h" 29 #include "net/http/http_server_properties.h"
30 #include "net/http/http_server_properties_impl.h" 30 #include "net/http/http_server_properties_impl.h"
31 #include "net/http/http_stream.h" 31 #include "net/http/http_stream.h"
32 #include "net/http/transport_security_state.h" 32 #include "net/http/transport_security_state.h"
33 #include "net/log/net_log.h" 33 #include "net/log/net_log_with_source.h"
34 #include "net/proxy/proxy_info.h" 34 #include "net/proxy/proxy_info.h"
35 #include "net/proxy/proxy_service.h" 35 #include "net/proxy/proxy_service.h"
36 #include "net/quic/core/quic_http_utils.h" 36 #include "net/quic/core/quic_http_utils.h"
37 #include "net/quic/core/quic_server_id.h" 37 #include "net/quic/core/quic_server_id.h"
38 #include "net/quic/test_tools/crypto_test_utils.h" 38 #include "net/quic/test_tools/crypto_test_utils.h"
39 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" 39 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h"
40 #include "net/quic/test_tools/mock_random.h" 40 #include "net/quic/test_tools/mock_random.h"
41 #include "net/quic/test_tools/quic_stream_factory_peer.h" 41 #include "net/quic/test_tools/quic_stream_factory_peer.h"
42 #include "net/quic/test_tools/quic_test_packet_maker.h" 42 #include "net/quic/test_tools/quic_test_packet_maker.h"
43 #include "net/quic/test_tools/quic_test_utils.h" 43 #include "net/quic/test_tools/quic_test_utils.h"
(...skipping 14 matching lines...) Expand all
58 // it is in net/websockets because it doesn't 58 // it is in net/websockets because it doesn't
59 // introduce any link dependency to net/websockets. 59 // introduce any link dependency to net/websockets.
60 #include "net/websockets/websocket_handshake_stream_base.h" 60 #include "net/websockets/websocket_handshake_stream_base.h"
61 61
62 #include "testing/gmock/include/gmock/gmock.h" 62 #include "testing/gmock/include/gmock/gmock.h"
63 #include "testing/gtest/include/gtest/gtest.h" 63 #include "testing/gtest/include/gtest/gtest.h"
64 64
65 using net::test::IsError; 65 using net::test::IsError;
66 using net::test::IsOk; 66 using net::test::IsOk;
67 67
68 namespace base {
69 class Value;
70 class DictionaryValue;
71 } // namespace base
72
68 namespace net { 73 namespace net {
69 74
70 class BidirectionalStreamImpl; 75 class BidirectionalStreamImpl;
71 76
72 namespace { 77 namespace {
73 78
74 class MockWebSocketHandshakeStream : public WebSocketHandshakeStreamBase { 79 class MockWebSocketHandshakeStream : public WebSocketHandshakeStreamBase {
75 public: 80 public:
76 enum StreamType { 81 enum StreamType {
77 kStreamTypeBasic, 82 kStreamTypeBasic,
(...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 session->GetTransportSocketPool( 2256 session->GetTransportSocketPool(
2252 HttpNetworkSession::WEBSOCKET_SOCKET_POOL))); 2257 HttpNetworkSession::WEBSOCKET_SOCKET_POOL)));
2253 EXPECT_EQ(1, GetSocketPoolGroupCount( 2258 EXPECT_EQ(1, GetSocketPoolGroupCount(
2254 session->GetSSLSocketPool(HttpNetworkSession::WEBSOCKET_SOCKET_POOL))); 2259 session->GetSSLSocketPool(HttpNetworkSession::WEBSOCKET_SOCKET_POOL)));
2255 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); 2260 EXPECT_TRUE(waiter.used_proxy_info().is_direct());
2256 } 2261 }
2257 2262
2258 } // namespace 2263 } // namespace
2259 2264
2260 } // namespace net 2265 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698