#include <memory>
#include <string>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "media/base/video_codecs.h"
#include "media/learning/common/value.h"
#include "media/mojo/mojom/media_types.mojom.h"
#include "media/mojo/services/test_helpers.h"
#include "media/mojo/services/video_decode_stats_recorder.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect.h"
_;
namespace media {
namespace {
const ukm::SourceId kSourceIdA = …;
const ukm::SourceId kSourceIdB = …;
const bool kIsTopFrameA = …;
const bool kIsTopFrameB = …;
const uint64_t kPlayerIdA = …;
const uint64_t kPlayerIdB = …;
const VideoCodecProfile kProfileA = …;
const VideoCodecProfile kProfileB = …;
const int kFpsA = …;
const int kFpsB = …;
MATCHER_P(MojoEq, value, "") { … }
}
class VideoDecodeStatsRecorderTest : public ::testing::Test { … };
TEST_F(VideoDecodeStatsRecorderTest, SaveOnStartNewRecord) { … }
TEST_F(VideoDecodeStatsRecorderTest, SaveOnDestruction) { … }
}