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

Side by Side Diff: net/quic/quic_crypto_server_stream_test.cc

Issue 515303003: Landing Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix for 409191 Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_crypto_server_stream.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_crypto_server_stream.h" 5 #include "net/quic/quic_crypto_server_stream.h"
6 6
7 #include <map> 7 #include <map>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 TEST_P(QuicCryptoServerStreamTest, ChannelIDAsync) { 268 TEST_P(QuicCryptoServerStreamTest, ChannelIDAsync) {
269 client_options_.channel_id_enabled = true; 269 client_options_.channel_id_enabled = true;
270 client_options_.channel_id_source_async = true; 270 client_options_.channel_id_source_async = true;
271 // CompleteCryptoHandshake verifies 271 // CompleteCryptoHandshake verifies
272 // stream_.crypto_negotiated_params().channel_id is correct. 272 // stream_.crypto_negotiated_params().channel_id is correct.
273 EXPECT_EQ(2, CompleteCryptoHandshake()); 273 EXPECT_EQ(2, CompleteCryptoHandshake());
274 EXPECT_TRUE(stream_.encryption_established()); 274 EXPECT_TRUE(stream_.encryption_established());
275 EXPECT_TRUE(stream_.handshake_confirmed()); 275 EXPECT_TRUE(stream_.handshake_confirmed());
276 } 276 }
277 277
278 TEST_P(QuicCryptoServerStreamTest, OnlySendSCUPAfterHandshakeComplete) {
279 // An attempt to send a SCUP before completing handshake should fail.
280 stream_.SendServerConfigUpdate(NULL);
281 EXPECT_EQ(0, stream_.num_server_config_update_messages_sent());
282 }
283
278 } // namespace 284 } // namespace
279 } // namespace test 285 } // namespace test
280 } // namespace net 286 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_server_stream.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698