#include "cc/metrics/compositor_frame_reporter.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/rand_util.h"
#include "base/ranges/algorithm.h"
#include "base/strings/strcat.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/simple_test_tick_clock.h"
#include "base/time/time.h"
#include "cc/metrics/compositor_frame_reporting_controller.h"
#include "cc/metrics/dropped_frame_counter.h"
#include "cc/metrics/event_metrics.h"
#include "cc/metrics/total_frame_counter.h"
#include "components/viz/common/frame_timing_details.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/types/scroll_input_type.h"
namespace cc {
namespace {
Each;
IsEmpty;
NotNull;
class CompositorFrameReporterTest : public testing::Test { … };
TEST_F(CompositorFrameReporterTest, MainFrameAbortedReportingTest) { … }
TEST_F(CompositorFrameReporterTest, ReplacedByNewReporterReportingTest) { … }
TEST_F(CompositorFrameReporterTest, SubmittedFrameReportingTest) { … }
TEST_F(CompositorFrameReporterTest, SubmittedDroppedFrameReportingTest) { … }
TEST_F(CompositorFrameReporterTest,
EventLatencyTotalForPresentedFrameReported) { … }
TEST_F(CompositorFrameReporterTest,
EventLatencyScrollTotalForPresentedFrameReported) { … }
TEST_F(CompositorFrameReporterTest,
EventLatencyPinchTotalForPresentedFrameReported) { … }
TEST_F(CompositorFrameReporterTest,
EventLatencyForDidNotPresentFrameNotReported) { … }
TEST_F(CompositorFrameReporterTest, PartialUpdateDependentQueues) { … }
TEST_F(CompositorFrameReporterTest, StageLatencyGeneralPrediction) { … }
TEST_F(CompositorFrameReporterTest, StageLatencyAllZeroPrediction) { … }
TEST_F(CompositorFrameReporterTest, StageLatencyLargeDurationPrediction) { … }
TEST_F(CompositorFrameReporterTest, StageLatencyMultiplePrediction) { … }
TEST_F(CompositorFrameReporterTest, EventLatencyDispatchPredictions) { … }
TEST_F(CompositorFrameReporterTest,
EventLatencyDispatchPredictionsWithMissingStages) { … }
TEST_F(CompositorFrameReporterTest, EventLatencyCompositorPredictions) { … }
TEST_F(CompositorFrameReporterTest, EventLatencyMultipleEventTypePredictions) { … }
TEST_F(CompositorFrameReporterTest, EventLatencyAttributionPredictions) { … }
TEST_F(CompositorFrameReporterTest, EventLatencyAttributionChangePredictions) { … }
}
}