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

// Copyright 2023 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/non_tab_webui_page_load_metrics_observer.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/test/page_load_metrics_test_util.h"

namespace chrome {

class NonTabPageLoadMetricsObserverTest
    : public page_load_metrics::PageLoadMetricsObserverTestHarness {};

TEST_F(NonTabPageLoadMetricsObserverTest, RecordsHistogramsIfEmbedderIsWebUI) {}

TEST_F(NonTabPageLoadMetricsObserverTest,
       DoesntRecordHistogramsIfEmbedderIsWebUIAndNonChromeScheme) {}

class NonTabPageLoadMetricsObserverNonWebUITest
    : public NonTabPageLoadMetricsObserverTest {};

TEST_F(NonTabPageLoadMetricsObserverNonWebUITest,
       DoesntRecordHistogramsIfEmbedderIsNotWebUI) {}

}  // namespace chrome