#include "cc/metrics/compositor_timing_history.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/time/time.h"
#include "cc/base/features.h"
#include "cc/debug/rendering_stats_instrumentation.h"
#include "cc/metrics/dropped_frame_counter.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
namespace {
class CompositorTimingHistoryTest;
class TestCompositorTimingHistory : public CompositorTimingHistory { … };
class CompositorTimingHistoryTest : public testing::Test { … };
base::TimeTicks TestCompositorTimingHistory::Now() const { … }
TEST_F(CompositorTimingHistoryTest, AllSequential_Commit) { … }
TEST_F(CompositorTimingHistoryTest, AllSequential_BeginMainFrameAborted) { … }
TEST_F(CompositorTimingHistoryTest, BeginMainFrame_CriticalFaster) { … }
TEST_F(CompositorTimingHistoryTest, BeginMainFrames_OldCriticalSlower) { … }
TEST_F(CompositorTimingHistoryTest, BeginMainFrames_NewCriticalSlower) { … }
}
}