| // Copyright (c) 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef QUICHE_QUIC_TEST_TOOLS_QUIC_SERVER_SESSION_BASE_PEER_H_ |
| #define QUICHE_QUIC_TEST_TOOLS_QUIC_SERVER_SESSION_BASE_PEER_H_ |
| #include "net/third_party/quiche/src/quic/core/http/quic_server_session_base.h" |
| #include "net/third_party/quiche/src/quic/core/quic_utils.h" |
| class QuicServerSessionBasePeer { |
| static QuicStream* GetOrCreateStream(QuicServerSessionBase* s, |
| return s->GetOrCreateStream(id); |
| static void SetCryptoStream(QuicServerSessionBase* s, |
| QuicCryptoServerStream* crypto_stream) { |
| s->crypto_stream_.reset(crypto_stream); |
| static bool IsBandwidthResumptionEnabled(QuicServerSessionBase* s) { |
| return s->bandwidth_resumption_enabled_; |
| #endif // QUICHE_QUIC_TEST_TOOLS_QUIC_SERVER_SESSION_BASE_PEER_H_ |