#include "cc/trees/tree_synchronizer.h"
#include <stddef.h>
#include <algorithm>
#include <memory>
#include <set>
#include <utility>
#include <vector>
#include "base/containers/contains.h"
#include "base/format_macros.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "cc/animation/animation_host.h"
#include "cc/layers/layer.h"
#include "cc/layers/layer_impl.h"
#include "cc/layers/picture_layer.h"
#include "cc/test/animation_test_common.h"
#include "cc/test/fake_content_layer_client.h"
#include "cc/test/fake_impl_task_runner_provider.h"
#include "cc/test/fake_layer_tree_host.h"
#include "cc/test/fake_rendering_stats_instrumentation.h"
#include "cc/test/layer_test_common.h"
#include "cc/test/stub_layer_tree_host_single_thread_client.h"
#include "cc/test/test_task_graph_runner.h"
#include "cc/trees/compositor_commit_data.h"
#include "cc/trees/effect_node.h"
#include "cc/trees/scroll_node.h"
#include "cc/trees/single_thread_proxy.h"
#include "cc/trees/task_runner_provider.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
namespace {
bool AreScrollOffsetsEqual(const SyncedScrollOffset* a,
const SyncedScrollOffset* b) { … }
class MockLayerImpl : public LayerImpl { … };
class MockLayer : public Layer { … };
void ExpectTreesAreIdentical(Layer* root_layer,
LayerImpl* root_layer_impl,
LayerTreeImpl* tree_impl) { … }
class TreeSynchronizerTest : public testing::Test { … };
TEST_F(TreeSynchronizerTest, SyncNullTree) { … }
TEST_F(TreeSynchronizerTest, SyncSimpleTreeFromEmpty) { … }
TEST_F(TreeSynchronizerTest, SyncSimpleTreeAndPushPropertiesFromEmpty) { … }
TEST_F(TreeSynchronizerTest, SyncSimpleTreeReusingLayers) { … }
TEST_F(TreeSynchronizerTest, SyncSimpleTreeAndTrackStackingOrderChange) { … }
TEST_F(TreeSynchronizerTest, SyncSimpleTreeAndProperties) { … }
TEST_F(TreeSynchronizerTest, ReuseLayerImplsAfterStructuralChange) { … }
TEST_F(TreeSynchronizerTest, SyncSimpleTreeThenDestroy) { … }
TEST_F(TreeSynchronizerTest, SyncMaskLayer) { … }
TEST_F(TreeSynchronizerTest, SynchronizeCurrentlyScrollingNode) { … }
TEST_F(TreeSynchronizerTest, SynchronizeScrollTreeScrollOffsetMap) { … }
TEST_F(TreeSynchronizerTest, RefreshPropertyTreesCachedData) { … }
TEST_F(TreeSynchronizerTest, RoundedScrollDeltasOnCommit) { … }
TEST_F(TreeSynchronizerTest, PreserveFractionalScrollDeltasOnCommit) { … }
}
}