haoyuewang | e3c51d9 | 2021-03-08 07:35:03 -0800 | [diff] [blame] | 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 QUICHE_QUIC_TEST_TOOLS_QUIC_CONNECTION_ID_MANAGER_PEER_H_ |
| 6 | #define QUICHE_QUIC_TEST_TOOLS_QUIC_CONNECTION_ID_MANAGER_PEER_H_ |
| 7 | |
| 8 | #include "quic/core/quic_connection_id_manager.h" |
| 9 | |
| 10 | namespace quic { |
| 11 | namespace test { |
| 12 | |
| 13 | class QuicConnectionIdManagerPeer { |
| 14 | public: |
| 15 | static QuicAlarm* GetRetirePeerIssuedConnectionIdAlarm( |
| 16 | QuicPeerIssuedConnectionIdManager* manager) { |
| 17 | return manager->retire_connection_id_alarm_.get(); |
| 18 | } |
| 19 | |
| 20 | static QuicAlarm* GetRetireSelfIssuedConnectionIdAlarm( |
| 21 | QuicSelfIssuedConnectionIdManager* manager) { |
| 22 | return manager->retire_connection_id_alarm_.get(); |
| 23 | } |
| 24 | }; |
| 25 | |
| 26 | } // namespace test |
| 27 | } // namespace quic |
| 28 | |
| 29 | #endif // QUICHE_QUIC_TEST_TOOLS_QUIC_CONNECTION_ID_MANAGER_PEER_H_ |