#include "chrome/browser/metrics/pressure/pressure_metrics.h"
#include <optional>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/metrics/histogram_tester.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const char kCPUPressureHistogramName[] = …;
}
TEST(PressureMetricsTest, ParseInvalidPressureFile) { … }
TEST(PressureMetricsTest, ParseValidPressureFile) { … }
TEST(PressureMetricsTest, ParseValidPressureFileAndPressureValues) { … }
TEST(PressureMetricsTest, MetricsAreEmitted) { … }