• Home
  • Raw
  • Download

Lines Matching refs:a

79     MemMapItem a;  variable
80 EXPECT_EQ(a == "a", false);
81 EXPECT_EQ(a == "b", false);
82 EXPECT_EQ(a == "", true);
84 a.name_ = "a";
85 EXPECT_EQ(a == "a", true);
86 EXPECT_EQ(a == "b", false);
88 a.name_ = "a1";
89 EXPECT_EQ(a == "a", false);
90 EXPECT_EQ(a == "b", false);
92 a.name_ = "1";
93 EXPECT_EQ(a == "a", false);
94 EXPECT_EQ(a == "b", false);
96 a.name_ = "";
97 EXPECT_EQ(a == "a", false);
98 EXPECT_EQ(a == "b", false);
108 MemMapItem a; variable
110 a.begin_ = 100;
111 a.pageoffset_ = 200;
112 EXPECT_EQ(a.FileOffsetFromAddr(0), 100u);
113 EXPECT_EQ(a.FileOffsetFromAddr(10), 110u);
114 EXPECT_EQ(a.FileOffsetFromAddr(100), 200u);
115 EXPECT_EQ(a.FileOffsetFromAddr(1000), 1100u);
117 a.begin_ = 300;
118 a.pageoffset_ = 200;
119 EXPECT_EQ(a.FileOffsetFromAddr(0), std::numeric_limits<uint64_t>::max() - 100u + 1u);
120 EXPECT_EQ(a.FileOffsetFromAddr(10), std::numeric_limits<uint64_t>::max() - 90u + 1u);
121 EXPECT_EQ(a.FileOffsetFromAddr(100), 0u);
122 EXPECT_EQ(a.FileOffsetFromAddr(1000), 900u);
132 MemMapItem a; variable
134 a.begin_ = 0x100;
135 a.pageoffset_ = 0x200;
136 EXPECT_EQ(a.ToString().find("100") != std::string::npos, true);
137 EXPECT_EQ(a.ToString().find("200") != std::string::npos, true);
138 EXPECT_EQ(a.ToString().find("300") != std::string::npos, false);
140 a.begin_ = 0x300;
141 a.pageoffset_ = 0x200;
142 EXPECT_EQ(a.ToString().find("100") != std::string::npos, false);
143 EXPECT_EQ(a.ToString().find("200") != std::string::npos, true);
144 EXPECT_EQ(a.ToString().find("300") != std::string::npos, true);