Lines Matching refs:idmap

129   const auto idmap = std::move(*result);  in TEST()  local
131 ASSERT_THAT(idmap->GetHeader(), NotNull()); in TEST()
132 ASSERT_EQ(idmap->GetHeader()->GetMagic(), 0x504d4449U); in TEST()
133 ASSERT_EQ(idmap->GetHeader()->GetVersion(), 0x01U); in TEST()
134 ASSERT_EQ(idmap->GetHeader()->GetTargetCrc(), 0x1234U); in TEST()
135 ASSERT_EQ(idmap->GetHeader()->GetOverlayCrc(), 0x5678U); in TEST()
136 ASSERT_EQ(idmap->GetHeader()->GetTargetPath().to_string(), "target.apk"); in TEST()
137 ASSERT_EQ(idmap->GetHeader()->GetOverlayPath().to_string(), "overlay.apk"); in TEST()
139 const std::vector<std::unique_ptr<const IdmapData>>& dataBlocks = idmap->GetData(); in TEST()
188 std::unique_ptr<const Idmap> idmap; in TEST() local
192 /* enforce_overlayable */ true, &idmap); in TEST()
194 ASSERT_THAT(idmap->GetHeader(), NotNull()); in TEST()
195 ASSERT_EQ(idmap->GetHeader()->GetMagic(), 0x504d4449U); in TEST()
196 ASSERT_EQ(idmap->GetHeader()->GetVersion(), 0x01U); in TEST()
197 ASSERT_EQ(idmap->GetHeader()->GetTargetCrc(), 0x76a20829); in TEST()
198 ASSERT_EQ(idmap->GetHeader()->GetOverlayCrc(), 0x8635c2ed); in TEST()
199 ASSERT_EQ(idmap->GetHeader()->GetTargetPath().to_string(), target_apk_path); in TEST()
200 ASSERT_EQ(idmap->GetHeader()->GetOverlayPath(), overlay_apk_path); in TEST()
201 ASSERT_EQ(idmap->GetHeader()->GetOverlayPath(), overlay_apk_path); in TEST()
203 const std::vector<std::unique_ptr<const IdmapData>>& dataBlocks = idmap->GetData(); in TEST()
232 std::unique_ptr<const Idmap> idmap; in TEST() local
237 /* enforce_overlayable */ true, &idmap); in TEST()
238 ASSERT_THAT(idmap, NotNull()); in TEST()
240 const std::vector<std::unique_ptr<const IdmapData>>& dataBlocks = idmap->GetData(); in TEST()
262 std::unique_ptr<const Idmap> idmap; in TEST() local
267 /* enforce_overlayable */ true, &idmap); in TEST()
268 ASSERT_THAT(idmap, NotNull()); in TEST()
270 const std::vector<std::unique_ptr<const IdmapData>>& dataBlocks = idmap->GetData(); in TEST()
290 std::unique_ptr<const Idmap> idmap; in TEST() local
296 /* enforce_overlayable */ true, &idmap); in TEST()
297 ASSERT_THAT(idmap, NotNull()); in TEST()
299 const std::vector<std::unique_ptr<const IdmapData>>& dataBlocks = idmap->GetData(); in TEST()
322 std::unique_ptr<const Idmap> idmap; in TEST() local
328 /* enforce_overlayable */ false, &idmap); in TEST()
329 ASSERT_THAT(idmap, NotNull()); in TEST()
331 const std::vector<std::unique_ptr<const IdmapData>>& dataBlocks = idmap->GetData(); in TEST()
359 std::unique_ptr<const Idmap> idmap; in TEST() local
363 /* enforce_overlayable */ false, &idmap); in TEST()
364 ASSERT_THAT(idmap, NotNull()); in TEST()
366 const std::vector<std::unique_ptr<const IdmapData>>& dataBlocks = idmap->GetData(); in TEST()
396 std::unique_ptr<const Idmap> idmap; in TEST() local
400 /* enforce_overlayable */ true, &idmap); in TEST()
401 ASSERT_THAT(idmap, IsNull()); in TEST()
407 std::unique_ptr<const Idmap> idmap; in TEST() local
413 const std::vector<std::unique_ptr<const IdmapData>>& dataBlocks = idmap->GetData(); in TEST()
439 /* enforce_overlayable */ true, &idmap); in TEST()
440 ASSERT_THAT(idmap, NotNull()); in TEST()
444 /* enforce_overlayable */ true, &idmap); in TEST()
445 ASSERT_THAT(idmap, NotNull()); in TEST()
449 /* enforce_overlayable */ true, &idmap); in TEST()
450 ASSERT_THAT(idmap, NotNull()); in TEST()
454 /* enforce_overlayable */ true, &idmap); in TEST()
455 ASSERT_THAT(idmap, NotNull()); in TEST()
459 /* enforce_overlayable */ true, &idmap); in TEST()
460 ASSERT_THAT(idmap, NotNull()); in TEST()
464 /* enforce_overlayable */ true, &idmap); in TEST()
465 ASSERT_THAT(idmap, NotNull()); in TEST()
504 const auto idmap = std::move(*result); in TEST() local
508 idmap->accept(&visitor); in TEST()
592 void visit(const Idmap& idmap ATTRIBUTE_UNUSED) override { in visit()
596 void visit(const IdmapHeader& idmap ATTRIBUTE_UNUSED) override { in visit()
600 void visit(const IdmapData& idmap ATTRIBUTE_UNUSED) override { in visit()
604 void visit(const IdmapData::Header& idmap ATTRIBUTE_UNUSED) override { in visit()
608 void visit(const IdmapData::TypeEntry& idmap ATTRIBUTE_UNUSED) override { in visit()
620 const auto idmap = Idmap::FromBinaryStream(stream); in TEST() local
621 ASSERT_TRUE(idmap); in TEST()
625 (*idmap)->accept(&visitor); in TEST()