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

Side by Side Diff: net/quic/crypto/crypto_utils_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: fix missing part device_cloud_policy_manager_chromeos_unittest.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
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_encrypter_test.cc ('k') | net/quic/quic_connection_test.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/crypto/crypto_utils.h" 5 #include "net/quic/crypto/crypto_utils.h"
6 6
7 #include "net/quic/test_tools/quic_test_utils.h" 7 #include "net/quic/test_tools/quic_test_utils.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 using std::string;
11
10 namespace net { 12 namespace net {
11 namespace test { 13 namespace test {
12 namespace { 14 namespace {
13 15
14 TEST(CryptoUtilsTest, IsValidSNI) { 16 TEST(CryptoUtilsTest, IsValidSNI) {
15 // IP as SNI. 17 // IP as SNI.
16 EXPECT_FALSE(CryptoUtils::IsValidSNI("192.168.0.1")); 18 EXPECT_FALSE(CryptoUtils::IsValidSNI("192.168.0.1"));
17 // SNI without any dot. 19 // SNI without any dot.
18 EXPECT_FALSE(CryptoUtils::IsValidSNI("somedomain")); 20 EXPECT_FALSE(CryptoUtils::IsValidSNI("somedomain"));
19 // Invalid RFC2396 hostname 21 // Invalid RFC2396 hostname
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 result.length(), 124 result.length(),
123 expected.data(), 125 expected.data(),
124 expected.length()); 126 expected.length());
125 } 127 }
126 } 128 }
127 } 129 }
128 130
129 } // namespace 131 } // namespace
130 } // namespace test 132 } // namespace test
131 } // namespace net 133 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_encrypter_test.cc ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698