We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / net / quic / test_tools / quic_framer_peer.h
blob57818701cf96d7d5e6914de863ce7f59d4b0c7c4
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.
5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_
8 #include "net/quic/crypto/quic_encrypter.h"
9 #include "net/quic/quic_protocol.h"
11 namespace net {
13 class QuicFramer;
15 namespace test {
17 class QuicFramerPeer {
18 public:
19 static QuicPacketSequenceNumber CalculatePacketSequenceNumberFromWire(
20 QuicFramer* framer,
21 QuicSequenceNumberLength sequence_number_length,
22 QuicPacketSequenceNumber packet_sequence_number);
23 static void SetLastSerializedConnectionId(QuicFramer* framer,
24 QuicConnectionId connection_id);
25 static void SetLastSequenceNumber(
26 QuicFramer* framer,
27 QuicPacketSequenceNumber packet_sequence_number);
28 static void SetPerspective(QuicFramer* framer, Perspective perspective);
30 // SwapCrypters exchanges the state of the crypters of |framer1| with
31 // |framer2|.
32 static void SwapCrypters(QuicFramer* framer1, QuicFramer* framer2);
34 static QuicEncrypter* GetEncrypter(QuicFramer* framer, EncryptionLevel level);
36 private:
37 DISALLOW_COPY_AND_ASSIGN(QuicFramerPeer);
40 } // namespace test
42 } // namespace net
44 #endif // NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_