#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/system_cpu/cpu_probe_linux.h"
#include <memory>
#include <optional>
#include <string>
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/task_environment.h"
#include "base/test/test_timeouts.h"
#include "base/threading/platform_thread.h"
#include "components/system_cpu/cpu_probe.h"
#include "components/system_cpu/cpu_sample.h"
#include "components/system_cpu/pressure_test_support.h"
#include "components/system_cpu/procfs_stat_cpu_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace system_cpu {
class CpuProbeLinuxTest : public testing::Test { … };
TEST_F(CpuProbeLinuxTest, ProductionDataNoCrash) { … }
TEST_F(CpuProbeLinuxTest, OneCoreFullInfo) { … }
TEST_F(CpuProbeLinuxTest, RepeatedSamples) { … }
TEST_F(CpuProbeLinuxTest, TwoCoresFullInfo) { … }
TEST_F(CpuProbeLinuxTest, TwoCoresDifferentBaselines) { … }
TEST_F(CpuProbeLinuxTest, TwoCoresSecondCoreMissingStat) { … }
TEST_F(CpuProbeLinuxTest, TwoCoresSecondCoreAddedStat) { … }
TEST_F(CpuProbeLinuxTest, ParseErrorInBaseline) { … }
TEST_F(CpuProbeLinuxTest, ParseErrorInSample) { … }
TEST_F(CpuProbeLinuxTest, ZeroAndNegativeDeltas) { … }
}