chromium/third_party/blink/renderer/core/frame/local_frame_ukm_aggregator_test.cc

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

#include "third_party/blink/renderer/core/frame/local_frame_ukm_aggregator.h"

#include "base/metrics/statistics_recorder.h"
#include "base/strings/stringprintf.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/test_mock_time_task_runner.h"
#include "cc/metrics/begin_main_frame_metrics.h"
#include "components/ukm/test_ukm_recorder.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/metrics/document_update_reason.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_intersection_observer_init.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_document_element.h"
#include "third_party/blink/renderer/core/html/html_frame_owner_element.h"
#include "third_party/blink/renderer/core/paint/timing/paint_timing.h"
#include "third_party/blink/renderer/core/testing/intersection_observer_test_helper.h"
#include "third_party/blink/renderer/core/testing/sim/sim_request.h"
#include "third_party/blink/renderer/core/testing/sim/sim_test.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support_with_mock_scheduler.h"

namespace blink {

class LocalFrameUkmAggregatorTest : public testing::Test {};

TEST_F(LocalFrameUkmAggregatorTest, EmptyEventsNotRecorded) {}

TEST_F(LocalFrameUkmAggregatorTest, FirstFrameIsRecorded) {}

TEST_F(LocalFrameUkmAggregatorTest, PreFrameWorkIsRecorded) {}

TEST_F(LocalFrameUkmAggregatorTest, PreAndPostFCPAreRecorded) {}

TEST_F(LocalFrameUkmAggregatorTest, AggregatedPreFCPEventRecorded) {}

TEST_F(LocalFrameUkmAggregatorTest, ForcedLayoutReasonsReportOnlyMetric) {}

TEST_F(LocalFrameUkmAggregatorTest, LatencyDataIsPopulated) {}

TEST_F(LocalFrameUkmAggregatorTest, SampleDoesChange) {}

TEST_F(LocalFrameUkmAggregatorTest, IterativeTimer) {}

TEST_F(LocalFrameUkmAggregatorTest, IntersectionObserverSamplePeriod) {}

class LocalFrameUkmAggregatorSimTest : public SimTest {};

TEST_F(LocalFrameUkmAggregatorSimTest, GetUkmAggregator) {}

TEST_F(LocalFrameUkmAggregatorSimTest, IntersectionObserverCounts) {}

TEST_F(LocalFrameUkmAggregatorSimTest, IntersectionObserverCountsInChildFrame) {}

TEST_F(LocalFrameUkmAggregatorSimTest, LocalFrameRootPrePostFCPMetrics) {}

TEST_F(LocalFrameUkmAggregatorSimTest, PrePostFCPMetricsWithChildFrameFCP) {}

TEST_F(LocalFrameUkmAggregatorSimTest, VisualUpdateDelay) {}

TEST_F(LocalFrameUkmAggregatorSimTest, SVGImageMetricsAreNotRecorded) {}

enum SyncScrollMutation {};

enum SyncScrollPositionAccess {};

enum SyncScrollHandlerStrategy {};

SyncScrollHeuristicTestConfig;

class LocalFrameUkmAggregatorSyncScrollTest
    : public LocalFrameUkmAggregatorSimTest,
      public ::testing::WithParamInterface<SyncScrollHeuristicTestConfig> {};

TEST_P(LocalFrameUkmAggregatorSyncScrollTest, SyncScrollHeuristicRAFSetTop) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace blink