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

Unified Diff: net/quic/quic_network_transaction_unittest.cc

Issue 997953003: Add IsAlternativeServiceBroken(), remove is_broken. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ignore_result. Created 5 years, 9 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 | « net/http/http_stream_factory_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_network_transaction_unittest.cc
diff --git a/net/quic/quic_network_transaction_unittest.cc b/net/quic/quic_network_transaction_unittest.cc
index 0410c5973d7eb5c949470d0089ef25703f33e818..4d027e21ee1a614b6bb1e76f794255ab337052be 100644
--- a/net/quic/quic_network_transaction_unittest.cc
+++ b/net/quic/quic_network_transaction_unittest.cc
@@ -299,11 +299,14 @@ class QuicNetworkTransactionTest
}
void ExpectBrokenAlternateProtocolMapping() {
+ const HostPortPair origin = HostPortPair::FromURL(request_.url);
const AlternateProtocolInfo alternate =
- session_->http_server_properties()->GetAlternateProtocol(
- HostPortPair::FromURL(request_.url));
+ session_->http_server_properties()->GetAlternateProtocol(origin);
EXPECT_NE(UNINITIALIZED_ALTERNATE_PROTOCOL, alternate.protocol);
- EXPECT_TRUE(alternate.is_broken);
+ const AlternativeService alternative_service(alternate.protocol,
+ origin.host(), alternate.port);
+ EXPECT_TRUE(session_->http_server_properties()->IsAlternativeServiceBroken(
+ alternative_service));
}
void ExpectQuicAlternateProtocolMapping() {
« no previous file with comments | « net/http/http_stream_factory_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698