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/spdy_session.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/test/histogram_tester.h" | 14 #include "base/test/histogram_tester.h" |
15 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
16 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
17 #include "net/base/ip_endpoint.h" | 17 #include "net/base/ip_endpoint.h" |
18 #include "net/base/proxy_delegate.h" | 18 #include "net/base/proxy_delegate.h" |
19 #include "net/base/request_priority.h" | 19 #include "net/base/request_priority.h" |
20 #include "net/base/test_data_directory.h" | |
21 #include "net/base/test_data_stream.h" | 20 #include "net/base/test_data_stream.h" |
22 #include "net/base/test_proxy_delegate.h" | 21 #include "net/base/test_proxy_delegate.h" |
23 #include "net/log/test_net_log.h" | 22 #include "net/log/test_net_log.h" |
24 #include "net/log/test_net_log_entry.h" | 23 #include "net/log/test_net_log_entry.h" |
25 #include "net/log/test_net_log_util.h" | 24 #include "net/log/test_net_log_util.h" |
26 #include "net/proxy/proxy_server.h" | 25 #include "net/proxy/proxy_server.h" |
27 #include "net/socket/client_socket_pool_manager.h" | 26 #include "net/socket/client_socket_pool_manager.h" |
28 #include "net/socket/next_proto.h" | 27 #include "net/socket/next_proto.h" |
29 #include "net/socket/socket_test_util.h" | 28 #include "net/socket/socket_test_util.h" |
30 #include "net/spdy/spdy_http_utils.h" | 29 #include "net/spdy/spdy_http_utils.h" |
31 #include "net/spdy/spdy_session_pool.h" | 30 #include "net/spdy/spdy_session_pool.h" |
32 #include "net/spdy/spdy_session_test_util.h" | 31 #include "net/spdy/spdy_session_test_util.h" |
33 #include "net/spdy/spdy_stream.h" | 32 #include "net/spdy/spdy_stream.h" |
34 #include "net/spdy/spdy_stream_test_util.h" | 33 #include "net/spdy/spdy_stream_test_util.h" |
35 #include "net/spdy/spdy_test_util_common.h" | 34 #include "net/spdy/spdy_test_util_common.h" |
36 #include "net/spdy/spdy_test_utils.h" | 35 #include "net/spdy/spdy_test_utils.h" |
37 #include "net/test/cert_test_util.h" | 36 #include "net/test/cert_test_util.h" |
| 37 #include "net/test/test_data_directory.h" |
38 #include "testing/platform_test.h" | 38 #include "testing/platform_test.h" |
39 | 39 |
40 namespace net { | 40 namespace net { |
41 | 41 |
42 namespace { | 42 namespace { |
43 | 43 |
44 enum TestCase { | 44 enum TestCase { |
45 // Test using the SPDY/3.1 protocol. | 45 // Test using the SPDY/3.1 protocol. |
46 kTestCaseSPDY31, | 46 kTestCaseSPDY31, |
47 | 47 |
(...skipping 5698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5746 ssl_info.cert = ImportCertFromFile(GetTestCertsDirectory(), | 5746 ssl_info.cert = ImportCertFromFile(GetTestCertsDirectory(), |
5747 "spdy_pooling.pem"); | 5747 "spdy_pooling.pem"); |
5748 ssl_info.is_issued_by_known_root = true; | 5748 ssl_info.is_issued_by_known_root = true; |
5749 ssl_info.public_key_hashes.push_back(test::GetTestHashValue(primary_pin)); | 5749 ssl_info.public_key_hashes.push_back(test::GetTestHashValue(primary_pin)); |
5750 | 5750 |
5751 EXPECT_TRUE(SpdySession::CanPool( | 5751 EXPECT_TRUE(SpdySession::CanPool( |
5752 &tss, ssl_info, "www.example.org", "mail.example.org")); | 5752 &tss, ssl_info, "www.example.org", "mail.example.org")); |
5753 } | 5753 } |
5754 | 5754 |
5755 } // namespace net | 5755 } // namespace net |
OLD | NEW |