#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/base/decoder_buffer.h"
#include <stdint.h>
#include <string.h>
#include <memory>
#include "base/containers/heap_array.h"
#include "base/memory/read_only_shared_memory_region.h"
#include "base/memory/unsafe_shared_memory_region.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "media/base/test_data_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
TEST(DecoderBufferTest, Constructors) { … }
TEST(DecoderBufferTest, CreateEOSBuffer) { … }
TEST(DecoderBufferTest, CopyFrom) { … }
TEST(DecoderBufferTest, FromArray) { … }
TEST(DecoderBufferTest, FromPlatformSharedMemoryRegion) { … }
TEST(DecoderBufferTest, FromPlatformSharedMemoryRegion_Unaligned) { … }
TEST(DecoderBufferTest, FromPlatformSharedMemoryRegion_ZeroSize) { … }
TEST(DecoderBufferTest, FromSharedMemoryRegion) { … }
TEST(DecoderBufferTest, FromSharedMemoryRegion_Unaligned) { … }
TEST(DecoderBufferTest, FromSharedMemoryRegion_ZeroSize) { … }
TEST(DecoderBufferTest, FromExternalMemory) { … }
TEST(DecoderBufferTest, ReadingWriting) { … }
TEST(DecoderBufferTest, DecryptConfig) { … }
TEST(DecoderBufferTest, IsKeyFrame) { … }
TEST(DecoderBufferTest, SideData) { … }
TEST(DecoderBufferTest, IsEncrypted) { … }
}