Home
last modified time | relevance | path

Searched refs:map_info_ (Results 1 – 2 of 2) sorted by relevance

/system/unwinding/libunwindstack/tests/
DMapInfoGetLoadBiasTest.cpp53 map_info_.reset(new MapInfo(nullptr, nullptr, 0x1000, 0x20000, 0, PROT_READ | PROT_WRITE, "")); in SetUp()
62 std::unique_ptr<MapInfo> map_info_; member in unwindstack::MapInfoGetLoadBiasTest
72 map_info_->set_elf(elf_container_.release()); in TEST_F()
75 EXPECT_EQ(0U, map_info_->GetLoadBias(process_memory_)); in TEST_F()
78 EXPECT_EQ(0U, map_info_->GetLoadBias(process_memory_)); in TEST_F()
82 map_info_->set_elf(elf_container_.release()); in TEST_F()
85 EXPECT_EQ(0U, map_info_->GetLoadBias(process_memory_)); in TEST_F()
87 map_info_->set_load_bias(INT64_MAX); in TEST_F()
89 EXPECT_EQ(0x1000U, map_info_->GetLoadBias(process_memory_)); in TEST_F()
106 load_bias_values[i] = map_info_->GetLoadBias(process_memory_); in MultipleThreadTest()
[all …]
DMapInfoGetBuildIDTest.cpp53 map_info_.reset( in SetUp()
65 std::unique_ptr<MapInfo> map_info_; member in unwindstack::MapInfoGetBuildIDTest
77 map_info_->set_elf(elf_container_.release()); in TEST_F()
80 EXPECT_EQ("FAKE_BUILD_ID", map_info_->GetBuildID()); in TEST_F()
81 EXPECT_EQ("46414b455f4255494c445f4944", map_info_->GetPrintableBuildID()); in TEST_F()
85 map_info_->set_elf(elf_container_.release()); in TEST_F()
91 EXPECT_EQ("\xFA\xAB\x12\x2", map_info_->GetBuildID()); in TEST_F()
92 EXPECT_EQ("faab1202", map_info_->GetPrintableBuildID()); in TEST_F()
109 build_id_values[i] = map_info_->GetBuildID(); in MultipleThreadTest()
128 map_info_->set_elf(elf_container_.release()); in TEST_F()
[all …]