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

Side by Side Diff: net/quic/test_tools/quic_packet_creator_peer.cc

Issue 1464153002: Add ConsumeData method to QuicPacketCreator, ConsumeData wraps both CreateStreamFrame and AddFrame.… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107699435
Patch Set: Created 5 years, 1 month 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/test_tools/quic_packet_creator_peer.h ('k') | no next file » | 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/test_tools/quic_packet_creator_peer.h" 5 #include "net/quic/test_tools/quic_packet_creator_peer.h"
6 6
7 #include "net/quic/quic_packet_creator.h" 7 #include "net/quic/quic_packet_creator.h"
8 8
9 namespace net { 9 namespace net {
10 namespace test { 10 namespace test {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 // static 55 // static
56 void QuicPacketCreatorPeer::FillPacketHeader(QuicPacketCreator* creator, 56 void QuicPacketCreatorPeer::FillPacketHeader(QuicPacketCreator* creator,
57 QuicFecGroupNumber fec_group, 57 QuicFecGroupNumber fec_group,
58 bool fec_flag, 58 bool fec_flag,
59 QuicPacketHeader* header) { 59 QuicPacketHeader* header) {
60 creator->FillPacketHeader(fec_group, fec_flag, header); 60 creator->FillPacketHeader(fec_group, fec_flag, header);
61 } 61 }
62 62
63 // static
64 size_t QuicPacketCreatorPeer::CreateStreamFrame(
65 QuicPacketCreator* creator,
66 QuicStreamId id,
67 QuicIOVector iov,
68 size_t iov_offset,
69 QuicStreamOffset offset,
70 bool fin,
71 QuicFrame* frame,
72 UniqueStreamBuffer* buffer) {
73 return creator->CreateStreamFrame(id, iov, iov_offset, offset, fin, frame,
74 buffer);
75 }
76
63 } // namespace test 77 } // namespace test
64 } // namespace net 78 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_packet_creator_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698