Lines Matching refs:descriptors
322 "Descriptors:\n"
339 std::vector<const AvbDescriptor*>* descriptors =
341 descriptors->push_back(descriptor);
410 "Descriptors:\n"
431 "Descriptors:\n"
491 // Collect all descriptors.
492 std::vector<const AvbDescriptor*> descriptors;
494 vbmeta_data, f.vbmeta_size, collect_descriptors, &descriptors);
498 EXPECT_EQ(1UL, descriptors.size());
499 EXPECT_EQ(AVB_DESCRIPTOR_TAG_HASH, avb_be64toh(descriptors[0]->tag));
504 reinterpret_cast<const AvbHashDescriptor*>(descriptors[0]), &d));
509 const uint8_t* desc_end = reinterpret_cast<const uint8_t*>(descriptors[0]) +
619 "Descriptors:\n"
694 "Descriptors:\n"
722 "Descriptors:\n"
798 // Collect all descriptors.
799 std::vector<const AvbDescriptor*> descriptors;
801 vbmeta_data, f.vbmeta_size, collect_descriptors, &descriptors);
805 EXPECT_EQ(1UL, descriptors.size());
806 EXPECT_EQ(AVB_DESCRIPTOR_TAG_HASHTREE, avb_be64toh(descriptors[0]->tag));
811 reinterpret_cast<const AvbHashtreeDescriptor*>(descriptors[0]), &d));
821 const uint8_t* desc_end = reinterpret_cast<const uint8_t*>(descriptors[0]) +
855 "Descriptors:\n"
964 "Descriptors:\n"
1024 // Collect all descriptors.
1025 std::vector<const AvbDescriptor*> descriptors;
1027 vbmeta_data, f.vbmeta_size, collect_descriptors, &descriptors);
1031 EXPECT_EQ(1UL, descriptors.size());
1032 EXPECT_EQ(AVB_DESCRIPTOR_TAG_HASHTREE, avb_be64toh(descriptors[0]->tag));
1037 reinterpret_cast<const AvbHashtreeDescriptor*>(descriptors[0]), &d));
1049 const uint8_t* desc_end = reinterpret_cast<const uint8_t*>(descriptors[0]) +
1083 "Descriptors:\n"
1211 "Descriptors:\n"
1230 // Collect all descriptors.
1231 std::vector<const AvbDescriptor*> descriptors;
1233 vbmeta_data, vbmeta_size, collect_descriptors, &descriptors);
1235 // We should have two descriptors - check them.
1236 EXPECT_EQ(2UL, descriptors.size());
1239 avb_be64toh(descriptors[0]->tag));
1243 reinterpret_cast<const AvbKernelCmdlineDescriptor*>(descriptors[0]),
1246 std::string(reinterpret_cast<const char*>(descriptors[0]) +
1250 avb_be64toh(descriptors[1]->tag));
1254 reinterpret_cast<const AvbKernelCmdlineDescriptor*>(descriptors[1]),
1257 std::string(reinterpret_cast<const char*>(descriptors[1]) +
1303 "Descriptors:\n"
1344 "Descriptors:\n"
1362 // Collect all descriptors.
1363 std::vector<const AvbDescriptor*> descriptors;
1365 vbmeta_data, vbmeta_size, collect_descriptors, &descriptors);
1368 EXPECT_EQ(1UL, descriptors.size());
1375 avb_be64toh(descriptors[0]->tag));
1379 reinterpret_cast<const AvbChainPartitionDescriptor*>(descriptors[0]),
1381 const uint8_t* desc_end = reinterpret_cast<const uint8_t*>(descriptors[0]) +
1389 std::string(reinterpret_cast<const char*>(descriptors[0]) +
1431 "Descriptors:\n"