| 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/spdy/spdy_session.h" | 5 #include "net/spdy/chromium/spdy_session.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/base64.h" | 11 #include "base/base64.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 15 #include "base/test/histogram_tester.h" | 15 #include "base/test/histogram_tester.h" |
| 16 #include "base/test/scoped_feature_list.h" | 16 #include "base/test/scoped_feature_list.h" |
| 17 #include "net/base/host_port_pair.h" | 17 #include "net/base/host_port_pair.h" |
| 18 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
| 19 #include "net/base/ip_endpoint.h" | 19 #include "net/base/ip_endpoint.h" |
| 20 #include "net/base/proxy_delegate.h" | 20 #include "net/base/proxy_delegate.h" |
| 21 #include "net/base/request_priority.h" | 21 #include "net/base/request_priority.h" |
| 22 #include "net/base/test_data_stream.h" | 22 #include "net/base/test_data_stream.h" |
| 23 #include "net/base/test_proxy_delegate.h" | 23 #include "net/base/test_proxy_delegate.h" |
| 24 #include "net/cert/ct_policy_status.h" | 24 #include "net/cert/ct_policy_status.h" |
| 25 #include "net/log/net_log_event_type.h" | 25 #include "net/log/net_log_event_type.h" |
| 26 #include "net/log/net_log_source.h" | 26 #include "net/log/net_log_source.h" |
| 27 #include "net/log/test_net_log.h" | 27 #include "net/log/test_net_log.h" |
| 28 #include "net/log/test_net_log_entry.h" | 28 #include "net/log/test_net_log_entry.h" |
| 29 #include "net/log/test_net_log_util.h" | 29 #include "net/log/test_net_log_util.h" |
| 30 #include "net/proxy/proxy_server.h" | 30 #include "net/proxy/proxy_server.h" |
| 31 #include "net/socket/client_socket_pool_manager.h" | 31 #include "net/socket/client_socket_pool_manager.h" |
| 32 #include "net/socket/socket_test_util.h" | 32 #include "net/socket/socket_test_util.h" |
| 33 #include "net/spdy/spdy_http_utils.h" | 33 #include "net/spdy/chromium/spdy_http_utils.h" |
| 34 #include "net/spdy/spdy_session_pool.h" | 34 #include "net/spdy/chromium/spdy_session_pool.h" |
| 35 #include "net/spdy/spdy_session_test_util.h" | 35 #include "net/spdy/chromium/spdy_session_test_util.h" |
| 36 #include "net/spdy/spdy_stream.h" | 36 #include "net/spdy/chromium/spdy_stream.h" |
| 37 #include "net/spdy/spdy_stream_test_util.h" | 37 #include "net/spdy/chromium/spdy_stream_test_util.h" |
| 38 #include "net/spdy/spdy_test_util_common.h" | 38 #include "net/spdy/chromium/spdy_test_util_common.h" |
| 39 #include "net/spdy/spdy_test_utils.h" | 39 #include "net/spdy/core/spdy_test_utils.h" |
| 40 #include "net/test/cert_test_util.h" | 40 #include "net/test/cert_test_util.h" |
| 41 #include "net/test/gtest_util.h" | 41 #include "net/test/gtest_util.h" |
| 42 #include "net/test/test_data_directory.h" | 42 #include "net/test/test_data_directory.h" |
| 43 #include "testing/gmock/include/gmock/gmock.h" | 43 #include "testing/gmock/include/gmock/gmock.h" |
| 44 #include "testing/platform_test.h" | 44 #include "testing/platform_test.h" |
| 45 | 45 |
| 46 using net::test::IsError; | 46 using net::test::IsError; |
| 47 using net::test::IsOk; | 47 using net::test::IsOk; |
| 48 using net::test::TestServerPushDelegate; | 48 using net::test::TestServerPushDelegate; |
| 49 | 49 |
| (...skipping 6050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6100 ssl_info.cert = ImportCertFromFile(GetTestCertsDirectory(), | 6100 ssl_info.cert = ImportCertFromFile(GetTestCertsDirectory(), |
| 6101 "spdy_pooling.pem"); | 6101 "spdy_pooling.pem"); |
| 6102 ssl_info.is_issued_by_known_root = true; | 6102 ssl_info.is_issued_by_known_root = true; |
| 6103 ssl_info.public_key_hashes.push_back(test::GetTestHashValue(primary_pin)); | 6103 ssl_info.public_key_hashes.push_back(test::GetTestHashValue(primary_pin)); |
| 6104 | 6104 |
| 6105 EXPECT_TRUE(SpdySession::CanPool( | 6105 EXPECT_TRUE(SpdySession::CanPool( |
| 6106 &tss, ssl_info, "www.example.org", "mail.example.org")); | 6106 &tss, ssl_info, "www.example.org", "mail.example.org")); |
| 6107 } | 6107 } |
| 6108 | 6108 |
| 6109 } // namespace net | 6109 } // namespace net |
| OLD | NEW |