Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1213)

Unified Diff: net/http/bidirectional_stream_unittest.cc

Issue 2886273002: Change GetAlternativeServies to return alternative service infos. (Closed)
Patch Set: address comments in ps #3 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/bidirectional_stream_unittest.cc
diff --git a/net/http/bidirectional_stream_unittest.cc b/net/http/bidirectional_stream_unittest.cc
index 816bc990cf290bc0441852f7afbba71ea2ec51b4..2f1bde1fa6535baf8fc982b393c4af656bc3e8a5 100644
--- a/net/http/bidirectional_stream_unittest.cc
+++ b/net/http/bidirectional_stream_unittest.cc
@@ -1654,13 +1654,13 @@ TEST_F(BidirectionalStreamTest, TestHonorAlternativeServiceHeader) {
EXPECT_EQ(CountReadBytes(reads, arraysize(reads)),
delegate->GetTotalReceivedBytes());
- AlternativeServiceVector alternative_service_vector =
- http_session_->http_server_properties()->GetAlternativeServices(
+ AlternativeServiceInfoVector alternative_service_info_vector =
+ http_session_->http_server_properties()->GetAlternativeServiceInfos(
url::SchemeHostPort(default_url_));
- ASSERT_EQ(1u, alternative_service_vector.size());
- EXPECT_EQ(kProtoQUIC, alternative_service_vector[0].protocol);
- EXPECT_EQ("www.example.org", alternative_service_vector[0].host);
- EXPECT_EQ(443, alternative_service_vector[0].port);
+ ASSERT_EQ(1u, alternative_service_info_vector.size());
+ AlternativeService alternative_service(kProtoQUIC, "www.example.org", 443);
+ EXPECT_EQ(alternative_service,
+ alternative_service_info_vector[0].alternative_service);
}
} // namespace net
« no previous file with comments | « no previous file | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698