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

Unified Diff: net/quic/core/crypto/quic_crypto_server_config_test.cc

Issue 2907743003: Change CryptoHandshakeMessage::GetTaglist to tag a QuicTagVector* (Closed)
Patch Set: 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/quic/core/crypto/quic_crypto_server_config_test.cc
diff --git a/net/quic/core/crypto/quic_crypto_server_config_test.cc b/net/quic/core/crypto/quic_crypto_server_config_test.cc
index 6c1407661cdf62ebc953cb1247c4fe02729139e4..381c82b5cb8b4225fbd41a944b5e3de605be140b 100644
--- a/net/quic/core/crypto/quic_crypto_server_config_test.cc
+++ b/net/quic/core/crypto/quic_crypto_server_config_test.cc
@@ -39,10 +39,8 @@ TEST_F(QuicCryptoServerConfigTest, ServerConfig) {
// The default configuration should have AES-GCM and at least one ChaCha20
// cipher.
- const QuicTag* aead_tags;
- size_t aead_len;
- ASSERT_EQ(QUIC_NO_ERROR, message->GetTaglist(kAEAD, &aead_tags, &aead_len));
- std::vector<QuicTag> aead(aead_tags, aead_tags + aead_len);
+ QuicTagVector aead;
+ ASSERT_EQ(QUIC_NO_ERROR, message->GetTaglist(kAEAD, &aead));
EXPECT_THAT(aead, ::testing::Contains(kAESG));
EXPECT_LE(1u, aead.size());
}

Powered by Google App Engine
This is Rietveld 408576698