summaryrefslogtreecommitdiff
path: root/chromium/net/third_party/quiche/src/quic/test_tools/qpack/qpack_encoder_peer.cc
blob: cc5f010c0e1e6f6994cb17ba411176be1601a56d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2019 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.

#include "quic/test_tools/qpack/qpack_encoder_peer.h"

#include "quic/core/qpack/qpack_encoder.h"

namespace quic {
namespace test {

// static
QpackEncoderHeaderTable* QpackEncoderPeer::header_table(QpackEncoder* encoder) {
  return &encoder->header_table_;
}

// static
uint64_t QpackEncoderPeer::maximum_blocked_streams(
    const QpackEncoder* encoder) {
  return encoder->maximum_blocked_streams_;
}

// static
uint64_t QpackEncoderPeer::smallest_blocking_index(
    const QpackEncoder* encoder) {
  return encoder->blocking_manager_.smallest_blocking_index();
}

}  // namespace test
}  // namespace quic