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

Side by Side Diff: net/quic/core/crypto/crypto_handshake_message_test.cc

Issue 2566783002: Various formatting cleanups to net/quic/crypto and net/quic/congestion_control (Closed)
Patch Set: Rebase Created 4 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/core/crypto/crypto_handshake_message.h" 5 #include "net/quic/core/crypto/crypto_handshake_message.h"
6 6
7 #include "net/quic/core/crypto/crypto_handshake.h" 7 #include "net/quic/core/crypto/crypto_handshake.h"
8 #include "net/quic/core/crypto/crypto_protocol.h" 8 #include "net/quic/core/crypto/crypto_protocol.h"
9 #include "net/test/gtest_util.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace net { 11 namespace net {
12 namespace test { 12 namespace test {
13 namespace { 13 namespace {
14 14
15 TEST(CryptoHandshakeMessageTest, DebugString) { 15 TEST(CryptoHandshakeMessageTest, DebugString) {
16 const char* str = "SHLO<\n>"; 16 const char* str = "SHLO<\n>";
17 17
18 CryptoHandshakeMessage message; 18 CryptoHandshakeMessage message;
19 message.set_tag(kSHLO); 19 message.set_tag(kSHLO);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 TEST(CryptoHandshakeMessageTest, HasStringPiece) { 120 TEST(CryptoHandshakeMessageTest, HasStringPiece) {
121 CryptoHandshakeMessage message; 121 CryptoHandshakeMessage message;
122 EXPECT_FALSE(message.HasStringPiece(kRCID)); 122 EXPECT_FALSE(message.HasStringPiece(kRCID));
123 message.SetStringPiece(kRCID, "foo"); 123 message.SetStringPiece(kRCID, "foo");
124 EXPECT_TRUE(message.HasStringPiece(kRCID)); 124 EXPECT_TRUE(message.HasStringPiece(kRCID));
125 } 125 }
126 126
127 } // namespace 127 } // namespace
128 } // namespace test 128 } // namespace test
129 } // namespace net 129 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/crypto_handshake_message.cc ('k') | net/quic/core/crypto/crypto_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698