| OLD | NEW |
| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 creator->FillPacketHeader(fec_group, fec_flag, header); | 60 creator->FillPacketHeader(fec_group, fec_flag, header); |
| 61 } | 61 } |
| 62 | 62 |
| 63 // static | 63 // static |
| 64 size_t QuicPacketCreatorPeer::CreateStreamFrame(QuicPacketCreator* creator, | 64 size_t QuicPacketCreatorPeer::CreateStreamFrame(QuicPacketCreator* creator, |
| 65 QuicStreamId id, | 65 QuicStreamId id, |
| 66 QuicIOVector iov, | 66 QuicIOVector iov, |
| 67 size_t iov_offset, | 67 size_t iov_offset, |
| 68 QuicStreamOffset offset, | 68 QuicStreamOffset offset, |
| 69 bool fin, | 69 bool fin, |
| 70 QuicFrame* frame, | 70 QuicFrame* frame) { |
| 71 UniqueStreamBuffer* buffer) { | |
| 72 return creator->CreateStreamFrame(id, iov, iov_offset, offset, fin, frame); | 71 return creator->CreateStreamFrame(id, iov, iov_offset, offset, fin, frame); |
| 73 } | 72 } |
| 74 | 73 |
| 75 // static | 74 // static |
| 76 bool QuicPacketCreatorPeer::IsFecProtected(QuicPacketCreator* creator) { | 75 bool QuicPacketCreatorPeer::IsFecProtected(QuicPacketCreator* creator) { |
| 77 return creator->fec_protect_; | 76 return creator->fec_protect_; |
| 78 } | 77 } |
| 79 | 78 |
| 80 // static | 79 // static |
| 81 bool QuicPacketCreatorPeer::IsFecEnabled(QuicPacketCreator* creator) { | 80 bool QuicPacketCreatorPeer::IsFecEnabled(QuicPacketCreator* creator) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 } | 118 } |
| 120 | 119 |
| 121 // static | 120 // static |
| 122 EncryptionLevel QuicPacketCreatorPeer::GetEncryptionLevel( | 121 EncryptionLevel QuicPacketCreatorPeer::GetEncryptionLevel( |
| 123 QuicPacketCreator* creator) { | 122 QuicPacketCreator* creator) { |
| 124 return creator->encryption_level_; | 123 return creator->encryption_level_; |
| 125 } | 124 } |
| 126 | 125 |
| 127 } // namespace test | 126 } // namespace test |
| 128 } // namespace net | 127 } // namespace net |
| OLD | NEW |