| 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_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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "net/quic/core/crypto/quic_encrypter.h" | 9 #include "net/quic/core/crypto/quic_encrypter.h" |
| 10 #include "net/quic/core/quic_framer.h" | 10 #include "net/quic/core/quic_framer.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 static void SetPerspective(QuicFramer* framer, Perspective perspective); | 30 static void SetPerspective(QuicFramer* framer, Perspective perspective); |
| 31 | 31 |
| 32 // SwapCrypters exchanges the state of the crypters of |framer1| with | 32 // SwapCrypters exchanges the state of the crypters of |framer1| with |
| 33 // |framer2|. | 33 // |framer2|. |
| 34 static void SwapCrypters(QuicFramer* framer1, QuicFramer* framer2); | 34 static void SwapCrypters(QuicFramer* framer1, QuicFramer* framer2); |
| 35 | 35 |
| 36 static QuicEncrypter* GetEncrypter(QuicFramer* framer, EncryptionLevel level); | 36 static QuicEncrypter* GetEncrypter(QuicFramer* framer, EncryptionLevel level); |
| 37 | 37 |
| 38 static QuicPacketNumber GetLastPacketNumber(QuicFramer* framer); | 38 static QuicPacketNumber GetLastPacketNumber(QuicFramer* framer); |
| 39 | 39 |
| 40 static QuicPathId GetLastPathId(QuicFramer* framer); | |
| 41 | |
| 42 static bool IsPathClosed(QuicFramer* framer, QuicPathId path_id); | |
| 43 | |
| 44 private: | 40 private: |
| 45 DISALLOW_COPY_AND_ASSIGN(QuicFramerPeer); | 41 DISALLOW_COPY_AND_ASSIGN(QuicFramerPeer); |
| 46 }; | 42 }; |
| 47 | 43 |
| 48 } // namespace test | 44 } // namespace test |
| 49 | 45 |
| 50 } // namespace net | 46 } // namespace net |
| 51 | 47 |
| 52 #endif // NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_ | 48 #endif // NET_QUIC_TEST_TOOLS_QUIC_FRAMER_PEER_H_ |
| OLD | NEW |