// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif #include "media/base/bit_reader.h" #include <stddef.h> #include <stdint.h> #include "testing/gtest/include/gtest/gtest.h" namespace media { static void SetBit(uint8_t* buf, size_t size, size_t bit_pos) { … } TEST(BitReaderTest, NormalOperationTest) { … } TEST(BitReaderTest, ReadBeyondEndTest) { … } TEST(BitReaderTest, SkipBitsTest) { … } TEST(BitReaderTest, VariableSkipBitsTest) { … } TEST(BitReaderTest, BitsReadTest) { … } } // namespace media