#include <memory>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/ptr_util.h"
#include "base/test/gtest_util.h"
#include "base/test/task_environment.h"
#include "media/capabilities/in_memory_video_decode_stats_db_impl.h"
#include "media/capabilities/video_decode_stats_db_provider.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
Eq;
Pointee;
IsNull;
namespace media {
static VideoDecodeStatsDB::VideoDescKey kTestKey() { … }
static VideoDecodeStatsDB::DecodeStatsEntry kEmtpyEntry() { … }
class MockSeedDB : public VideoDecodeStatsDB { … };
class MockDBProvider : public VideoDecodeStatsDBProvider { … };
template <bool WithSeedDB>
class InMemoryDBTestBase : public testing::Test { … };
class SeededInMemoryDBTest : public InMemoryDBTestBase<true> { … };
class SeedlessInMemoryDBTest : public InMemoryDBTestBase<false> { … };
TEST_F(SeedlessInMemoryDBTest, ReadExpectingEmpty) { … }
TEST_F(SeededInMemoryDBTest, ReadExpectingEmpty) { … }
TEST_F(SeededInMemoryDBTest, ReadExpectingSeedData) { … }
TEST_F(SeededInMemoryDBTest, AppendReadAndClear) { … }
TEST_F(SeedlessInMemoryDBTest, AppendReadAndClear) { … }
TEST_F(SeededInMemoryDBTest, ProvidedNullSeedDB) { … }
TEST_F(SeededInMemoryDBTest, SeedReadFailureOnGettingStats) { … }
TEST_F(SeededInMemoryDBTest, SeedReadFailureOnAppendingingStats) { … }
}