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

Unified Diff: net/http/http_stream_factory_impl_job_controller_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
Index: net/http/http_stream_factory_impl_job_controller_unittest.cc
diff --git a/net/http/http_stream_factory_impl_job_controller_unittest.cc b/net/http/http_stream_factory_impl_job_controller_unittest.cc
index 6024ac0c087968780dcd4155ba1bafe70883ed0e..7509abf5961d250b6da81fae5715486a7aeca3bb 100644
--- a/net/http/http_stream_factory_impl_job_controller_unittest.cc
+++ b/net/http/http_stream_factory_impl_job_controller_unittest.cc
@@ -255,12 +255,12 @@ class HttpStreamFactoryImplJobControllerTest : public ::testing::Test {
void VerifyBrokenAlternateProtocolMapping(const HttpRequestInfo& request_info,
bool should_mark_broken) {
const url::SchemeHostPort server(request_info.url);
- const AlternativeServiceVector alternative_service_vector =
- session_->http_server_properties()->GetAlternativeServices(server);
- EXPECT_EQ(1u, alternative_service_vector.size());
+ const AlternativeServiceInfoVector alternative_service_info_vector =
+ session_->http_server_properties()->GetAlternativeServiceInfos(server);
+ EXPECT_EQ(1u, alternative_service_info_vector.size());
EXPECT_EQ(should_mark_broken,
session_->http_server_properties()->IsAlternativeServiceBroken(
- alternative_service_vector[0]));
+ alternative_service_info_vector[0].alternative_service));
}
TestJobFactory job_factory_;
« no previous file with comments | « net/http/http_stream_factory_impl_job_controller.cc ('k') | net/quic/chromium/quic_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698