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

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

Issue 1570443010: relnote: Change the QuicBlockedFrame in QuicFrame from a pointer to in-place. No functional change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@04_CL_111628540
Patch Set: Created 4 years, 11 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
« no previous file with comments | « net/quic/quic_framer.cc ('k') | net/quic/quic_packet_generator.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) 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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_framer.cc ('k') | net/quic/quic_packet_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698