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 <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 EXPECT_EQ(kUploadData, delegate->data_received()); | 1678 EXPECT_EQ(kUploadData, delegate->data_received()); |
1679 EXPECT_EQ(CountWriteBytes(writes, arraysize(writes)), | 1679 EXPECT_EQ(CountWriteBytes(writes, arraysize(writes)), |
1680 delegate->GetTotalSentBytes()); | 1680 delegate->GetTotalSentBytes()); |
1681 EXPECT_EQ(CountReadBytes(reads, arraysize(reads)), | 1681 EXPECT_EQ(CountReadBytes(reads, arraysize(reads)), |
1682 delegate->GetTotalReceivedBytes()); | 1682 delegate->GetTotalReceivedBytes()); |
1683 | 1683 |
1684 AlternativeServiceVector alternative_service_vector = | 1684 AlternativeServiceVector alternative_service_vector = |
1685 http_session_->http_server_properties()->GetAlternativeServices( | 1685 http_session_->http_server_properties()->GetAlternativeServices( |
1686 url::SchemeHostPort(default_url_)); | 1686 url::SchemeHostPort(default_url_)); |
1687 ASSERT_EQ(1u, alternative_service_vector.size()); | 1687 ASSERT_EQ(1u, alternative_service_vector.size()); |
1688 EXPECT_EQ(AlternateProtocolFromNextProto(kProtoQUIC1SPDY3), | 1688 EXPECT_EQ(AlternateProtocolFromNextProto(kProtoQUIC), |
1689 alternative_service_vector[0].protocol); | 1689 alternative_service_vector[0].protocol); |
1690 EXPECT_EQ("www.example.org", alternative_service_vector[0].host); | 1690 EXPECT_EQ("www.example.org", alternative_service_vector[0].host); |
1691 EXPECT_EQ(443, alternative_service_vector[0].port); | 1691 EXPECT_EQ(443, alternative_service_vector[0].port); |
1692 } | 1692 } |
1693 | 1693 |
1694 } // namespace net | 1694 } // namespace net |
OLD | NEW |