• Home
  • Raw
  • Download

Lines Matching refs:memory_

41   static void SetUpTestSuite() { memory_.reset(new MemoryFake); }  in SetUpTestSuite()
131 static std::shared_ptr<Memory> memory_; member in unwindstack::ElfCacheTest
134 std::shared_ptr<Memory> ElfCacheTest::memory_; member in unwindstack::ElfCacheTest
137 Elf* elf_one = maps_->Find(0x1000)->GetElf(memory_, ARCH_ARM); in TEST_F()
139 Elf* elf_two = maps_->Find(0x2000)->GetElf(memory_, ARCH_ARM); in TEST_F()
141 Elf* elf_three = maps_->Find(0x4000)->GetElf(memory_, ARCH_ARM); in TEST_F()
145 EXPECT_EQ(maps_->Find(0x5000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
150 EXPECT_EQ(maps_->Find(0x10000)->GetElf(memory_, ARCH_ARM), elf_two); in TEST_F()
155 EXPECT_EQ(maps_->Find(0x11000)->GetElf(memory_, ARCH_ARM), elf_one); in TEST_F()
160 EXPECT_EQ(maps_->Find(0x12000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
165 EXPECT_EQ(maps_->Find(0x13000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
172 Elf* elf_three = maps_->Find(0x4000)->GetElf(memory_, ARCH_ARM); in TEST_F()
175 EXPECT_EQ(maps_->Find(0x12000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
182 Elf* elf_three = maps_->Find(0x4000)->GetElf(memory_, ARCH_ARM); in TEST_F()
185 EXPECT_EQ(maps_->Find(0x13000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
192 Elf* elf_three = maps_->Find(0x5000)->GetElf(memory_, ARCH_ARM); in TEST_F()
195 EXPECT_EQ(maps_->Find(0x12000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
202 Elf* elf_three = maps_->Find(0x5000)->GetElf(memory_, ARCH_ARM); in TEST_F()
205 EXPECT_EQ(maps_->Find(0x13000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
212 Elf* app_one_elf1 = maps_->Find(0x7000)->GetElf(memory_, ARCH_ARM); in TEST_F()
214 Elf* app_one_elf2 = maps_->Find(0x8000)->GetElf(memory_, ARCH_ARM); in TEST_F()
216 Elf* app_two_elf1 = maps_->Find(0x9000)->GetElf(memory_, ARCH_ARM); in TEST_F()
218 Elf* app_two_elf2 = maps_->Find(0xb000)->GetElf(memory_, ARCH_ARM); in TEST_F()
222 EXPECT_EQ(maps_->Find(0xa000)->GetElf(memory_, ARCH_ARM), app_two_elf1); in TEST_F()
227 EXPECT_EQ(maps_->Find(0xc000)->GetElf(memory_, ARCH_ARM), app_two_elf2); in TEST_F()
232 EXPECT_EQ(maps_->Find(0x15000)->GetElf(memory_, ARCH_ARM), app_one_elf1); in TEST_F()
237 EXPECT_EQ(maps_->Find(0x16000)->GetElf(memory_, ARCH_ARM), app_one_elf2); in TEST_F()
242 EXPECT_EQ(maps_->Find(0x17000)->GetElf(memory_, ARCH_ARM), app_two_elf1); in TEST_F()
247 EXPECT_EQ(maps_->Find(0x18000)->GetElf(memory_, ARCH_ARM), app_two_elf1); in TEST_F()
252 EXPECT_EQ(maps_->Find(0x19000)->GetElf(memory_, ARCH_ARM), app_two_elf2); in TEST_F()
257 EXPECT_EQ(maps_->Find(0x1a000)->GetElf(memory_, ARCH_ARM), app_two_elf2); in TEST_F()
264 Elf* app_two_elf1 = maps_->Find(0x9000)->GetElf(memory_, ARCH_ARM); in TEST_F()
266 Elf* app_two_elf2 = maps_->Find(0xb000)->GetElf(memory_, ARCH_ARM); in TEST_F()
269 EXPECT_EQ(maps_->Find(0x17000)->GetElf(memory_, ARCH_ARM), app_two_elf1); in TEST_F()
274 EXPECT_EQ(maps_->Find(0x19000)->GetElf(memory_, ARCH_ARM), app_two_elf2); in TEST_F()
281 Elf* app_two_elf1 = maps_->Find(0x9000)->GetElf(memory_, ARCH_ARM); in TEST_F()
283 Elf* app_two_elf2 = maps_->Find(0xb000)->GetElf(memory_, ARCH_ARM); in TEST_F()
286 EXPECT_EQ(maps_->Find(0x18000)->GetElf(memory_, ARCH_ARM), app_two_elf1); in TEST_F()
291 EXPECT_EQ(maps_->Find(0x1a000)->GetElf(memory_, ARCH_ARM), app_two_elf2); in TEST_F()
298 Elf* app_two_elf1 = maps_->Find(0xa000)->GetElf(memory_, ARCH_ARM); in TEST_F()
300 Elf* app_two_elf2 = maps_->Find(0xc000)->GetElf(memory_, ARCH_ARM); in TEST_F()
303 EXPECT_EQ(maps_->Find(0x17000)->GetElf(memory_, ARCH_ARM), app_two_elf1); in TEST_F()
308 EXPECT_EQ(maps_->Find(0x19000)->GetElf(memory_, ARCH_ARM), app_two_elf2); in TEST_F()
315 Elf* app_two_elf1 = maps_->Find(0x9000)->GetElf(memory_, ARCH_ARM); in TEST_F()
317 Elf* app_two_elf2 = maps_->Find(0xb000)->GetElf(memory_, ARCH_ARM); in TEST_F()
320 EXPECT_EQ(maps_->Find(0x17000)->GetElf(memory_, ARCH_ARM), app_two_elf1); in TEST_F()
325 EXPECT_EQ(maps_->Find(0x19000)->GetElf(memory_, ARCH_ARM), app_two_elf2); in TEST_F()
335 Elf* elf_one = maps_->Find(0x1000)->GetElf(memory_, ARCH_ARM); in TEST_F()
337 Elf* elf_two = maps_->Find(0x2000)->GetElf(memory_, ARCH_ARM); in TEST_F()
339 Elf* elf_three = maps_->Find(0x4000)->GetElf(memory_, ARCH_ARM); in TEST_F()
341 EXPECT_EQ(maps_->Find(0x5000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
343 EXPECT_NE(maps_->Find(0x10000)->GetElf(memory_, ARCH_ARM), elf_two); in TEST_F()
344 EXPECT_NE(maps_->Find(0x11000)->GetElf(memory_, ARCH_ARM), elf_one); in TEST_F()
345 EXPECT_NE(maps_->Find(0x12000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
346 EXPECT_NE(maps_->Find(0x13000)->GetElf(memory_, ARCH_ARM), elf_three); in TEST_F()
348 Elf* app_one_elf1 = maps_->Find(0x7000)->GetElf(memory_, ARCH_ARM); in TEST_F()
350 Elf* app_one_elf2 = maps_->Find(0x8000)->GetElf(memory_, ARCH_ARM); in TEST_F()
352 Elf* app_two_elf1 = maps_->Find(0x9000)->GetElf(memory_, ARCH_ARM); in TEST_F()
354 EXPECT_EQ(maps_->Find(0xa000)->GetElf(memory_, ARCH_ARM), app_two_elf1); in TEST_F()
355 Elf* app_two_elf2 = maps_->Find(0xb000)->GetElf(memory_, ARCH_ARM); in TEST_F()
357 EXPECT_EQ(maps_->Find(0xc000)->GetElf(memory_, ARCH_ARM), app_two_elf2); in TEST_F()
359 EXPECT_NE(maps_->Find(0x15000)->GetElf(memory_, ARCH_ARM), app_one_elf1); in TEST_F()
360 EXPECT_NE(maps_->Find(0x16000)->GetElf(memory_, ARCH_ARM), app_one_elf2); in TEST_F()
361 EXPECT_NE(maps_->Find(0x17000)->GetElf(memory_, ARCH_ARM), app_two_elf1); in TEST_F()
362 EXPECT_NE(maps_->Find(0x18000)->GetElf(memory_, ARCH_ARM), app_two_elf1); in TEST_F()
363 EXPECT_NE(maps_->Find(0x19000)->GetElf(memory_, ARCH_ARM), app_two_elf2); in TEST_F()
364 EXPECT_NE(maps_->Find(0x1a000)->GetElf(memory_, ARCH_ARM), app_two_elf2); in TEST_F()
369 Elf* invalid_elf1 = maps_->Find(0xe000)->GetElf(memory_, ARCH_ARM); in TEST_F()
371 Elf* invalid_elf2 = maps_->Find(0xf000)->GetElf(memory_, ARCH_ARM); in TEST_F()