| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |