#include "third_party/blink/renderer/modules/animationworklet/animation_worklet_global_scope.h"
#include "base/synchronization/waitable_event.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/v8_cache_options.mojom-blink.h"
#include "third_party/blink/public/platform/task_type.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_binding_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/worker_or_worklet_script_controller.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/script/classic_script.h"
#include "third_party/blink/renderer/core/testing/page_test_base.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/modules/animationworklet/animation_worklet.h"
#include "third_party/blink/renderer/modules/animationworklet/animation_worklet_proxy_client.h"
#include "third_party/blink/renderer/modules/animationworklet/animator.h"
#include "third_party/blink/renderer/modules/animationworklet/animator_definition.h"
#include "third_party/blink/renderer/modules/worklet/worklet_thread_test_common.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_loader_options.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/blink/renderer/platform/wtf/text/text_position.h"
#include <memory>
namespace blink {
namespace {
class MockAnimationWorkletProxyClient : public AnimationWorkletProxyClient { … };
std::unique_ptr<AnimationWorkletOutput> ProxyClientMutate(
AnimationWorkletInput& state,
AnimationWorkletGlobalScope* global_scope) { … }
std::unique_ptr<WorkletAnimationEffectTimings> CreateEffectTimings() { … }
}
class AnimationWorkletGlobalScopeTest : public PageTestBase { … };
TEST_F(AnimationWorkletGlobalScopeTest, BasicParsing) { … }
TEST_F(AnimationWorkletGlobalScopeTest, ConstructAndAnimate) { … }
TEST_F(AnimationWorkletGlobalScopeTest, StateExistence) { … }
TEST_F(AnimationWorkletGlobalScopeTest, AnimationOutput) { … }
TEST_F(AnimationWorkletGlobalScopeTest, AnimatorInstanceCreation) { … }
TEST_F(AnimationWorkletGlobalScopeTest, AnimatorInstanceUpdate) { … }
TEST_F(AnimationWorkletGlobalScopeTest,
ShouldRegisterItselfAfterFirstAnimatorRegistration) { … }
}