chromium/net/third_party/quiche/src/quiche/http2/hpack/varint/hpack_varint_encoder_test.cc

// Copyright 2016 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 "quiche/http2/hpack/varint/hpack_varint_encoder.h"

#include <cstddef>
#include <string>

#include "absl/base/macros.h"
#include "absl/strings/escaping.h"
#include "quiche/common/platform/api/quiche_test.h"

namespace http2 {
namespace test {
namespace {

struct {} kShortTestData[] =;

// Encode integers that fit in the prefix.
TEST(HpackVarintEncoderTest, Short) {}

struct {} kLongTestData[] =;

// Encode integers that do not fit in the prefix.
TEST(HpackVarintEncoderTest, Long) {}

struct {} kLastByteIsZeroTestData[] =;

// Make sure that the encoder outputs the last byte even when it is zero.  This
// happens exactly when encoding  the value 2^prefix_length - 1.
TEST(HpackVarintEncoderTest, LastByteIsZero) {}

// Test that encoder appends correctly to non-empty string.
TEST(HpackVarintEncoderTest, Append) {}

}  // namespace
}  // namespace test
}  // namespace http2