chromium/cc/metrics/scroll_jank_ukm_reporter_unittest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;
}  // namespace

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) {}

}  // namespace cc