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

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

Issue 2158263003: Landing Recent QUIC changes until 7/18/2016 11:21:53 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Running flag flipping script and rebase to master Created 4 years, 5 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_flags.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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 496
497 TEST_P(QuicCryptoServerStreamTest, OnlySendSCUPAfterHandshakeComplete) { 497 TEST_P(QuicCryptoServerStreamTest, OnlySendSCUPAfterHandshakeComplete) {
498 // An attempt to send a SCUP before completing handshake should fail. 498 // An attempt to send a SCUP before completing handshake should fail.
499 Initialize(); 499 Initialize();
500 500
501 server_stream()->SendServerConfigUpdate(nullptr); 501 server_stream()->SendServerConfigUpdate(nullptr);
502 EXPECT_EQ(0, server_stream()->NumServerConfigUpdateMessagesSent()); 502 EXPECT_EQ(0, server_stream()->NumServerConfigUpdateMessagesSent());
503 } 503 }
504 504
505 TEST_P(QuicCryptoServerStreamTest, SendSCUPAfterHandshakeComplete) { 505 TEST_P(QuicCryptoServerStreamTest, SendSCUPAfterHandshakeComplete) {
506 FLAGS_quic_use_hash_in_scup = true;
507 Initialize(); 506 Initialize();
508 507
509 InitializeFakeClient(/* supports_stateless_rejects= */ false); 508 InitializeFakeClient(/* supports_stateless_rejects= */ false);
510 509
511 // Do a first handshake in order to prime the client config with the server's 510 // Do a first handshake in order to prime the client config with the server's
512 // information. 511 // information.
513 AdvanceHandshakeWithFakeClient(); 512 AdvanceHandshakeWithFakeClient();
514 513
515 // Now do another handshake, with the blocking SHLO connection option. 514 // Now do another handshake, with the blocking SHLO connection option.
516 InitializeServer(); 515 InitializeServer();
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 QUIC_NO_ERROR, "", ConnectionCloseBehavior::SILENT_CLOSE); 603 QUIC_NO_ERROR, "", ConnectionCloseBehavior::SILENT_CLOSE);
605 604
606 // The outstanding nonce verification RPC now completes. 605 // The outstanding nonce verification RPC now completes.
607 strike_register_client_->RunPendingVerifications(); 606 strike_register_client_->RunPendingVerifications();
608 } 607 }
609 608
610 } // namespace 609 } // namespace
611 610
612 } // namespace test 611 } // namespace test
613 } // namespace net 612 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_server_stream.cc ('k') | net/quic/quic_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698