| 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 #ifndef NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 static QuicPacketNumberLength GetPacketNumberLength( | 30 static QuicPacketNumberLength GetPacketNumberLength( |
| 31 QuicPacketCreator* creator); | 31 QuicPacketCreator* creator); |
| 32 static void SetNextPacketNumberLength( | 32 static void SetNextPacketNumberLength( |
| 33 QuicPacketCreator* creator, | 33 QuicPacketCreator* creator, |
| 34 QuicPacketNumberLength next_packet_number_length); | 34 QuicPacketNumberLength next_packet_number_length); |
| 35 static QuicPacketNumberLength NextPacketNumberLength( | 35 static QuicPacketNumberLength NextPacketNumberLength( |
| 36 QuicPacketCreator* creator); | 36 QuicPacketCreator* creator); |
| 37 static void SetPacketNumber(QuicPacketCreator* creator, QuicPacketNumber s); | 37 static void SetPacketNumber(QuicPacketCreator* creator, QuicPacketNumber s); |
| 38 static void FillPacketHeader(QuicPacketCreator* creator, | 38 static void FillPacketHeader(QuicPacketCreator* creator, |
| 39 QuicPacketHeader* header); | 39 QuicPacketHeader* header); |
| 40 static size_t CreateStreamFrame(QuicPacketCreator* creator, | 40 static void CreateStreamFrame(QuicPacketCreator* creator, |
| 41 QuicStreamId id, | 41 QuicStreamId id, |
| 42 QuicIOVector iov, | 42 QuicIOVector iov, |
| 43 size_t iov_offset, | 43 size_t iov_offset, |
| 44 QuicStreamOffset offset, | 44 QuicStreamOffset offset, |
| 45 bool fin, | 45 bool fin, |
| 46 QuicFrame* frame); | 46 QuicFrame* frame); |
| 47 static SerializedPacket SerializeAllFrames(QuicPacketCreator* creator, | 47 static SerializedPacket SerializeAllFrames(QuicPacketCreator* creator, |
| 48 const QuicFrames& frames, | 48 const QuicFrames& frames, |
| 49 char* buffer, | 49 char* buffer, |
| 50 size_t buffer_len); | 50 size_t buffer_len); |
| 51 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator); | 51 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator); |
| 52 static QuicPathId GetCurrentPath(QuicPacketCreator* creator); | 52 static QuicPathId GetCurrentPath(QuicPacketCreator* creator); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); | 55 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace test | 58 } // namespace test |
| 59 | 59 |
| 60 } // namespace net | 60 } // namespace net |
| 61 | 61 |
| 62 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ | 62 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ |
| OLD | NEW |