| OLD | NEW |
| 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/quic/quic_stream_factory.h" | 5 #include "net/quic/quic_stream_factory.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "net/base/test_data_directory.h" | |
| 13 #include "net/cert/cert_verifier.h" | 12 #include "net/cert/cert_verifier.h" |
| 14 #include "net/cert/ct_policy_enforcer.h" | 13 #include "net/cert/ct_policy_enforcer.h" |
| 15 #include "net/cert/multi_log_ct_verifier.h" | 14 #include "net/cert/multi_log_ct_verifier.h" |
| 16 #include "net/dns/mock_host_resolver.h" | 15 #include "net/dns/mock_host_resolver.h" |
| 17 #include "net/http/http_response_headers.h" | 16 #include "net/http/http_response_headers.h" |
| 18 #include "net/http/http_response_info.h" | 17 #include "net/http/http_response_info.h" |
| 19 #include "net/http/http_server_properties_impl.h" | 18 #include "net/http/http_server_properties_impl.h" |
| 20 #include "net/http/http_util.h" | 19 #include "net/http/http_util.h" |
| 21 #include "net/http/transport_security_state.h" | 20 #include "net/http/transport_security_state.h" |
| 22 #include "net/quic/crypto/crypto_handshake.h" | 21 #include "net/quic/crypto/crypto_handshake.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 35 #include "net/quic/test_tools/quic_stream_factory_peer.h" | 34 #include "net/quic/test_tools/quic_stream_factory_peer.h" |
| 36 #include "net/quic/test_tools/quic_test_packet_maker.h" | 35 #include "net/quic/test_tools/quic_test_packet_maker.h" |
| 37 #include "net/quic/test_tools/quic_test_utils.h" | 36 #include "net/quic/test_tools/quic_test_utils.h" |
| 38 #include "net/quic/test_tools/test_task_runner.h" | 37 #include "net/quic/test_tools/test_task_runner.h" |
| 39 #include "net/socket/socket_test_util.h" | 38 #include "net/socket/socket_test_util.h" |
| 40 #include "net/spdy/spdy_session_test_util.h" | 39 #include "net/spdy/spdy_session_test_util.h" |
| 41 #include "net/spdy/spdy_test_utils.h" | 40 #include "net/spdy/spdy_test_utils.h" |
| 42 #include "net/ssl/channel_id_service.h" | 41 #include "net/ssl/channel_id_service.h" |
| 43 #include "net/ssl/default_channel_id_store.h" | 42 #include "net/ssl/default_channel_id_store.h" |
| 44 #include "net/test/cert_test_util.h" | 43 #include "net/test/cert_test_util.h" |
| 44 #include "net/test/test_data_directory.h" |
| 45 #include "testing/gtest/include/gtest/gtest.h" | 45 #include "testing/gtest/include/gtest/gtest.h" |
| 46 | 46 |
| 47 using std::string; | 47 using std::string; |
| 48 using std::vector; | 48 using std::vector; |
| 49 | 49 |
| 50 namespace net { | 50 namespace net { |
| 51 | 51 |
| 52 namespace test { | 52 namespace test { |
| 53 | 53 |
| 54 namespace { | 54 namespace { |
| (...skipping 4275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4330 EXPECT_NE(session1, session2); | 4330 EXPECT_NE(session1, session2); |
| 4331 | 4331 |
| 4332 EXPECT_EQ(QuicServerId(origin1_, privacy_mode_), session1->server_id()); | 4332 EXPECT_EQ(QuicServerId(origin1_, privacy_mode_), session1->server_id()); |
| 4333 EXPECT_EQ(QuicServerId(origin2_, privacy_mode_), session2->server_id()); | 4333 EXPECT_EQ(QuicServerId(origin2_, privacy_mode_), session2->server_id()); |
| 4334 | 4334 |
| 4335 EXPECT_TRUE(AllDataConsumed()); | 4335 EXPECT_TRUE(AllDataConsumed()); |
| 4336 } | 4336 } |
| 4337 | 4337 |
| 4338 } // namespace test | 4338 } // namespace test |
| 4339 } // namespace net | 4339 } // namespace net |
| OLD | NEW |