#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "cc/trees/frame_rate_estimator.h"
#include <memory>
#include "base/test/scoped_feature_list.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/test/test_simple_task_runner.h"
#include "base/time/time.h"
#include "cc/base/features.h"
#include "components/viz/common/frame_sinks/begin_frame_args.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
namespace {
class FrameRateEstimatorTest : public testing::Test { … };
TEST_F(FrameRateEstimatorTest, ToggleEstimationEnabled) { … }
TEST_F(FrameRateEstimatorTest, FrameHistoryUsed) { … }
TEST_F(FrameRateEstimatorTest, InputPriorityMode) { … }
TEST_F(FrameRateEstimatorTest, RafAtHalfFps) { … }
TEST_F(FrameRateEstimatorTest, ThrottleWhenManyDidNotProduceFrame) { … }
TEST_F(FrameRateEstimatorTest, ManyDidNotProduceFrameWhenInput) { … }
}
}