#include "third_party/blink/renderer/core/offscreencanvas/offscreen_canvas.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "services/viz/public/mojom/hit_test/hit_test_region_list.mojom-blink.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/frame_test_helpers.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/html/canvas/html_canvas_element.h"
#include "third_party/blink/renderer/modules/canvas/htmlcanvas/html_canvas_element_module.h"
#include "third_party/blink/renderer/modules/canvas/offscreencanvas2d/offscreen_canvas_rendering_context_2d.h"
#include "third_party/blink/renderer/platform/graphics/canvas_resource.h"
#include "third_party/blink/renderer/platform/graphics/gpu/shared_gpu_context.h"
#include "third_party/blink/renderer/platform/graphics/test/fake_gles2_interface.h"
#include "third_party/blink/renderer/platform/graphics/test/fake_web_graphics_context_3d_provider.h"
#include "third_party/blink/renderer/platform/graphics/test/mock_compositor_frame_sink.h"
#include "third_party/blink/renderer/platform/graphics/test/mock_embedded_frame_sink_provider.h"
#include "third_party/blink/renderer/platform/graphics/test/test_webgraphics_shared_image_interface_provider.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support.h"
_;
Combine;
ValuesIn;
namespace blink {
namespace {
constexpr uint32_t kClientId = …;
constexpr uint32_t kSinkId = …;
struct TestParams { … };
class AcceleratedCompositingTestPlatform
: public blink::TestingPlatformSupport { … };
}
class OffscreenCanvasTest : public ::testing::Test,
public ::testing::WithParamInterface<TestParams> { … };
OffscreenCanvasTest::OffscreenCanvasTest() = default;
void OffscreenCanvasTest::SetUp() { … }
void OffscreenCanvasTest::TearDown() { … }
TEST_F(OffscreenCanvasTest, AnimationNotInitiallySuspended) { … }
TEST_P(OffscreenCanvasTest, CompositorFrameOpacity) { … }
const TestParams kTestCases[] = …;
INSTANTIATE_TEST_SUITE_P(…);
}