chromium/components/page_load_metrics/renderer/page_timing_metrics_sender_unittest.cc

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

#include "components/page_load_metrics/renderer/page_timing_metrics_sender.h"

#include "base/time/time.h"
#include "base/timer/mock_timer.h"
#include "components/page_load_metrics/common/page_load_metrics.mojom.h"
#include "components/page_load_metrics/renderer/fake_page_timing_sender.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/responsiveness_metrics/user_interaction_latency.h"
#include "third_party/blink/public/common/subresource_load_metrics.h"
#include "third_party/blink/public/common/use_counter/use_counter_feature.h"
#include "third_party/blink/public/mojom/use_counter/use_counter_feature.mojom-shared.h"

CSSSampleId;

namespace page_load_metrics {

// Thin wrapper around PageTimingMetricsSender that provides access to the
// MockOneShotTimer instance.
class TestPageTimingMetricsSender : public PageTimingMetricsSender {};

class PageTimingMetricsSenderTest : public testing::Test {};

TEST_F(PageTimingMetricsSenderTest, Basic) {}

TEST_F(PageTimingMetricsSenderTest, CoalesceMultipleTimings) {}

TEST_F(PageTimingMetricsSenderTest, MultipleTimings) {}

TEST_F(PageTimingMetricsSenderTest, SendTimingOnSendLatest) {}

TEST_F(PageTimingMetricsSenderTest, SendSubresourceLoadMetrics) {}

TEST_F(PageTimingMetricsSenderTest, SendSingleFeature) {}

TEST_F(PageTimingMetricsSenderTest, SendMultipleFeatures) {}

TEST_F(PageTimingMetricsSenderTest, SendDuplicatedFeatures) {}

TEST_F(PageTimingMetricsSenderTest, SendMultipleFeaturesTwice) {}

TEST_F(PageTimingMetricsSenderTest, SendPageRenderData) {}

TEST_F(PageTimingMetricsSenderTest, SendMainFrameIntersectionRect) {}

TEST_F(PageTimingMetricsSenderTest, SendMainFrameViewportRect) {}

TEST_F(PageTimingMetricsSenderTest, SendInteractions) {}

TEST_F(PageTimingMetricsSenderTest, FirstContentfulPaintForcesSend) {}

}  // namespace page_load_metrics