Lines Matching refs:swapinfo
381 SwapInfo swapinfo; in TEST_F() local
386 EXPECT_FALSE(ParseZramMmStat(invalid_input1, &swapinfo)); in TEST_F()
387 EXPECT_FALSE(ParseZramMmStat(invalid_input2, &swapinfo)); in TEST_F()
388 EXPECT_FALSE(ParseZramMmStat(invalid_input3, &swapinfo)); in TEST_F()
392 EXPECT_TRUE(ParseZramMmStat(valid_input1, &swapinfo)); in TEST_F()
393 EXPECT_EQ(17715200ULL, swapinfo.orig_data_size); in TEST_F()
394 EXPECT_EQ(5008166ULL, swapinfo.compr_data_size); in TEST_F()
395 EXPECT_EQ(566062ULL, swapinfo.mem_used_total); in TEST_F()
399 SwapInfo swapinfo; in TEST_F() local
404 EXPECT_FALSE(ParseZramStat(invalid_input1, &swapinfo)); in TEST_F()
405 EXPECT_FALSE(ParseZramStat(invalid_input2, &swapinfo)); in TEST_F()
406 EXPECT_FALSE(ParseZramStat(invalid_input3, &swapinfo)); in TEST_F()
410 EXPECT_TRUE(ParseZramStat(valid_input1, &swapinfo)); in TEST_F()
411 EXPECT_EQ(299ULL, swapinfo.num_reads); in TEST_F()
412 EXPECT_EQ(1ULL, swapinfo.num_writes); in TEST_F()