| 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/core/quic_crypto_server_stream.h" | 5 #include "net/quic/core/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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 strike_register_client_->StartDelayingVerification(); | 84 strike_register_client_->StartDelayingVerification(); |
| 85 server_crypto_config_.SetStrikeRegisterClient(strike_register_client_); | 85 server_crypto_config_.SetStrikeRegisterClient(strike_register_client_); |
| 86 } | 86 } |
| 87 } | 87 } |
| 88 | 88 |
| 89 ~QuicCryptoServerStreamTest() override { | 89 ~QuicCryptoServerStreamTest() override { |
| 90 // Ensure that anything that might reference |helpers_| is destroyed before | 90 // Ensure that anything that might reference |helpers_| is destroyed before |
| 91 // |helpers_| is destroyed. | 91 // |helpers_| is destroyed. |
| 92 server_session_.reset(); | 92 server_session_.reset(); |
| 93 client_session_.reset(); | 93 client_session_.reset(); |
| 94 STLDeleteElements(&helpers_); | 94 base::STLDeleteElements(&helpers_); |
| 95 STLDeleteElements(&alarm_factories_); | 95 base::STLDeleteElements(&alarm_factories_); |
| 96 } | 96 } |
| 97 | 97 |
| 98 // Initializes the crypto server stream state for testing. May be | 98 // Initializes the crypto server stream state for testing. May be |
| 99 // called multiple times. | 99 // called multiple times. |
| 100 void InitializeServer() { | 100 void InitializeServer() { |
| 101 TestQuicSpdyServerSession* server_session = nullptr; | 101 TestQuicSpdyServerSession* server_session = nullptr; |
| 102 helpers_.push_back(new MockQuicConnectionHelper); | 102 helpers_.push_back(new MockQuicConnectionHelper); |
| 103 alarm_factories_.push_back(new MockAlarmFactory); | 103 alarm_factories_.push_back(new MockAlarmFactory); |
| 104 CreateServerSessionForTest( | 104 CreateServerSessionForTest( |
| 105 server_id_, QuicTime::Delta::FromSeconds(100000), supported_versions_, | 105 server_id_, QuicTime::Delta::FromSeconds(100000), supported_versions_, |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 QUIC_NO_ERROR, "", ConnectionCloseBehavior::SILENT_CLOSE); | 573 QUIC_NO_ERROR, "", ConnectionCloseBehavior::SILENT_CLOSE); |
| 574 | 574 |
| 575 // The outstanding nonce verification RPC now completes. | 575 // The outstanding nonce verification RPC now completes. |
| 576 strike_register_client_->RunPendingVerifications(); | 576 strike_register_client_->RunPendingVerifications(); |
| 577 } | 577 } |
| 578 | 578 |
| 579 } // namespace | 579 } // namespace |
| 580 | 580 |
| 581 } // namespace test | 581 } // namespace test |
| 582 } // namespace net | 582 } // namespace net |
| OLD | NEW |