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 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1651 delegate->GetTotalSentBytes()); | 1651 delegate->GetTotalSentBytes()); |
1652 EXPECT_EQ(CountReadBytes(reads, arraysize(reads)), | 1652 EXPECT_EQ(CountReadBytes(reads, arraysize(reads)), |
1653 delegate->GetTotalReceivedBytes()); | 1653 delegate->GetTotalReceivedBytes()); |
1654 | 1654 |
1655 AlternativeServiceInfoVector alternative_service_info_vector = | 1655 AlternativeServiceInfoVector alternative_service_info_vector = |
1656 http_session_->http_server_properties()->GetAlternativeServiceInfos( | 1656 http_session_->http_server_properties()->GetAlternativeServiceInfos( |
1657 url::SchemeHostPort(default_url_)); | 1657 url::SchemeHostPort(default_url_)); |
1658 ASSERT_EQ(1u, alternative_service_info_vector.size()); | 1658 ASSERT_EQ(1u, alternative_service_info_vector.size()); |
1659 AlternativeService alternative_service(kProtoQUIC, "www.example.org", 443); | 1659 AlternativeService alternative_service(kProtoQUIC, "www.example.org", 443); |
1660 EXPECT_EQ(alternative_service, | 1660 EXPECT_EQ(alternative_service, |
1661 alternative_service_info_vector[0].alternative_service); | 1661 alternative_service_info_vector[0].alternative_service()); |
1662 } | 1662 } |
1663 | 1663 |
1664 } // namespace net | 1664 } // namespace net |
OLD | NEW |