#include "components/page_load_metrics/browser/observers/uma_file_and_data_page_load_metrics_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 "components/page_load_metrics/common/test/page_load_metrics_test_util.h"
#include "content/public/browser/web_contents.h"
namespace {
const char kDefaultDataUrl[] = …;
const char kDefaultFileUrl[] = …;
}
class UmaFileAndDataPageLoadMetricsObserverTest
: public page_load_metrics::PageLoadMetricsObserverContentTestHarness { … };
TEST_F(UmaFileAndDataPageLoadMetricsObserverTest,
RelevantFirstContentfulPaintMetricsAreRecordedForDataScheme) { … }
TEST_F(UmaFileAndDataPageLoadMetricsObserverTest,
RelevantBackgroundMetricsAreRecordedForDataScheme) { … }
TEST_F(UmaFileAndDataPageLoadMetricsObserverTest,
RelevantFirstContentfulPaintMetricsAreRecordedForFileScheme) { … }
TEST_F(UmaFileAndDataPageLoadMetricsObserverTest,
RelevantBackgroundMetricsAreRecordedForFileScheme) { … }