#include "media/mojo/clients/mojo_video_encoder_metrics_provider.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
InSequence;
namespace media {
constexpr uint64_t kEncoderId = …;
class MockMojomVideoEncoderMetricsProvider
: public mojom::VideoEncoderMetricsProvider { … };
class MojoVideoEncoderMetricsProviderTest : public ::testing::Test { … };
TEST_F(MojoVideoEncoderMetricsProviderTest, CreateAndDestroy) { … }
TEST_F(MojoVideoEncoderMetricsProviderTest, CreateAndBoundAndInitialize) { … }
TEST_F(MojoVideoEncoderMetricsProviderTest,
CreateAndBoundAndInitializeSetEncodedFrameCount) { … }
TEST_F(MojoVideoEncoderMetricsProviderTest,
CreateAndBoundAndInitializeAndSetError) { … }
TEST_F(MojoVideoEncoderMetricsProviderTest, CreateAndSetError_NoCall) { … }
TEST_F(MojoVideoEncoderMetricsProviderTest,
CreateAndIncrementEncodedFrameCount_NoCall) { … }
class MojoVideoEncoderMetricsProviderFactoryTest : public ::testing::Test { … };
TEST_F(MojoVideoEncoderMetricsProviderFactoryTest, CreateMultipleEncoders) { … }
TEST_F(MojoVideoEncoderMetricsProviderFactoryTest,
CanOperateAfterDestroyingOtherMetricsProvider) { … }
}