#include "chrome/browser/performance_manager/metrics/metrics_provider_desktop.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/performance_manager/public/user_tuning/user_performance_tuning_manager.h"
#include "chrome/browser/performance_manager/test_support/fake_frame_throttling_delegate.h"
#include "chrome/browser/performance_manager/test_support/test_user_performance_tuning_manager_environment.h"
#include "components/performance_manager/public/features.h"
#include "components/performance_manager/public/user_tuning/prefs.h"
#include "components/prefs/testing_pref_service.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
class PerformanceManagerMetricsProviderDesktopTest : public testing::Test { … };
TEST_F(PerformanceManagerMetricsProviderDesktopTest, TestNormalMode) { … }
TEST_F(PerformanceManagerMetricsProviderDesktopTest, TestMixedMode) { … }
TEST_F(PerformanceManagerMetricsProviderDesktopTest, TestBothModes) { … }
TEST_F(PerformanceManagerMetricsProviderDesktopTest,
TestCorrectlyLoggedDuringShutdown) { … }
TEST_F(PerformanceManagerMetricsProviderDesktopTest,
TestCpuThrottlingMetricRecordedWhereAvailable) { … }