#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) { … }
}