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

Side by Side Diff: net/quic/test_tools/quic_test_packet_maker.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_stream_sequencer_test.cc ('k') | net/quic/test_tools/quic_test_utils.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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/test_tools/quic_test_packet_maker.h" 5 #include "net/quic/test_tools/quic_test_packet_maker.h"
6 6
7 #include "net/quic/quic_framer.h" 7 #include "net/quic/quic_framer.h"
8 #include "net/quic/quic_http_utils.h" 8 #include "net/quic/quic_http_utils.h"
9 #include "net/quic/quic_utils.h"
9 #include "net/quic/test_tools/quic_test_utils.h" 10 #include "net/quic/test_tools/quic_test_utils.h"
10 11
11 namespace net { 12 namespace net {
12 namespace test { 13 namespace test {
13 14
14 QuicTestPacketMaker::QuicTestPacketMaker(QuicVersion version, QuicGuid guid) 15 QuicTestPacketMaker::QuicTestPacketMaker(QuicVersion version, QuicGuid guid)
15 : version_(version), 16 : version_(version),
16 guid_(guid), 17 guid_(guid),
17 spdy_request_framer_(SPDY3), 18 spdy_request_framer_(SPDY3),
18 spdy_response_framer_(SPDY3) { 19 spdy_response_framer_(SPDY3) {
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 249
249 std::string QuicTestPacketMaker::SerializeHeaderBlock( 250 std::string QuicTestPacketMaker::SerializeHeaderBlock(
250 const SpdyHeaderBlock& headers) { 251 const SpdyHeaderBlock& headers) {
251 QuicSpdyCompressor compressor; 252 QuicSpdyCompressor compressor;
252 return compressor.CompressHeadersWithPriority( 253 return compressor.CompressHeadersWithPriority(
253 ConvertRequestPriorityToQuicPriority(DEFAULT_PRIORITY), headers); 254 ConvertRequestPriorityToQuicPriority(DEFAULT_PRIORITY), headers);
254 } 255 }
255 256
256 } // namespace test 257 } // namespace test
257 } // namespace net 258 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_sequencer_test.cc ('k') | net/quic/test_tools/quic_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698