Lines Matching refs:info
31 RegsInfo<uint32_t> info(®s); in TEST() local
34 ASSERT_FALSE(info.IsSaved(1)); in TEST()
35 ASSERT_EQ(0x100U, info.Get(1)); in TEST()
36 ASSERT_EQ(10, info.Total()); in TEST()
38 uint32_t* value = info.Save(1); in TEST()
41 ASSERT_TRUE(info.IsSaved(1)); in TEST()
42 ASSERT_EQ(0x100U, info.Get(1)); in TEST()
48 RegsInfo<uint64_t> info(®s); in TEST() local
51 ASSERT_FALSE(info.IsSaved(3)); in TEST()
52 ASSERT_EQ(0x300U, info.Get(3)); in TEST()
53 ASSERT_EQ(20, info.Total()); in TEST()
55 uint64_t* value = info.Save(3); in TEST()
58 ASSERT_TRUE(info.IsSaved(3)); in TEST()
59 ASSERT_EQ(0x300U, info.Get(3)); in TEST()
65 RegsInfo<uint64_t> info(®s); in TEST() local
69 ASSERT_EQ(i * 0x100, info.Get(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
73 ASSERT_FALSE(info.IsSaved(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
74 uint64_t* reg = info.Save(i); in TEST()
81 ASSERT_TRUE(info.IsSaved(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
82 ASSERT_EQ(i * 0x100, info.Get(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
90 RegsInfo<uint64_t> info(®s); in TEST_F() local
92 ASSERT_DEATH(info.Save(RegsInfo<uint64_t>::MAX_REGISTERS), ""); in TEST_F()