#include "ui/compositor/layer_owner.h"
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/null_task_runner.h"
#include "cc/animation/animation.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/compositor/compositor.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_animation_observer.h"
#include "ui/compositor/layer_animator.h"
#include "ui/compositor/layer_delegate.h"
#include "ui/compositor/scoped_animation_duration_scale_mode.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/compositor/test/test_context_factories.h"
#include "ui/gfx/native_widget_types.h"
namespace ui {
namespace {
class TestLayerAnimationObserver : public ImplicitAnimationObserver { … };
class LayerOwnerForTesting : public LayerOwner { … };
class LayerOwnerTestWithCompositor : public testing::Test { … };
LayerOwnerTestWithCompositor::LayerOwnerTestWithCompositor() { … }
LayerOwnerTestWithCompositor::~LayerOwnerTestWithCompositor() { … }
void LayerOwnerTestWithCompositor::SetUp() { … }
void LayerOwnerTestWithCompositor::TearDown() { … }
}
TEST_F(LayerOwnerTestWithCompositor, RecreateRootLayerWithCompositor) { … }
TEST_F(LayerOwnerTestWithCompositor, RecreateRootLayerDuringAnimation) { … }
TEST_F(LayerOwnerTestWithCompositor, RecreateNonRootLayerDuringAnimation) { … }
TEST_F(LayerOwnerTestWithCompositor, DetachTimelineOnAnimatorDeletion) { … }
TEST_F(LayerOwnerTestWithCompositor,
AttachTimelineIfAnimatorCreatedAfterSetCompositor) { … }
namespace {
class TestLayerDelegate : public LayerDelegate { … };
}
TEST_F(LayerOwnerTestWithCompositor, DeleteOnLayerBoundsChanged) { … }
}