#include <string_view>
#include "base/base_paths.h"
#include "base/command_line.h"
#include "base/path_service.h"
#include "base/test/bind.h"
#include "base/test/trace_event_analyzer.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/content_navigation_policy.h"
#include "content/public/browser/tracing_controller.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/hit_test_region_observer.h"
#include "content/shell/browser/shell.h"
#include "content/shell/common/shell_switches.h"
#include "content/test/content_browser_test_utils_internal.h"
#include "net/dns/mock_host_resolver.h"
#include "services/metrics/public/cpp/ukm_builders.h"
namespace content {
class PerformanceTimelineBrowserTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PerformanceTimelineBrowserTest,
NoResourceTimingEntryForFileProtocol) { … }
class PerformanceTimelineLCPStartTimePrecisionBrowserTest
: public PerformanceTimelineBrowserTest { … };
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#define MAYBE_LCPStartTimePrecision …
#else
#define MAYBE_LCPStartTimePrecision …
#endif
IN_PROC_BROWSER_TEST_F(PerformanceTimelineLCPStartTimePrecisionBrowserTest,
MAYBE_LCPStartTimePrecision) { … }
class PerformanceTimelineNavigationIdBrowserTest
: public PerformanceTimelineBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PerformanceTimelineNavigationIdBrowserTest,
BackForwardCacheRestore) { … }
class PerformanceTimelinePrefetchTransferSizeBrowserTest
: public PerformanceTimelineBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PerformanceTimelinePrefetchTransferSizeBrowserTest,
PrefetchTransferSize) { … }
class PerformanceTimelineBackForwardCacheRestorationBrowserTest
: public PerformanceTimelineBrowserTest { … };
IN_PROC_BROWSER_TEST_F(
PerformanceTimelineBackForwardCacheRestorationBrowserTest,
Create) { … }
class PerformanceEventTimingBrowserTest
: public PerformanceTimelineBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PerformanceEventTimingBrowserTest,
RecordingContinuesWhenBufferIsFull) { … }
}