OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_framer.h" | 5 #include "net/quic/quic_framer.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 4034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4045 header.public_header.version_flag = false; | 4045 header.public_header.version_flag = false; |
4046 header.fec_flag = false; | 4046 header.fec_flag = false; |
4047 header.entropy_flag = true; | 4047 header.entropy_flag = true; |
4048 header.packet_number = kPacketNumber; | 4048 header.packet_number = kPacketNumber; |
4049 header.fec_group = 0; | 4049 header.fec_group = 0; |
4050 | 4050 |
4051 QuicBlockedFrame blocked_frame; | 4051 QuicBlockedFrame blocked_frame; |
4052 blocked_frame.stream_id = kStreamId; | 4052 blocked_frame.stream_id = kStreamId; |
4053 | 4053 |
4054 QuicFrames frames; | 4054 QuicFrames frames; |
4055 frames.push_back(QuicFrame(&blocked_frame)); | 4055 frames.push_back(QuicFrame(blocked_frame)); |
4056 | 4056 |
4057 // clang-format off | 4057 // clang-format off |
4058 unsigned char packet[] = { | 4058 unsigned char packet[] = { |
4059 // public flags (8 byte connection_id) | 4059 // public flags (8 byte connection_id) |
4060 0x3C, | 4060 0x3C, |
4061 // connection_id | 4061 // connection_id |
4062 0x10, 0x32, 0x54, 0x76, | 4062 0x10, 0x32, 0x54, 0x76, |
4063 0x98, 0xBA, 0xDC, 0xFE, | 4063 0x98, 0xBA, 0xDC, 0xFE, |
4064 // packet number | 4064 // packet number |
4065 0xBC, 0x9A, 0x78, 0x56, | 4065 0xBC, 0x9A, 0x78, 0x56, |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4777 'o', ' ', 'w', 'o', | 4777 'o', ' ', 'w', 'o', |
4778 'r', 'l', 'd', '!', | 4778 'r', 'l', 'd', '!', |
4779 }; | 4779 }; |
4780 // clang-format on | 4780 // clang-format on |
4781 | 4781 |
4782 QuicFramerFuzzFunc(packet, arraysize(packet)); | 4782 QuicFramerFuzzFunc(packet, arraysize(packet)); |
4783 } | 4783 } |
4784 | 4784 |
4785 } // namespace test | 4785 } // namespace test |
4786 } // namespace net | 4786 } // namespace net |
OLD | NEW |