Lines Matching refs:meminfo
94 SystemMemoryInfoKB meminfo; in TEST_F() local
107 EXPECT_FALSE(ParseProcMeminfo(invalid_input1, &meminfo)); in TEST_F()
108 EXPECT_FALSE(ParseProcMeminfo(invalid_input2, &meminfo)); in TEST_F()
109 EXPECT_FALSE(ParseProcMeminfo(invalid_input3, &meminfo)); in TEST_F()
177 EXPECT_TRUE(ParseProcMeminfo(valid_input1, &meminfo)); in TEST_F()
178 EXPECT_EQ(meminfo.total, 3981504); in TEST_F()
179 EXPECT_EQ(meminfo.free, 140764); in TEST_F()
180 EXPECT_EQ(meminfo.available, 535413); in TEST_F()
181 EXPECT_EQ(meminfo.buffers, 116480); in TEST_F()
182 EXPECT_EQ(meminfo.cached, 406160); in TEST_F()
183 EXPECT_EQ(meminfo.active_anon, 2972352); in TEST_F()
184 EXPECT_EQ(meminfo.active_file, 179688); in TEST_F()
185 EXPECT_EQ(meminfo.inactive_anon, 270108); in TEST_F()
186 EXPECT_EQ(meminfo.inactive_file, 202748); in TEST_F()
187 EXPECT_EQ(meminfo.swap_total, 5832280); in TEST_F()
188 EXPECT_EQ(meminfo.swap_free, 3672368); in TEST_F()
189 EXPECT_EQ(meminfo.dirty, 184); in TEST_F()
190 EXPECT_EQ(meminfo.reclaimable, 30936); in TEST_F()
192 EXPECT_EQ(meminfo.shmem, 140204); in TEST_F()
193 EXPECT_EQ(meminfo.slab, 54212); in TEST_F()
196 base::SysInfo::AmountOfAvailablePhysicalMemory(meminfo) / 1024); in TEST_F()
198 meminfo.available = 0; in TEST_F()
200 base::SysInfo::AmountOfAvailablePhysicalMemory(meminfo) / 1024); in TEST_F()
201 meminfo = {}; in TEST_F()
202 EXPECT_TRUE(ParseProcMeminfo(valid_input2, &meminfo)); in TEST_F()
203 EXPECT_EQ(meminfo.total, 255908); in TEST_F()
204 EXPECT_EQ(meminfo.free, 69936); in TEST_F()
205 EXPECT_EQ(meminfo.available, 0); in TEST_F()
206 EXPECT_EQ(meminfo.buffers, 15812); in TEST_F()
207 EXPECT_EQ(meminfo.cached, 115124); in TEST_F()
208 EXPECT_EQ(meminfo.swap_total, 524280); in TEST_F()
209 EXPECT_EQ(meminfo.swap_free, 524200); in TEST_F()
210 EXPECT_EQ(meminfo.dirty, 4); in TEST_F()
212 base::SysInfo::AmountOfAvailablePhysicalMemory(meminfo) / 1024); in TEST_F()