#include "third_party/blink/renderer/core/dom/scripted_animation_controller.h"
#include <memory>
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/dom/events/event_target.h"
#include "third_party/blink/renderer/core/dom/events/native_event_listener.h"
#include "third_party/blink/renderer/core/dom/frame_request_callback_collection.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/page/page_animator.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
class ScriptedAnimationControllerTest : public testing::Test { … };
void ScriptedAnimationControllerTest::SetUp() { … }
namespace {
class TaskOrderObserver { … };
}
TEST_F(ScriptedAnimationControllerTest, EnqueueOneTask) { … }
TEST_F(ScriptedAnimationControllerTest, EnqueueTwoTasks) { … }
namespace {
void EnqueueTask(ScriptedAnimationController* controller,
TaskOrderObserver* observer,
int id) { … }
}
TEST_F(ScriptedAnimationControllerTest, EnqueueWithinTask) { … }
namespace {
class RunTaskEventListener final : public NativeEventListener { … };
}
TEST_F(ScriptedAnimationControllerTest, EnqueueTaskAndEvent) { … }
namespace {
class RunTaskCallback final : public FrameCallback { … };
}
TEST_F(ScriptedAnimationControllerTest, RegisterCallbackAndEnqueueTask) { … }
TEST_F(ScriptedAnimationControllerTest, TestHasCallback) { … }
TEST_F(ScriptedAnimationControllerTest, TestIsInRequestAnimationFrame) { … }
}