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

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

Issue 217053010: Revert of Rename PrivateMode enum values: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_session_key.cc ('k') | net/quic/quic_stream_factory_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_session_key.h" 5 #include "net/quic/quic_session_key.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 using std::string; 9 using std::string;
10 10
11 namespace net { 11 namespace net {
12 12
13 namespace { 13 namespace {
14 14
15 TEST(QuicSessionKeyTest, ToString) { 15 TEST(QuicSessionKeyTest, ToString) {
16 HostPortPair google_host_port_pair("google.com", 10); 16 HostPortPair google_host_port_pair("google.com", 10);
17 17
18 QuicSessionKey google_http_key(google_host_port_pair, false, 18 QuicSessionKey google_http_key(google_host_port_pair, false,
19 PRIVACY_MODE_DISABLED); 19 kPrivacyModeDisabled);
20 string google_http_key_str = google_http_key.ToString(); 20 string google_http_key_str = google_http_key.ToString();
21 EXPECT_EQ("http://google.com:10", google_http_key_str); 21 EXPECT_EQ("http://google.com:10", google_http_key_str);
22 22
23 QuicSessionKey google_https_key(google_host_port_pair, true, 23 QuicSessionKey google_https_key(google_host_port_pair, true,
24 PRIVACY_MODE_DISABLED); 24 kPrivacyModeDisabled);
25 string google_https_key_str = google_https_key.ToString(); 25 string google_https_key_str = google_https_key.ToString();
26 EXPECT_EQ("https://google.com:10", google_https_key_str); 26 EXPECT_EQ("https://google.com:10", google_https_key_str);
27 27
28 QuicSessionKey private_http_key(google_host_port_pair, false, 28 QuicSessionKey private_http_key(google_host_port_pair, false,
29 PRIVACY_MODE_ENABLED); 29 kPrivacyModeEnabled);
30 string private_http_key_str = private_http_key.ToString(); 30 string private_http_key_str = private_http_key.ToString();
31 EXPECT_EQ("http://google.com:10/private", private_http_key_str); 31 EXPECT_EQ("http://google.com:10/private", private_http_key_str);
32 32
33 QuicSessionKey private_https_key(google_host_port_pair, true, 33 QuicSessionKey private_https_key(google_host_port_pair, true,
34 PRIVACY_MODE_ENABLED); 34 kPrivacyModeEnabled);
35 string private_https_key_str = private_https_key.ToString(); 35 string private_https_key_str = private_https_key.ToString();
36 EXPECT_EQ("https://google.com:10/private", private_https_key_str); 36 EXPECT_EQ("https://google.com:10/private", private_https_key_str);
37 } 37 }
38 38
39 } // namespace 39 } // namespace
40 40
41 } // namespace net 41 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_session_key.cc ('k') | net/quic/quic_stream_factory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698