chromium/ui/base/prediction/prediction_metrics_handler_unittest.cc

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

#include "ui/base/prediction/prediction_metrics_handler.h"

#include <memory>

#include "base/test/metrics/histogram_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/prediction/input_predictor_unittest_helpers.h"
#include "ui/base/prediction/prediction_unittest_helpers.h"

Bucket;
ElementsAre;

namespace ui {
namespace test {
namespace {

base::TimeTicks MillisecondsToTestTimeTicks(int64_t ms) {}

}  // namespace

class PredictionMetricsHandlerTest : public testing::Test {};

TEST_F(PredictionMetricsHandlerTest, CanComputeMetricsTest) {}

TEST_F(PredictionMetricsHandlerTest, InterpolationTest) {}
// For test purpose and simplify, we are predicted in the middle of 2 real
// events, which is also the frame time (i.e. a prediction of 4 ms)
void AddEvents(PredictionMetricsHandler* metrics_handler) {}

TEST_F(PredictionMetricsHandlerTest, PredictionMetricTest) {}

// Test that it doesn't crash when predicted event is prior to first real event.
TEST_F(PredictionMetricsHandlerTest, PredictedTimePriorToReal) {}

}  // namespace test
}  // namespace ui