| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |