Searched refs:stat_path (Results 1 – 2 of 2) sorted by relevance
211 stat_path = '/sys/class/net/%s/statistics/' % mock_netif._name214 os.listdir.expect_call(stat_path).and_return(())219 os.listdir.expect_call(stat_path).and_return(('some_stat',))221 net_utils.open.expect_call(stat_path + 'some_stat', 'r').and_return(None)226 os.listdir.expect_call(stat_path).and_return(('some_stat',))228 net_utils.open.expect_call(stat_path + 'some_stat', 'r').and_return(f)235 os.listdir.expect_call(stat_path).and_return(('stat1','stat2'))237 net_utils.open.expect_call(stat_path + 'stat1', 'r').and_return(f)240 net_utils.open.expect_call(stat_path + 'stat2', 'r').and_return(f)251 stat_path = '/sys/class/net/%s/statistics/' % mock_netif._name[all …]
150 FilePath stat_path = in GetProcessCPU() local152 if (ReadFileToString(stat_path, &stat)) { in GetProcessCPU()