/system/core/libunwindstack/tests/ |
D | RegsTest.cpp | 41 elf_.reset(new ElfFake(memory_)); in SetUp() 42 elf_interface_ = new ElfInterfaceFake(elf_->memory()); in SetUp() 43 elf_->FakeSetInterface(elf_interface_); in SetUp() 48 std::unique_ptr<ElfFake> elf_; member in unwindstack::RegsTest 97 EXPECT_EQ(4U, arm64.GetPcAdjustment(0x10, elf_.get())); in TEST_F() 98 EXPECT_EQ(4U, arm64.GetPcAdjustment(0x4, elf_.get())); in TEST_F() 99 EXPECT_EQ(0U, arm64.GetPcAdjustment(0x3, elf_.get())); in TEST_F() 100 EXPECT_EQ(0U, arm64.GetPcAdjustment(0x2, elf_.get())); in TEST_F() 101 EXPECT_EQ(0U, arm64.GetPcAdjustment(0x1, elf_.get())); in TEST_F() 102 EXPECT_EQ(0U, arm64.GetPcAdjustment(0x0, elf_.get())); in TEST_F() [all …]
|
D | MapInfoGetLoadBiasTest.cpp | 51 elf_ = new ElfFake(new MemoryFake); in SetUp() 52 elf_container_.reset(elf_); in SetUp() 60 ElfFake* elf_; member in unwindstack::MapInfoGetLoadBiasTest 74 elf_->FakeSetLoadBias(0); in TEST_F() 77 elf_->FakeSetLoadBias(0x1000); in TEST_F() 84 elf_->FakeSetLoadBias(0); in TEST_F() 88 elf_->FakeSetLoadBias(0x1000); in TEST_F() 126 elf_->FakeSetLoadBias(0x1000); in TEST_F()
|
D | RegsStepIfSignalHandlerTest.cpp | 43 elf_.reset(new Elf(elf_memory_)); in SetUp() 51 std::unique_ptr<Elf> elf_; member in unwindstack::RegsStepIfSignalHandlerTest 66 ASSERT_TRUE(regs.StepIfSignalHandler(0x5000, elf_.get(), &process_memory_)); in ArmStepIfSignalHandlerNonRt() 96 ASSERT_TRUE(regs.StepIfSignalHandler(0x5000, elf_.get(), &process_memory_)); in ArmStepIfSignalHandlerRt() 126 ASSERT_TRUE(regs.StepIfSignalHandler(0x8000, elf_.get(), &process_memory_)); in TEST_F() 144 ASSERT_TRUE(regs.StepIfSignalHandler(0x4100, elf_.get(), &process_memory_)); in TEST_F() 172 ASSERT_TRUE(regs.StepIfSignalHandler(0x4100, elf_.get(), &process_memory_)); in TEST_F() 197 ASSERT_TRUE(regs.StepIfSignalHandler(0x7000, elf_.get(), &process_memory_)); in TEST_F() 216 ASSERT_TRUE(regs.StepIfSignalHandler(0x8000, elf_.get(), &process_memory_)); in TEST_F() 235 ASSERT_TRUE(regs.StepIfSignalHandler(0x8000, elf_.get(), &process_memory_)); in TEST_F() [all …]
|
D | MapInfoGetElfTest.cpp | 67 TemporaryFile elf_; member in unwindstack::MapInfoGetElfTest 158 MapInfo info(nullptr, 0x1000, 0x1000, 0, PROT_READ, elf_.path); in TEST_F() 162 ASSERT_TRUE(android::base::WriteFully(elf_.fd, &ehdr, sizeof(ehdr))); in TEST_F() 185 MapInfo info(nullptr, 0x1000, 0x2000, 0x100, PROT_READ, elf_.path); in TEST_F() 192 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 214 MapInfo info(nullptr, 0x1000, 0x2000, 0x2000, PROT_READ, elf_.path); in TEST_F() 221 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 244 MapInfo info(nullptr, 0x5000, 0x6000, 0x1000, PROT_READ, elf_.path); in TEST_F() 254 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 272 MapInfo info(nullptr, 0x7000, 0x8000, 0x1000, PROT_READ, elf_.path); in TEST_F() [all …]
|
D | MapInfoGetBuildIDTest.cpp | 49 elf_ = new ElfFake(new MemoryFake); in SetUp() 51 elf_->FakeSetInterface(elf_interface_); in SetUp() 52 elf_container_.reset(elf_); in SetUp() 59 ElfFake* elf_; member in unwindstack::MapInfoGetBuildIDTest
|
D | MapInfoCreateMemoryTest.cpp | 65 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), 1024)); in SetUpTestCase() 85 static TemporaryFile elf_; member in unwindstack::MapInfoCreateMemoryTest 92 TemporaryFile MapInfoCreateMemoryTest::elf_; member in unwindstack::MapInfoCreateMemoryTest 98 MapInfo info(nullptr, 0x100, 0x100, 0, 0, elf_.path); in TEST_F() 117 MapInfo info(nullptr, 0x100, 0x200, 0x100, 0, elf_.path); in TEST_F()
|