Searched refs:CpuShares (Results 1 – 3 of 3) sorted by relevance
29 int CompareCpuShares(CpuShares shares_lhs, CpuShares shares_rhs) { in CompareCpuShares()36 EXPECT_LT(CompareCpuShares(CpuShares::kLow, CpuShares::kNormal), 0); in TEST()37 EXPECT_GT(CompareCpuShares(CpuShares::kNormal, CpuShares::kLow), 0); in TEST()38 EXPECT_EQ(CompareCpuShares(CpuShares::kNormal, CpuShares::kNormal), 0); in TEST()39 EXPECT_GT(CompareCpuShares(CpuShares::kHigh, CpuShares::kNormal), 0); in TEST()
27 enum class CpuShares : int { enum46 bool SetCpuShares(CpuShares shares);54 CpuShares shares_ = CpuShares::kNormal;
40 CPULimiter::SetCpuShares(CpuShares::kNormal); in ~CPULimiter()52 SetCpuShares(CpuShares::kLow); in StartLimiter()62 SetCpuShares(CpuShares::kNormal); in StopLimiter()65 bool CPULimiter::SetCpuShares(CpuShares shares) { in SetCpuShares()84 SetCpuShares(CpuShares::kNormal); in StopLimiterCallback()