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

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

Issue 1138443003: Land Recent QUIC Changes until 05/13/2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile error fixes Created 5 years, 7 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/quic_session.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('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/quic_utils.h" 5 #include "net/quic/quic_utils.h"
6 6
7 #include "net/quic/crypto/crypto_protocol.h" 7 #include "net/quic/crypto/crypto_protocol.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 using base::StringPiece; 10 using base::StringPiece;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // A tag that contains a non-printing character will be printed as a decimal 81 // A tag that contains a non-printing character will be printed as a decimal
82 // number. 82 // number.
83 EXPECT_EQ("525092931", 83 EXPECT_EQ("525092931",
84 QuicUtils::TagToString(MakeQuicTag('C', 'H', 'L', '\x1f'))); 84 QuicUtils::TagToString(MakeQuicTag('C', 'H', 'L', '\x1f')));
85 } 85 }
86 86
87 TEST(QuicUtilsTest, ParseQuicConnectionOptions) { 87 TEST(QuicUtilsTest, ParseQuicConnectionOptions) {
88 QuicTagVector empty_options = QuicUtils::ParseQuicConnectionOptions(""); 88 QuicTagVector empty_options = QuicUtils::ParseQuicConnectionOptions("");
89 EXPECT_EQ(0ul, empty_options.size()); 89 EXPECT_EQ(0ul, empty_options.size());
90 90
91 QuicTagVector parsed_options = QuicUtils::ParseQuicConnectionOptions( 91 QuicTagVector parsed_options =
92 "PACE,TIMER,TBBR,REJ"); 92 QuicUtils::ParseQuicConnectionOptions("TIMER,TBBR,REJ");
93 QuicTagVector expected_options; 93 QuicTagVector expected_options;
94 expected_options.push_back(kPACE);
95 expected_options.push_back(kTIME); 94 expected_options.push_back(kTIME);
96 expected_options.push_back(kTBBR); 95 expected_options.push_back(kTBBR);
97 expected_options.push_back(kREJ); 96 expected_options.push_back(kREJ);
98 EXPECT_EQ(expected_options, parsed_options); 97 EXPECT_EQ(expected_options, parsed_options);
99 } 98 }
100 99
101 } // namespace 100 } // namespace
102 } // namespace test 101 } // namespace test
103 } // namespace net 102 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_session.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698