#include <stdint.h>
#include <iostream>
#include <limits>
#include <set>
#include <vector>
#include "base/location.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "cc/animation/animation_host.h"
#include "cc/layers/solid_color_layer.h"
#include "cc/layers/surface_layer.h"
#include "cc/layers/surface_layer_impl.h"
#include "cc/test/fake_impl_task_runner_provider.h"
#include "cc/test/fake_layer_tree_host.h"
#include "cc/test/fake_layer_tree_host_client.h"
#include "cc/test/fake_layer_tree_host_impl.h"
#include "cc/test/layer_tree_test.h"
#include "cc/test/test_task_graph_runner.h"
#include "cc/trees/layer_tree_host.h"
#include "components/viz/common/quads/compositor_frame.h"
#include "components/viz/common/surfaces/surface_info.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
namespace {
_;
Eq;
ElementsAre;
SizeIs;
constexpr viz::FrameSinkId kArbitraryFrameSinkId(1, 1);
class SurfaceLayerTest : public testing::Test { … };
TEST_F(SurfaceLayerTest, UseExistingDeadlineForNewSurfaceLayer) { … }
TEST_F(SurfaceLayerTest, UseInfiniteDeadlineForNewSurfaceLayer) { … }
TEST_F(SurfaceLayerTest, ResetDeadlineOnInvalidSurfaceId) { … }
TEST_F(SurfaceLayerTest, PushProperties) { … }
TEST_F(SurfaceLayerTest, CheckSurfaceReferencesForClonedLayer) { … }
TEST_F(SurfaceLayerTest, CheckNeedsSurfaceIdsSyncForClonedLayers) { … }
}
}