#include <stdint.h>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/test/test_mock_time_task_runner.h"
#include "cc/trees/layer_tree_host.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/compositor/compositor_lock.h"
Mock;
_;
namespace ui {
namespace {
class CompositorLockTest : public testing::Test { … };
class MockCompositorLockClient : public ui::CompositorLockClient { … };
}
TEST_F(CompositorLockTest, LocksTimeOut) { … }
TEST_F(CompositorLockTest, MultipleLockClients) { … }
TEST_F(CompositorLockTest, ExtendingLifeOfLockDoesntUseDeadClient) { … }
TEST_F(CompositorLockTest, AddingLocksDoesNotExtendTimeout) { … }
TEST_F(CompositorLockTest, AllowAndExtendTimeout) { … }
TEST_F(CompositorLockTest, ExtendingTimeoutStartingCreatedTime) { … }
TEST_F(CompositorLockTest, AllowButNotExtendTimeout) { … }
TEST_F(CompositorLockTest, AllowingExtendDoesNotUseDeadClient) { … }
TEST_F(CompositorLockTest, LockIsDestroyedDoesntTimeout) { … }
TEST_F(CompositorLockTest, TimeoutEndsWhenLockEnds) { … }
TEST_F(CompositorLockTest, CompositorLockOutlivesManager) { … }
}