chromium/cc/metrics/predictor_jank_tracker_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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "cc/metrics/predictor_jank_tracker.h"

#include <memory>
#include <string>
#include <vector>

#include "base/strings/string_number_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/test_trace_processor.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cc {

class PredictorJankTrackerTest : public testing::Test {};

TEST_F(PredictorJankTrackerTest, BasicNonMissedUpperJankCase) {}

TEST_F(PredictorJankTrackerTest, BasicNoMissedSlowUpperJankCase) {}

TEST_F(PredictorJankTrackerTest, BasicMissedSlowUpperJankCase) {}

TEST_F(PredictorJankTrackerTest, BasicMissedUpperJankCase) {}

TEST_F(PredictorJankTrackerTest, NegativeNoJankFrame) {}

TEST_F(PredictorJankTrackerTest, PositiveNoJankFrame) {}

TEST_F(PredictorJankTrackerTest, BasicNonMissedLowerJankCase) {}

TEST_F(PredictorJankTrackerTest, BasicMissedLowerJankCase) {}

TEST_F(PredictorJankTrackerTest, BasicNonMissedUpperJankCaseWithTracing) {}

TEST_F(PredictorJankTrackerTest, NoReportingDirectionChange) {}

TEST_F(PredictorJankTrackerTest, JankyFramePercentageEmitted) {}

TEST_F(PredictorJankTrackerTest, JankyFramePercentageNotEmitted) {}

TEST_F(PredictorJankTrackerTest, JankyFramePercentageEmittedTwice) {}

TEST_F(PredictorJankTrackerTest, JankyFramePercentageEmittedWhenReset) {}

// Verify that the stdlib implementation of this metric is consistent with
// PredictorJankTracker.
TEST_F(PredictorJankTrackerTest, VerifySqlThresholds) {}

TEST_F(PredictorJankTrackerTest, VerifySqlPredictorJank) {}

}  // namespace cc