#include "media/parsers/vp8_bool_decoder.h"
#include <stddef.h>
#include <stdint.h>
#include <limits>
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
const static size_t NUM_BITS_TO_TEST = …;
namespace {
const uint8_t kDataZerosAndEvenProbabilities[] = …;
const uint8_t kDataOnesAndEvenProbabilities[] = …;
const uint8_t kDataParitiesAndIncreasingProbabilities[] = …;
}
class Vp8BoolDecoderTest : public ::testing::Test { … };
#define INITIALIZE(data) …
TEST_F(Vp8BoolDecoderTest, DecodeBoolsWithZerosAndEvenProbabilities) { … }
TEST_F(Vp8BoolDecoderTest, DecodeLiteralsWithZerosAndEvenProbabilities) { … }
TEST_F(Vp8BoolDecoderTest, DecodeBoolsWithOnesAndEvenProbabilities) { … }
TEST_F(Vp8BoolDecoderTest, DecodeLiteralsWithOnesAndEvenProbabilities) { … }
TEST_F(Vp8BoolDecoderTest, DecodeBoolsWithParitiesAndIncreasingProbabilities) { … }
}