chromium/components/page_load_metrics/browser/observers/core/unstarted_page_paint_observer_unittest.cc

// Copyright 2024 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/observers/core/unstarted_page_paint_observer.h"

#include "components/page_load_metrics/browser/observers/page_load_metrics_observer_content_test_harness.h"
#include "components/page_load_metrics/browser/page_load_tracker.h"
#include "content/public/test/prerender_test_util.h"
#include "content/public/test/web_contents_tester.h"
#include "content/test/navigation_simulator_impl.h"

namespace {

const char kTestUrl[] =;

}  // namespace

class UnstartedPagePaintObserverTest
    : public page_load_metrics::PageLoadMetricsObserverContentTestHarness {};

TEST_F(UnstartedPagePaintObserverTest,
       PrimaryPageUnstartedPagePaintFiresHistogramToTrue) {}

TEST_F(UnstartedPagePaintObserverTest,
       PrimaryPageAfterFirstContentfulPaintFiresHistogramToFalse) {}

TEST_F(UnstartedPagePaintObserverTest,
       PrimaryPageToBackForwardCacheDoesNotFireHistogram) {}

TEST_F(
    UnstartedPagePaintObserverTest,
    PrimaryPageRestoredFromBackForwardCacheAndUnstartedPagePaintFiresHistogram) {}

TEST_F(
    UnstartedPagePaintObserverTest,
    PrimaryPageFirstContentfulPaintBeforeSentToBackForwardCacheDoesNotFireHistogramAfterRestoringFromBackForwardCache) {}

TEST_F(UnstartedPagePaintObserverTest, PrerenderPageDoesNotFireHistogram) {}