| 31 | }; |
| 32 | |
| 33 | TEST_F(SystemStateInfoTest, FirstCallReturnsZero) { |
| 34 | const SystemStateInfo::CpuUsageRatios& r = info.GetCpuUsageRatios(); |
| 35 | EXPECT_EQ(0, r.user.Load() + r.system.Load() + r.iowait.Load()); |
| 36 | |
| 37 | const SystemStateInfo::NetworkUsage& n = info.GetNetworkUsage(); |
| 38 | EXPECT_EQ(0, n.rx_rate.Load() + n.tx_rate.Load()); |
| 39 | } |
| 40 | |
| 41 | // Smoke test to make sure that we read non-zero values from /proc/stat. |
| 42 | TEST_F(SystemStateInfoTest, ReadProcStat) { |
nothing calls this directly
no test coverage detected