chromium/media/capabilities/in_memory_video_decode_stats_db_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {};

// Specialization for tests that have/lack a seed DB. Some tests only make sense
// with seed DB, so we separate them.
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) {}

}  // namespace media