Lines Matching refs:dso
136 TEST(dso, dex_file_dso) { in TEST() argument
139 std::unique_ptr<Dso> dso = Dso::CreateDso(dso_type, GetTestData("base.vdex")); in TEST() local
140 ASSERT_TRUE(dso); in TEST()
141 dso->AddDexFileOffset(0x28); in TEST()
142 ASSERT_EQ(DSO_DEX_FILE, dso->type()); in TEST()
143 const Symbol* symbol = dso->FindSymbol(0x6c77e); in TEST()
151 dso->GetMinExecutableVaddr(&min_vaddr, &file_offset_of_min_vaddr); in TEST()
156 dso = Dso::CreateDso(dso_type, GetTestData("base.zip!/not_exist_entry")); in TEST()
157 ASSERT_TRUE(dso); in TEST()
158 ASSERT_EQ(nullptr, dso->FindSymbol(0)); in TEST()
165 TEST(dso, dex_file_offsets) { in TEST() argument
166 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_DEX_FILE, ""); in TEST() local
167 ASSERT_TRUE(dso); in TEST()
169 dso->AddDexFileOffset(offset); in TEST()
171 ASSERT_EQ(*dso->DexFileOffsets(), std::vector<uint64_t>({0x1, 0x2, 0x3, 0x4, 0x5})); in TEST()
174 TEST(dso, embedded_elf) { in TEST() argument
176 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, file_path); in TEST() local
177 ASSERT_TRUE(dso); in TEST()
178 ASSERT_EQ(dso->Path(), file_path); in TEST()
179 ASSERT_EQ(dso->GetDebugFilePath(), file_path); in TEST()
182 dso->GetMinExecutableVaddr(&min_vaddr, &file_offset_of_min_vaddr); in TEST()
185 const Symbol* symbol = dso->FindSymbol(0x9a4); in TEST()
193 TEST(dso, IpToVaddrInFile) { in TEST() argument
194 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, GetTestData("libc.so")); in TEST() local
195 ASSERT_TRUE(dso); in TEST()
196 ASSERT_EQ(0xa5140, dso->IpToVaddrInFile(0xe9201140, 0xe9201000, 0xa5000)); in TEST()