Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: net/quic/test_tools/quic_framer_peer.h

Issue 1037403004: Land Recent QUIC Changes until 03/27/2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.cc ('k') | net/quic/test_tools/quic_framer_peer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_FRAMER_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_
7 7
8 #include "net/quic/crypto/quic_encrypter.h"
8 #include "net/quic/quic_protocol.h" 9 #include "net/quic/quic_protocol.h"
9 10
10 namespace net { 11 namespace net {
11 12
12 class QuicFramer; 13 class QuicFramer;
13 14
14 namespace test { 15 namespace test {
15 16
16 class QuicFramerPeer { 17 class QuicFramerPeer {
17 public: 18 public:
18 static QuicPacketSequenceNumber CalculatePacketSequenceNumberFromWire( 19 static QuicPacketSequenceNumber CalculatePacketSequenceNumberFromWire(
19 QuicFramer* framer, 20 QuicFramer* framer,
20 QuicSequenceNumberLength sequence_number_length, 21 QuicSequenceNumberLength sequence_number_length,
21 QuicPacketSequenceNumber packet_sequence_number); 22 QuicPacketSequenceNumber packet_sequence_number);
22 static void SetLastSerializedConnectionId(QuicFramer* framer, 23 static void SetLastSerializedConnectionId(QuicFramer* framer,
23 QuicConnectionId connection_id); 24 QuicConnectionId connection_id);
24 static void SetLastSequenceNumber( 25 static void SetLastSequenceNumber(
25 QuicFramer* framer, 26 QuicFramer* framer,
26 QuicPacketSequenceNumber packet_sequence_number); 27 QuicPacketSequenceNumber packet_sequence_number);
27 static void SetPerspective(QuicFramer* framer, Perspective perspective); 28 static void SetPerspective(QuicFramer* framer, Perspective perspective);
28 29
29 // SwapCrypters exchanges the state of the crypters of |framer1| with 30 // SwapCrypters exchanges the state of the crypters of |framer1| with
30 // |framer2|. 31 // |framer2|.
31 static void SwapCrypters(QuicFramer* framer1, QuicFramer* framer2); 32 static void SwapCrypters(QuicFramer* framer1, QuicFramer* framer2);
32 33
34 static QuicEncrypter* GetEncrypter(QuicFramer* framer, EncryptionLevel level);
35
33 private: 36 private:
34 DISALLOW_COPY_AND_ASSIGN(QuicFramerPeer); 37 DISALLOW_COPY_AND_ASSIGN(QuicFramerPeer);
35 }; 38 };
36 39
37 } // namespace test 40 } // namespace test
38 41
39 } // namespace net 42 } // namespace net
40 43
41 #endif // NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_ 44 #endif // NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.cc ('k') | net/quic/test_tools/quic_framer_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698