Lines Matching refs:memory_
45 void SetUp() override { memory_.Clear(); } in SetUp()
56 MemoryFake memory_; member in unwindstack::SymbolsTest
66 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
69 this->memory_.SetMemory(0x2040, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
73 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
78 ASSERT_TRUE(symbols.GetName<TypeParam>(0x500f, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
83 ASSERT_FALSE(symbols.GetName<TypeParam>(0x4fff, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
84 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5010, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
93 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
96 this->memory_.SetMemory(0x2040, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
101 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
107 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
110 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
115 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
118 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
129 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
131 this->memory_.SetMemory(0x2040, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
135 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
137 this->memory_.SetMemory(0x2100, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
141 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
143 this->memory_.SetMemory(0x2230, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
147 ASSERT_TRUE(symbols.GetName<TypeParam>(0x3005, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
152 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5004, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
157 ASSERT_TRUE(symbols.GetName<TypeParam>(0xa011, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
164 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5008, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
169 ASSERT_TRUE(symbols.GetName<TypeParam>(0x3008, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
174 ASSERT_TRUE(symbols.GetName<TypeParam>(0xa01a, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
188 this->memory_.SetMemoryBlock(offset, entry_size, 0); in TYPED_TEST_P()
189 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
191 this->memory_.SetMemory(0x2040, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
195 this->memory_.SetMemoryBlock(offset, entry_size, 0); in TYPED_TEST_P()
196 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
198 this->memory_.SetMemory(0x2100, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
202 this->memory_.SetMemoryBlock(offset, entry_size, 0); in TYPED_TEST_P()
203 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
205 this->memory_.SetMemory(0x2230, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
209 ASSERT_TRUE(symbols.GetName<TypeParam>(0x3005, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
214 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5004, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
219 ASSERT_TRUE(symbols.GetName<TypeParam>(0xa011, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
232 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
236 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
240 this->memory_.SetMemory(0x20fb, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
245 ASSERT_TRUE(symbols_end_at_200.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
248 ASSERT_TRUE(symbols_end_at_200.GetName<TypeParam>(0x3000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
253 ASSERT_FALSE(symbols_end_at_100.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
254 ASSERT_FALSE(symbols_end_at_100.GetName<TypeParam>(0x3000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
266 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
270 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
274 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
279 this->memory_.SetMemory(0xa100, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
281 this->memory_.SetMemory(0xa200, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
283 this->memory_.SetMemory(0xa300, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
288 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
289 ASSERT_TRUE(symbols.GetName<TypeParam>(0x2000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
290 ASSERT_TRUE(symbols.GetName<TypeParam>(0x1000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
291 this->memory_.Clear(); in TYPED_TEST_P()
292 ASSERT_FALSE(symbols.GetName<TypeParam>(0x6000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
295 this->memory_.Clear(); in TYPED_TEST_P()
297 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5001, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
301 ASSERT_TRUE(symbols.GetName<TypeParam>(0x2002, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
305 ASSERT_TRUE(symbols.GetName<TypeParam>(0x1003, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
318 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
324 this->memory_.SetMemory(offset, &sym, sizeof(sym)); in TYPED_TEST_P()
329 this->memory_.SetMemory(0xa100, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
331 this->memory_.SetMemory(0xa200, fake_name.c_str(), fake_name.size() + 1); in TYPED_TEST_P()
335 ASSERT_TRUE(symbols.GetName<TypeParam>(0x1250, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
350 this->memory_.SetMemory(start_offset, &sym, sizeof(sym)); in TYPED_TEST_P()
351 this->memory_.SetMemory(str_offset + 0x100, "global_0"); in TYPED_TEST_P()
360 this->memory_.SetMemory(start_offset, &sym, sizeof(sym)); in TYPED_TEST_P()
361 this->memory_.SetMemory(str_offset + 0x200, "function_0"); in TYPED_TEST_P()
368 this->memory_.SetMemory(start_offset, &sym, sizeof(sym)); in TYPED_TEST_P()
369 this->memory_.SetMemory(str_offset + 0x300, "global_1"); in TYPED_TEST_P()
378 this->memory_.SetMemory(start_offset, &sym, sizeof(sym)); in TYPED_TEST_P()
379 this->memory_.SetMemory(str_offset + 0x400, "function_1"); in TYPED_TEST_P()
382 EXPECT_TRUE(symbols.GetGlobal<TypeParam>(&this->memory_, "global_0", &offset)); in TYPED_TEST_P()
383 EXPECT_TRUE(symbols.GetGlobal<TypeParam>(&this->memory_, "global_1", &offset)); in TYPED_TEST_P()
384 EXPECT_FALSE(symbols.GetGlobal<TypeParam>(&this->memory_, "global_2", &offset)); in TYPED_TEST_P()
385 EXPECT_TRUE(symbols.GetGlobal<TypeParam>(&this->memory_, "global_0", &offset)); in TYPED_TEST_P()
386 EXPECT_TRUE(symbols.GetGlobal<TypeParam>(&this->memory_, "global_1", &offset)); in TYPED_TEST_P()
387 EXPECT_FALSE(symbols.GetGlobal<TypeParam>(&this->memory_, "global_2", &offset)); in TYPED_TEST_P()
389 EXPECT_FALSE(symbols.GetGlobal<TypeParam>(&this->memory_, "function_0", &offset)); in TYPED_TEST_P()
390 EXPECT_FALSE(symbols.GetGlobal<TypeParam>(&this->memory_, "function_1", &offset)); in TYPED_TEST_P()
393 EXPECT_TRUE(symbols.GetName<TypeParam>(0x10002, &this->memory_, &name, &offset)); in TYPED_TEST_P()
397 EXPECT_TRUE(symbols.GetName<TypeParam>(0x12004, &this->memory_, &name, &offset)); in TYPED_TEST_P()
402 this->memory_.Clear(); in TYPED_TEST_P()
403 EXPECT_TRUE(symbols.GetGlobal<TypeParam>(&this->memory_, "global_0", &offset)); in TYPED_TEST_P()
404 EXPECT_TRUE(symbols.GetGlobal<TypeParam>(&this->memory_, "global_1", &offset)); in TYPED_TEST_P()
405 EXPECT_FALSE(symbols.GetGlobal<TypeParam>(&this->memory_, "global_2", &offset)); in TYPED_TEST_P()