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

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

Issue 2229393003: net: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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/core/quic_connection.cc ('k') | net/quic/core/quic_end_to_end_unittest.cc » ('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/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
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection.cc ('k') | net/quic/core/quic_end_to_end_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698