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

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

Issue 147763009: Add the client address to the Public Reset packet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove crypto_handshake_message.* from the CL; they were committed separately Created 6 years, 10 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_config.cc ('k') | net/quic/quic_connection_logger.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/quic_config.h" 5 #include "net/quic/quic_config.h"
6 6
7 #include "net/quic/crypto/crypto_handshake.h" 7 #include "net/quic/crypto/crypto_handshake_message.h"
8 #include "net/quic/crypto/crypto_protocol.h" 8 #include "net/quic/crypto/crypto_protocol.h"
9 #include "net/quic/quic_protocol.h" 9 #include "net/quic/quic_protocol.h"
10 #include "net/quic/quic_sent_packet_manager.h" 10 #include "net/quic/quic_sent_packet_manager.h"
11 #include "net/quic/quic_time.h" 11 #include "net/quic/quic_time.h"
12 #include "net/quic/quic_utils.h"
12 #include "net/quic/test_tools/quic_test_utils.h" 13 #include "net/quic/test_tools/quic_test_utils.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 15
15 using std::string; 16 using std::string;
16 17
17 namespace net { 18 namespace net {
18 namespace test { 19 namespace test {
19 namespace { 20 namespace {
20 21
21 class QuicConfigTest : public ::testing::Test { 22 class QuicConfigTest : public ::testing::Test {
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 string error_details; 193 string error_details;
193 server_config.ToHandshakeMessage(&msg); 194 server_config.ToHandshakeMessage(&msg);
194 const QuicErrorCode error = config_.ProcessClientHello(msg, &error_details); 195 const QuicErrorCode error = config_.ProcessClientHello(msg, &error_details);
195 LOG(INFO) << QuicUtils::ErrorToString(error); 196 LOG(INFO) << QuicUtils::ErrorToString(error);
196 EXPECT_EQ(QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP, error); 197 EXPECT_EQ(QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP, error);
197 } 198 }
198 199
199 } // namespace 200 } // namespace
200 } // namespace test 201 } // namespace test
201 } // namespace net 202 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_config.cc ('k') | net/quic/quic_connection_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698