| 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/chromium/quic_stream_factory.h" | 5 #include "net/quic/chromium/quic_stream_factory.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 13 #include "net/cert/cert_verifier.h" | 13 #include "net/cert/cert_verifier.h" |
| 14 #include "net/cert/ct_policy_enforcer.h" | 14 #include "net/cert/ct_policy_enforcer.h" |
| 15 #include "net/cert/multi_log_ct_verifier.h" | 15 #include "net/cert/multi_log_ct_verifier.h" |
| 16 #include "net/dns/mock_host_resolver.h" | 16 #include "net/dns/mock_host_resolver.h" |
| 17 #include "net/http/http_response_headers.h" | 17 #include "net/http/http_response_headers.h" |
| 18 #include "net/http/http_response_info.h" | 18 #include "net/http/http_response_info.h" |
| 19 #include "net/http/http_server_properties_impl.h" | 19 #include "net/http/http_server_properties_impl.h" |
| 20 #include "net/http/http_util.h" | 20 #include "net/http/http_util.h" |
| 21 #include "net/http/transport_security_state.h" | 21 #include "net/http/transport_security_state.h" |
| 22 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" | 22 #include "net/quic/chromium/crypto/proof_verifier_chromium.h" |
| 23 #include "net/quic/crypto/crypto_handshake.h" | 23 #include "net/quic/core/crypto/crypto_handshake.h" |
| 24 #include "net/quic/crypto/properties_based_quic_server_info.h" | 24 #include "net/quic/core/crypto/properties_based_quic_server_info.h" |
| 25 #include "net/quic/crypto/quic_crypto_client_config.h" | 25 #include "net/quic/core/crypto/quic_crypto_client_config.h" |
| 26 #include "net/quic/crypto/quic_decrypter.h" | 26 #include "net/quic/core/crypto/quic_decrypter.h" |
| 27 #include "net/quic/crypto/quic_encrypter.h" | 27 #include "net/quic/core/crypto/quic_encrypter.h" |
| 28 #include "net/quic/crypto/quic_server_info.h" | 28 #include "net/quic/core/crypto/quic_server_info.h" |
| 29 #include "net/quic/quic_client_promised_info.h" | 29 #include "net/quic/core/quic_client_promised_info.h" |
| 30 #include "net/quic/quic_http_utils.h" | 30 #include "net/quic/core/quic_http_utils.h" |
| 31 #include "net/quic/test_tools/mock_clock.h" | 31 #include "net/quic/test_tools/mock_clock.h" |
| 32 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" | 32 #include "net/quic/test_tools/mock_crypto_client_stream_factory.h" |
| 33 #include "net/quic/test_tools/mock_random.h" | 33 #include "net/quic/test_tools/mock_random.h" |
| 34 #include "net/quic/test_tools/quic_config_peer.h" | 34 #include "net/quic/test_tools/quic_config_peer.h" |
| 35 #include "net/quic/test_tools/quic_stream_factory_peer.h" | 35 #include "net/quic/test_tools/quic_stream_factory_peer.h" |
| 36 #include "net/quic/test_tools/quic_test_packet_maker.h" | 36 #include "net/quic/test_tools/quic_test_packet_maker.h" |
| 37 #include "net/quic/test_tools/quic_test_utils.h" | 37 #include "net/quic/test_tools/quic_test_utils.h" |
| 38 #include "net/quic/test_tools/test_task_runner.h" | 38 #include "net/quic/test_tools/test_task_runner.h" |
| 39 #include "net/socket/socket_test_util.h" | 39 #include "net/socket/socket_test_util.h" |
| 40 #include "net/spdy/spdy_session_test_util.h" | 40 #include "net/spdy/spdy_session_test_util.h" |
| (...skipping 4766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4807 EXPECT_NE(session1, session2); | 4807 EXPECT_NE(session1, session2); |
| 4808 | 4808 |
| 4809 EXPECT_EQ(QuicServerId(origin1_, privacy_mode_), session1->server_id()); | 4809 EXPECT_EQ(QuicServerId(origin1_, privacy_mode_), session1->server_id()); |
| 4810 EXPECT_EQ(QuicServerId(origin2_, privacy_mode_), session2->server_id()); | 4810 EXPECT_EQ(QuicServerId(origin2_, privacy_mode_), session2->server_id()); |
| 4811 | 4811 |
| 4812 EXPECT_TRUE(AllDataConsumed()); | 4812 EXPECT_TRUE(AllDataConsumed()); |
| 4813 } | 4813 } |
| 4814 | 4814 |
| 4815 } // namespace test | 4815 } // namespace test |
| 4816 } // namespace net | 4816 } // namespace net |
| OLD | NEW |