chromium/media/capabilities/webrtc_video_stats_db_impl_unittest.cc

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

#include <map>
#include <memory>

#include "base/check.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/simple_test_clock.h"
#include "base/test/task_environment.h"
#include "components/leveldb_proto/testing/fake_db.h"
#include "media/base/media_switches.h"
#include "media/base/test_data_util.h"
#include "media/base/video_codecs.h"
#include "media/capabilities/webrtc_video_stats.pb.h"
#include "media/capabilities/webrtc_video_stats_db_impl.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/size.h"

FakeDB;
_;
Eq;
Pointee;

namespace media {

class WebrtcVideoStatsDBImplTest : public ::testing::Test {};

TEST_F(WebrtcVideoStatsDBImplTest, InitializeFailed) {}

TEST_F(WebrtcVideoStatsDBImplTest, InitializeTimedOut) {}

TEST_F(WebrtcVideoStatsDBImplTest, ReadExpectingNothing) {}

TEST_F(WebrtcVideoStatsDBImplTest, WriteReadAndClear) {}

TEST_F(WebrtcVideoStatsDBImplTest, ExpiredStatsAreNotReturned) {}

TEST_F(WebrtcVideoStatsDBImplTest, ConfigureExpireDays) {}

TEST_F(WebrtcVideoStatsDBImplTest, NewStatsReplaceOldStats) {}

TEST_F(WebrtcVideoStatsDBImplTest, ConfigureMaxEntriesPerConfig) {}

TEST_F(WebrtcVideoStatsDBImplTest, OutOfOrderTimestampClearsOldStats) {}

TEST_F(WebrtcVideoStatsDBImplTest, FailedWrite) {}

TEST_F(WebrtcVideoStatsDBImplTest, DiscardCorruptedDBData) {}

TEST_F(WebrtcVideoStatsDBImplTest, WriteAndReadCollection) {}

}  // namespace media