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

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

Issue 763833003: Remove using namespace in net/quic/quic_stream_sequencer.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve ramant's comment, using std:: for .cc Created 6 years 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/quic_crypto_server_stream.h" 5 #include "net/quic/quic_crypto_server_stream.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" 12 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h"
12 #include "net/quic/crypto/crypto_framer.h" 13 #include "net/quic/crypto/crypto_framer.h"
13 #include "net/quic/crypto/crypto_handshake.h" 14 #include "net/quic/crypto/crypto_handshake.h"
14 #include "net/quic/crypto/crypto_protocol.h" 15 #include "net/quic/crypto/crypto_protocol.h"
15 #include "net/quic/crypto/crypto_utils.h" 16 #include "net/quic/crypto/crypto_utils.h"
16 #include "net/quic/crypto/quic_crypto_server_config.h" 17 #include "net/quic/crypto/quic_crypto_server_config.h"
17 #include "net/quic/crypto/quic_decrypter.h" 18 #include "net/quic/crypto/quic_decrypter.h"
18 #include "net/quic/crypto/quic_encrypter.h" 19 #include "net/quic/crypto/quic_encrypter.h"
19 #include "net/quic/crypto/quic_random.h" 20 #include "net/quic/crypto/quic_random.h"
20 #include "net/quic/quic_crypto_client_stream.h" 21 #include "net/quic/quic_crypto_client_stream.h"
21 #include "net/quic/quic_protocol.h" 22 #include "net/quic/quic_protocol.h"
22 #include "net/quic/quic_session.h" 23 #include "net/quic/quic_session.h"
23 #include "net/quic/test_tools/crypto_test_utils.h" 24 #include "net/quic/test_tools/crypto_test_utils.h"
24 #include "net/quic/test_tools/delayed_verify_strike_register_client.h" 25 #include "net/quic/test_tools/delayed_verify_strike_register_client.h"
25 #include "net/quic/test_tools/quic_test_utils.h" 26 #include "net/quic/test_tools/quic_test_utils.h"
26 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
27 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
28 29
29 namespace net { 30 namespace net {
30 class QuicConnection; 31 class QuicConnection;
31 class ReliableQuicStream; 32 class ReliableQuicStream;
32 } // namespace net 33 } // namespace net
33 34
34 using std::pair; 35 using std::pair;
36 using std::string;
35 using testing::_; 37 using testing::_;
36 38
37 namespace net { 39 namespace net {
38 namespace test { 40 namespace test {
39 41
40 class QuicCryptoServerConfigPeer { 42 class QuicCryptoServerConfigPeer {
41 public: 43 public:
42 static string GetPrimaryOrbit(const QuicCryptoServerConfig& config) { 44 static string GetPrimaryOrbit(const QuicCryptoServerConfig& config) {
43 base::AutoLock lock(config.configs_lock_); 45 base::AutoLock lock(config.configs_lock_);
44 CHECK(config.primary_config_.get() != nullptr); 46 CHECK(config.primary_config_.get() != nullptr);
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 273
272 TEST_P(QuicCryptoServerStreamTest, OnlySendSCUPAfterHandshakeComplete) { 274 TEST_P(QuicCryptoServerStreamTest, OnlySendSCUPAfterHandshakeComplete) {
273 // An attempt to send a SCUP before completing handshake should fail. 275 // An attempt to send a SCUP before completing handshake should fail.
274 stream_.SendServerConfigUpdate(nullptr); 276 stream_.SendServerConfigUpdate(nullptr);
275 EXPECT_EQ(0, stream_.num_server_config_update_messages_sent()); 277 EXPECT_EQ(0, stream_.num_server_config_update_messages_sent());
276 } 278 }
277 279
278 } // namespace 280 } // namespace
279 } // namespace test 281 } // namespace test
280 } // namespace net 282 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698