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 3 // found in the LICENSE file. 4 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_ 7 8 #include "net/quic/quic_protocol.h" 9 10 namespace net { 11 12 class QuicFramer; 13 14 namespace test { 15 16 class QuicFramerPeer { 17 public: 18 static QuicPacketSequenceNumber CalculatePacketSequenceNumberFromWire( 19 QuicFramer* framer, 20 QuicSequenceNumberLength sequence_number_length, 21 QuicPacketSequenceNumber packet_sequence_number); 22 static void SetLastSerializedGuid(QuicFramer* framer, QuicGuid guid); 23 static void SetLastSequenceNumber( 24 QuicFramer* framer, 25 QuicPacketSequenceNumber packet_sequence_number); 26 static void SetIsServer(QuicFramer* framer, bool is_server); 27 28 private: 29 DISALLOW_COPY_AND_ASSIGN(QuicFramerPeer); 30 }; 31 32 } // namespace test 33 34 } // namespace net 35 36 #endif // NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_ 37