#include "cc/metrics/scroll_jank_ukm_reporter.h"
#include <memory>
#include <utility>
#include "base/test/simple_test_tick_clock.h"
#include "cc/metrics/predictor_jank_tracker.h"
#include "cc/metrics/scroll_jank_dropped_frame_tracker.h"
#include "cc/metrics/ukm_manager.h"
#include "components/ukm/test_ukm_recorder.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cc {
namespace {
const char kTestUrl[] = …;
const int64_t kTestSourceId = …;
}
class ScrollJankUkmReporterTest : public testing::Test { … };
TEST_F(ScrollJankUkmReporterTest, NoJankUkmRecorded) { … }
TEST_F(ScrollJankUkmReporterTest, NoJankyFrames) { … }
TEST_F(ScrollJankUkmReporterTest, JankyFrames) { … }
TEST_F(ScrollJankUkmReporterTest, NoMissedVsyncs) { … }
TEST_F(ScrollJankUkmReporterTest, OneMissedVsync) { … }
TEST_F(ScrollJankUkmReporterTest, MultipleMissedVsyncs) { … }
TEST_F(ScrollJankUkmReporterTest, NoPredictorJank) { … }
TEST_F(ScrollJankUkmReporterTest, PredictorJankMissedVsync) { … }
TEST_F(ScrollJankUkmReporterTest, PredictorJankNoMissedVsync) { … }
}