#include "third_party/blink/renderer/modules/worklet/animation_and_paint_worklet_thread.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_url_request.h"
#include "third_party/blink/renderer/bindings/core/v8/module_record.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_gc_controller.h"
#include "third_party/blink/renderer/bindings/core/v8/worker_or_worklet_script_controller.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/core/script/js_module_script.h"
#include "third_party/blink/renderer/core/script/script.h"
#include "third_party/blink/renderer/core/testing/module_test_base.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/core/workers/parent_execution_context_task_runners.h"
#include "third_party/blink/renderer/core/workers/worker_backing_thread.h"
#include "third_party/blink/renderer/core/workers/worker_or_worklet_global_scope.h"
#include "third_party/blink/renderer/core/workers/worker_reporting_proxy.h"
#include "third_party/blink/renderer/core/workers/worklet_module_responses_map.h"
#include "third_party/blink/renderer/core/workers/worklet_thread_holder.h"
#include "third_party/blink/renderer/modules/animationworklet/animation_worklet_proxy_client.h"
#include "third_party/blink/renderer/modules/worklet/worklet_thread_test_common.h"
#include "third_party/blink/renderer/platform/bindings/source_location.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_loader_options.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/blink/renderer/platform/wtf/text/text_position.h"
namespace blink {
namespace {
class TestAnimationWorkletProxyClient : public AnimationWorkletProxyClient { … };
}
class AnimationAndPaintWorkletThreadTest : public PageTestBase,
public ModuleTestBase { … };
TEST_F(AnimationAndPaintWorkletThreadTest, Basic) { … }
TEST_F(AnimationAndPaintWorkletThreadTest, CreateSecondAndTerminateFirst) { … }
TEST_F(AnimationAndPaintWorkletThreadTest, TerminateFirstAndCreateSecond) { … }
TEST_F(AnimationAndPaintWorkletThreadTest,
CreatingSecondDuringTerminationOfFirst) { … }
TEST_F(AnimationAndPaintWorkletThreadTest,
WorkletThreadHolderIsRefCountedProperly) { … }
}