Lines Matching refs:maps
27 bool CheckUnwindMaps(UnwindMaps& maps, const MapSet& map_set) { in CheckUnwindMaps() argument
28 if (maps.Total() != map_set.maps.size()) { in CheckUnwindMaps()
32 for (size_t i = 0; i < maps.Total(); i++) { in CheckUnwindMaps()
33 unwindstack::MapInfo* info = maps.Get(i); in CheckUnwindMaps()
34 if (info == nullptr || map_set.maps.find(info->start()) == map_set.maps.end()) { in CheckUnwindMaps()
57 UnwindMaps maps; in TEST() local
58 maps.UpdateMaps(map_set); in TEST()
59 ASSERT_TRUE(CheckUnwindMaps(maps, map_set)); in TEST()
64 map_set.maps.insert(std::make_pair(map_entries[i].start_addr, &map_entries[i])); in TEST()
67 maps.UpdateMaps(map_set); in TEST()
68 ASSERT_TRUE(CheckUnwindMaps(maps, map_set)); in TEST()
73 map_set.maps.insert(std::make_pair(map_entries[i].start_addr, &map_entries[i])); in TEST()
75 maps.UpdateMaps(map_set); in TEST()
76 ASSERT_TRUE(CheckUnwindMaps(maps, map_set)); in TEST()
81 map_set.maps.erase(map_entries[i].start_addr); in TEST()
83 maps.UpdateMaps(map_set); in TEST()
84 ASSERT_TRUE(CheckUnwindMaps(maps, map_set)); in TEST()
88 map_set.maps.clear(); in TEST()
89 maps.UpdateMaps(map_set); in TEST()
90 ASSERT_TRUE(CheckUnwindMaps(maps, map_set)); in TEST()