Index: net/quic/quic_crypto_server_stream_test.cc |
diff --git a/net/quic/quic_crypto_server_stream_test.cc b/net/quic/quic_crypto_server_stream_test.cc |
index 6f53c5fba24b5560922b932fd0cd3b3f5208ac9f..8e8da000acce3073ffcf6c5ca213fdba6cf209aa 100644 |
--- a/net/quic/quic_crypto_server_stream_test.cc |
+++ b/net/quic/quic_crypto_server_stream_test.cc |
@@ -255,6 +255,17 @@ TEST_P(QuicCryptoServerStreamTest, WithoutCertificates) { |
TEST_P(QuicCryptoServerStreamTest, ChannelID) { |
client_options_.channel_id_enabled = true; |
+ client_options_.channel_id_source_async = false; |
+ // CompleteCryptoHandshake verifies |
+ // stream_.crypto_negotiated_params().channel_id is correct. |
+ EXPECT_EQ(2, CompleteCryptoHandshake()); |
+ EXPECT_TRUE(stream_.encryption_established()); |
+ EXPECT_TRUE(stream_.handshake_confirmed()); |
+} |
+ |
+TEST_P(QuicCryptoServerStreamTest, ChannelIDAsync) { |
+ client_options_.channel_id_enabled = true; |
+ client_options_.channel_id_source_async = true; |
// CompleteCryptoHandshake verifies |
// stream_.crypto_negotiated_params().channel_id is correct. |
EXPECT_EQ(2, CompleteCryptoHandshake()); |