#include "third_party/blink/renderer/modules/mediacapturefromelement/html_video_element_capturer_source.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/gmock_callback_support.h"
#include "cc/paint/paint_canvas.h"
#include "cc/paint/paint_flags.h"
#include "media/base/limits.h"
#include "media/base/video_frame.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/public/platform/web_media_player.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
RunOnceClosure;
_;
DoAll;
InSequence;
Mock;
SaveArg;
namespace blink {
namespace {
class MockWebMediaPlayer : public WebMediaPlayer { … };
}
class HTMLVideoElementCapturerSourceTest : public testing::TestWithParam<bool> { … };
TEST_F(HTMLVideoElementCapturerSourceTest, ConstructAndDestruct) { … }
TEST_F(HTMLVideoElementCapturerSourceTest, EmptyWebMediaPlayerFailsCapture) { … }
TEST_P(HTMLVideoElementCapturerSourceTest, GetFormatsAndStartAndStop) { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_F(HTMLVideoElementCapturerSourceTest,
StartAndStopInSameTaskCaptureZeroFrames) { … }
TEST_F(HTMLVideoElementCapturerSourceTest, AlphaAndNot) { … }
TEST_F(HTMLVideoElementCapturerSourceTest, SizeChange) { … }
TEST_F(HTMLVideoElementCapturerSourceTest, TaintedPlayerDoesNotDeliverFrames) { … }
}