#include "media/video/video_encoder_fallback.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/sequence_checker.h"
#include "base/task/bind_post_task.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/bind.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/task_environment.h"
#include "media/base/mock_filters.h"
#include "media/base/video_frame.h"
#include "media/video/video_encoder_info.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/size.h"
_;
Invoke;
namespace media {
const gfx::Size kFrameSize(320, 200);
const int kFrameCount = …;
class VideoEncoderFallbackTest : public testing::Test { … };
TEST_F(VideoEncoderFallbackTest, NoFallbackEncoding) { … }
TEST_F(VideoEncoderFallbackTest, FallbackOnInitialize) { … }
TEST_F(VideoEncoderFallbackTest, FallbackOnEncode) { … }
TEST_F(VideoEncoderFallbackTest, SecondaryFailureOnInitialize) { … }
TEST_F(VideoEncoderFallbackTest, SecondaryFailureOnEncode) { … }
TEST_F(VideoEncoderFallbackTest, SecondaryFailureOnCreation) { … }
}