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

Unified Diff: net/quic/core/quic_connection_test.cc

Issue 2236463004: Rename QuicSupportedVersions to QuicAllSupportedVersions. Add QuicCurrentSupportedVersions which re… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129437595
Patch Set: update more files outside net/ Created 4 years, 4 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/quic/core/quic_connection_test.cc
diff --git a/net/quic/core/quic_connection_test.cc b/net/quic/core/quic_connection_test.cc
index 549d2074afeadec8a9664b78bf6b989ad59dba23..e63abd802df7a7ec6bc84e86539d00de062b0fb9 100644
--- a/net/quic/core/quic_connection_test.cc
+++ b/net/quic/core/quic_connection_test.cc
@@ -662,7 +662,7 @@ struct TestParams {
// Constructs various test permutations.
vector<TestParams> GetTestParams() {
vector<TestParams> params;
- QuicVersionVector all_supported_versions = QuicSupportedVersions();
+ QuicVersionVector all_supported_versions = AllSupportedVersions();
for (size_t i = 0; i < all_supported_versions.size(); ++i) {
for (AckResponse ack_response :
{AckResponse::kDefer, AckResponse::kImmediate}) {
@@ -4274,7 +4274,7 @@ TEST_P(QuicConnectionTest, EntropyCalculationForTruncatedAck) {
}
TEST_P(QuicConnectionTest, ServerSendsVersionNegotiationPacket) {
- connection_.SetSupportedVersions(QuicSupportedVersions());
+ connection_.SetSupportedVersions(AllSupportedVersions());
set_perspective(Perspective::IS_SERVER);
peer_framer_.set_version_for_tests(QUIC_VERSION_UNSUPPORTED);
@@ -4310,7 +4310,7 @@ TEST_P(QuicConnectionTest, ServerSendsVersionNegotiationPacket) {
}
TEST_P(QuicConnectionTest, ServerSendsVersionNegotiationPacketSocketBlocked) {
- connection_.SetSupportedVersions(QuicSupportedVersions());
+ connection_.SetSupportedVersions(AllSupportedVersions());
set_perspective(Perspective::IS_SERVER);
peer_framer_.set_version_for_tests(QUIC_VERSION_UNSUPPORTED);
@@ -4352,7 +4352,7 @@ TEST_P(QuicConnectionTest, ServerSendsVersionNegotiationPacketSocketBlocked) {
TEST_P(QuicConnectionTest,
ServerSendsVersionNegotiationPacketSocketBlockedDataBuffered) {
- connection_.SetSupportedVersions(QuicSupportedVersions());
+ connection_.SetSupportedVersions(AllSupportedVersions());
set_perspective(Perspective::IS_SERVER);
peer_framer_.set_version_for_tests(QUIC_VERSION_UNSUPPORTED);
@@ -4387,7 +4387,7 @@ TEST_P(QuicConnectionTest, ClientHandlesVersionNegotiation) {
// Send a version negotiation packet.
std::unique_ptr<QuicEncryptedPacket> encrypted(
framer_.BuildVersionNegotiationPacket(connection_id_,
- QuicSupportedVersions()));
+ AllSupportedVersions()));
std::unique_ptr<QuicReceivedPacket> received(
ConstructReceivedPacket(*encrypted, QuicTime::Zero()));
connection_.ProcessUdpPacket(kSelfAddress, kPeerAddress, *received);
@@ -4423,7 +4423,7 @@ TEST_P(QuicConnectionTest, BadVersionNegotiation) {
ConnectionCloseSource::FROM_SELF));
std::unique_ptr<QuicEncryptedPacket> encrypted(
framer_.BuildVersionNegotiationPacket(connection_id_,
- QuicSupportedVersions()));
+ AllSupportedVersions()));
std::unique_ptr<QuicReceivedPacket> received(
ConstructReceivedPacket(*encrypted, QuicTime::Zero()));
connection_.ProcessUdpPacket(kSelfAddress, kPeerAddress, *received);
@@ -4506,7 +4506,7 @@ TEST_P(QuicConnectionTest, ProcessFramesIfPacketClosedConnection) {
}
TEST_P(QuicConnectionTest, SelectMutualVersion) {
- connection_.SetSupportedVersions(QuicSupportedVersions());
+ connection_.SetSupportedVersions(AllSupportedVersions());
// Set the connection to speak the lowest quic version.
connection_.set_version(QuicVersionMin());
EXPECT_EQ(QuicVersionMin(), connection_.version());
« no previous file with comments | « net/quic/core/crypto/quic_crypto_client_config_test.cc ('k') | net/quic/core/quic_crypto_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698