#include "components/performance_manager/public/metrics/metrics_collector.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "build/build_config.h"
#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/graph/process_node_impl.h"
#include "components/performance_manager/test_support/graph_test_harness.h"
#include "components/ukm/test_ukm_recorder.h"
#include "content/public/common/process_type.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "url/gurl.h"
namespace performance_manager {
ContentType;
ElementsAre;
Pair;
const base::TimeDelta kTestMetricsReportDelayTimeout = …;
const char kHtmlMimeType[] = …;
const blink::mojom::PermissionStatus kAskNotificationPermission = …;
class MetricsCollectorTest : public GraphTestHarness { … };
TEST_F(MetricsCollectorTest, ProcessLifetime_LaunchAndExit) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_LaunchAndDelete) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_ExitWithoutLaunch) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_NoLaunchAndNoExit) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_Extension) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_Extension_Mixed) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_Worker) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_Speculative) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_Empty) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_MainFrame) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_MainFrame_Mixed) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_Subframe_Ad) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_Subframe_NoAd) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_Subframe_NoAd_Mixed) { … }
TEST_F(MetricsCollectorTest, ProcessLifetime_Utility) { … }
TEST_F(MetricsCollectorTest, NewNavigationWithSameOriginTab) { … }
}