chromium/components/page_load_metrics/browser/page_load_tracker_unittest.cc

// Copyright 2022 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/browser/page_load_tracker.h"

#include "base/containers/flat_map.h"
#include "base/memory/raw_ptr.h"
#include "components/page_load_metrics/browser/observers/page_load_metrics_observer_content_test_harness.h"
#include "content/public/test/fenced_frame_test_util.h"
#include "content/public/test/navigation_simulator.h"
#include "content/public/test/prerender_test_util.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "services/metrics/public/cpp/ukm_source_id.h"

namespace page_load_metrics {

namespace {

const char kTestUrl[] =;

struct PageLoadMetricsObserverEvents final {};

ScopedPrerenderWebContentsDelegate;

class TestPageLoadMetricsObserver final : public PageLoadMetricsObserver {};

class PageLoadTrackerTest : public PageLoadMetricsObserverContentTestHarness {};

TEST_F(PageLoadTrackerTest, PrimaryPageType) {}

TEST_F(PageLoadTrackerTest, PrimaryPageTypeDataScheme) {}

TEST_F(PageLoadTrackerTest, EventForwarding) {}

TEST_F(PageLoadTrackerTest, PrerenderPageType) {}

TEST_F(PageLoadTrackerTest, FencedFramesPageType) {}

TEST_F(PageLoadTrackerTest, StopObservingOnPrerender) {}

TEST_F(PageLoadTrackerTest, StopObservingOnFencedFrames) {}

TEST_F(PageLoadTrackerTest, ResumeOnPrerenderActivation) {}
}  // namespace

}  // namespace page_load_metrics