chromium/chrome/browser/page_load_metrics/observers/prefetch_page_load_metrics_observer_unittest.cc

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

#include "chrome/browser/page_load_metrics/observers/prefetch_page_load_metrics_observer.h"

#include <memory>

#include "base/command_line.h"
#include "base/memory/raw_ptr.h"
#include "chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h"
#include "components/page_load_metrics/browser/page_load_tracker.h"
#include "components/page_load_metrics/common/page_load_timing.h"
#include "components/page_load_metrics/common/test/page_load_metrics_test_util.h"
#include "components/ukm/test_ukm_recorder.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "services/metrics/public/cpp/ukm_source.h"

class TestPrefetchPageLoadMetricsObserver
    : public PrefetchPageLoadMetricsObserver {};

class PrefetchPageLoadMetricsObserverTest
    : public page_load_metrics::PageLoadMetricsObserverTestHarness {};

// TODO(crbug.com/40899584): Fix and enable this test.
TEST_F(PrefetchPageLoadMetricsObserverTest, DISABLED_DontRecordForNonHttp) {}

TEST_F(PrefetchPageLoadMetricsObserverTest, LastVisitToHost_None) {}

TEST_F(PrefetchPageLoadMetricsObserverTest, LastVisitToHost_Fail) {}

TEST_F(PrefetchPageLoadMetricsObserverTest, LastVisitToHost_NullTime) {}

TEST_F(PrefetchPageLoadMetricsObserverTest, LastVisitToHost_Today) {}

TEST_F(PrefetchPageLoadMetricsObserverTest, LastVisitToHost_Yesterday) {}

TEST_F(PrefetchPageLoadMetricsObserverTest, LastVisitToHost_MaxUKM) {}