OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/bidirectional_stream.h" | 5 #include "net/http/bidirectional_stream.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "net/http/bidirectional_stream_request_info.h" | 22 #include "net/http/bidirectional_stream_request_info.h" |
23 #include "net/http/http_network_session.h" | 23 #include "net/http/http_network_session.h" |
24 #include "net/http/http_response_headers.h" | 24 #include "net/http/http_response_headers.h" |
25 #include "net/http/http_server_properties.h" | 25 #include "net/http/http_server_properties.h" |
26 #include "net/log/net_log_capture_mode.h" | 26 #include "net/log/net_log_capture_mode.h" |
27 #include "net/log/net_log_event_type.h" | 27 #include "net/log/net_log_event_type.h" |
28 #include "net/log/net_log_source_type.h" | 28 #include "net/log/net_log_source_type.h" |
29 #include "net/log/test_net_log.h" | 29 #include "net/log/test_net_log.h" |
30 #include "net/log/test_net_log_util.h" | 30 #include "net/log/test_net_log_util.h" |
31 #include "net/socket/socket_test_util.h" | 31 #include "net/socket/socket_test_util.h" |
32 #include "net/spdy/spdy_session.h" | 32 #include "net/spdy/chromium/spdy_session.h" |
33 #include "net/spdy/spdy_test_util_common.h" | 33 #include "net/spdy/chromium/spdy_test_util_common.h" |
34 #include "net/test/cert_test_util.h" | 34 #include "net/test/cert_test_util.h" |
35 #include "net/test/gtest_util.h" | 35 #include "net/test/gtest_util.h" |
36 #include "net/test/test_data_directory.h" | 36 #include "net/test/test_data_directory.h" |
37 #include "net/url_request/url_request_test_util.h" | 37 #include "net/url_request/url_request_test_util.h" |
38 #include "testing/gmock/include/gmock/gmock.h" | 38 #include "testing/gmock/include/gmock/gmock.h" |
39 #include "testing/gtest/include/gtest/gtest.h" | 39 #include "testing/gtest/include/gtest/gtest.h" |
40 | 40 |
41 using net::test::IsError; | 41 using net::test::IsError; |
42 using net::test::IsOk; | 42 using net::test::IsOk; |
43 | 43 |
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1657 AlternativeServiceVector alternative_service_vector = | 1657 AlternativeServiceVector alternative_service_vector = |
1658 http_session_->http_server_properties()->GetAlternativeServices( | 1658 http_session_->http_server_properties()->GetAlternativeServices( |
1659 url::SchemeHostPort(default_url_)); | 1659 url::SchemeHostPort(default_url_)); |
1660 ASSERT_EQ(1u, alternative_service_vector.size()); | 1660 ASSERT_EQ(1u, alternative_service_vector.size()); |
1661 EXPECT_EQ(kProtoQUIC, alternative_service_vector[0].protocol); | 1661 EXPECT_EQ(kProtoQUIC, alternative_service_vector[0].protocol); |
1662 EXPECT_EQ("www.example.org", alternative_service_vector[0].host); | 1662 EXPECT_EQ("www.example.org", alternative_service_vector[0].host); |
1663 EXPECT_EQ(443, alternative_service_vector[0].port); | 1663 EXPECT_EQ(443, alternative_service_vector[0].port); |
1664 } | 1664 } |
1665 | 1665 |
1666 } // namespace net | 1666 } // namespace net |
OLD | NEW |