Rewrite AndroidSyncSettings to be significantly simpler.
[chromium-blink-merge.git] / net / quic / test_tools / quic_framer_peer.h
blob9b9c9fa140f4e08f4f2161484a1cc9be75d7d8c5
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/quic_protocol.h"
10 namespace net {
12 class QuicFramer;
14 namespace test {
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 SetLastSerializedConnectionId(QuicFramer* framer,
23 QuicConnectionId connection_id);
24 static void SetLastSequenceNumber(
25 QuicFramer* framer,
26 QuicPacketSequenceNumber packet_sequence_number);
27 static void SetIsServer(QuicFramer* framer, bool is_server);
29 // SwapCrypters exchanges the state of the crypters of |framer1| with
30 // |framer2|.
31 static void SwapCrypters(QuicFramer* framer1, QuicFramer* framer2);
33 private:
34 DISALLOW_COPY_AND_ASSIGN(QuicFramerPeer);
37 } // namespace test
39 } // namespace net
41 #endif // NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_