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

Side by Side Diff: net/quic/chromium/quic_stream_factory_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
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/chromium/quic_stream_factory.h" 5 #include "net/quic/chromium/quic_stream_factory.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 EXPECT_TRUE(socket_data.AllReadDataConsumed()); 1203 EXPECT_TRUE(socket_data.AllReadDataConsumed());
1204 EXPECT_TRUE(socket_data.AllWriteDataConsumed()); 1204 EXPECT_TRUE(socket_data.AllWriteDataConsumed());
1205 1205
1206 // Force close of the connection to suppress the generation of RST 1206 // Force close of the connection to suppress the generation of RST
1207 // packets when streams are torn down, which wouldn't be relevant to 1207 // packets when streams are torn down, which wouldn't be relevant to
1208 // this test anyway. 1208 // this test anyway.
1209 QuicChromiumClientSession* session = GetActiveSession(host_port_pair_); 1209 QuicChromiumClientSession* session = GetActiveSession(host_port_pair_);
1210 session->connection()->CloseConnection(QUIC_PUBLIC_RESET, "test", 1210 session->connection()->CloseConnection(QUIC_PUBLIC_RESET, "test",
1211 ConnectionCloseBehavior::SILENT_CLOSE); 1211 ConnectionCloseBehavior::SILENT_CLOSE);
1212 1212
1213 STLDeleteElements(&streams); 1213 base::STLDeleteElements(&streams);
1214 } 1214 }
1215 1215
1216 TEST_P(QuicStreamFactoryTest, ResolutionErrorInCreate) { 1216 TEST_P(QuicStreamFactoryTest, ResolutionErrorInCreate) {
1217 Initialize(); 1217 Initialize();
1218 SequencedSocketData socket_data(nullptr, 0, nullptr, 0); 1218 SequencedSocketData socket_data(nullptr, 0, nullptr, 0);
1219 socket_factory_.AddSocketDataProvider(&socket_data); 1219 socket_factory_.AddSocketDataProvider(&socket_data);
1220 1220
1221 host_resolver_.rules()->AddSimulatedFailure(kDefaultServerHostName); 1221 host_resolver_.rules()->AddSimulatedFailure(kDefaultServerHostName);
1222 1222
1223 QuicStreamRequest request(factory_.get()); 1223 QuicStreamRequest request(factory_.get());
(...skipping 3893 matching lines...) Expand 10 before | Expand all | Expand 10 after
5117 // Clear all cached states. 5117 // Clear all cached states.
5118 factory_->ClearCachedStatesInCryptoConfig( 5118 factory_->ClearCachedStatesInCryptoConfig(
5119 base::Callback<bool(const GURL&)>()); 5119 base::Callback<bool(const GURL&)>());
5120 EXPECT_TRUE(test_cases[0].state->certs().empty()); 5120 EXPECT_TRUE(test_cases[0].state->certs().empty());
5121 EXPECT_TRUE(test_cases[1].state->certs().empty()); 5121 EXPECT_TRUE(test_cases[1].state->certs().empty());
5122 EXPECT_TRUE(test_cases[2].state->certs().empty()); 5122 EXPECT_TRUE(test_cases[2].state->certs().empty());
5123 } 5123 }
5124 5124
5125 } // namespace test 5125 } // namespace test
5126 } // namespace net 5126 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | net/quic/core/crypto/crypto_server_config_protobuf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698