Lines Matching refs:slot_data
64 AvbSlotVerifyData* slot_data = NULL;
72 &slot_data));
73 EXPECT_NE(nullptr, slot_data);
83 std::string(slot_data->cmdline));
84 avb_slot_verify_data_free(slot_data);
97 AvbSlotVerifyData* slot_data = NULL;
105 &slot_data));
106 EXPECT_NE(nullptr, slot_data);
117 std::string(slot_data->cmdline));
118 avb_slot_verify_data_free(slot_data);
133 AvbSlotVerifyData* slot_data = NULL;
141 &slot_data));
142 EXPECT_NE(nullptr, slot_data);
152 std::string(slot_data->cmdline));
153 avb_slot_verify_data_free(slot_data);
166 AvbSlotVerifyData* slot_data = NULL;
174 &slot_data));
175 EXPECT_NE(nullptr, slot_data);
176 avb_slot_verify_data_free(slot_data);
186 AvbSlotVerifyData* slot_data = NULL;
194 &slot_data));
195 EXPECT_EQ(nullptr, slot_data);
202 &slot_data));
203 EXPECT_NE(nullptr, slot_data);
204 avb_slot_verify_data_free(slot_data);
209 AvbSlotVerifyData* slot_data = NULL;
216 &slot_data));
217 EXPECT_EQ(nullptr, slot_data);
227 AvbSlotVerifyData* slot_data = NULL;
235 &slot_data));
236 EXPECT_EQ(nullptr, slot_data);
243 &slot_data));
244 EXPECT_NE(nullptr, slot_data);
245 avb_slot_verify_data_free(slot_data);
266 AvbSlotVerifyData* slot_data = NULL;
274 &slot_data));
275 EXPECT_EQ(nullptr, slot_data);
282 &slot_data));
283 EXPECT_NE(nullptr, slot_data);
284 avb_slot_verify_data_free(slot_data);
307 AvbSlotVerifyData* slot_data = NULL;
315 &slot_data));
316 EXPECT_EQ(nullptr, slot_data);
329 AvbSlotVerifyData* slot_data = NULL;
341 &slot_data));
342 EXPECT_NE(nullptr, slot_data);
343 avb_slot_verify_data_free(slot_data);
354 &slot_data));
355 EXPECT_EQ(nullptr, slot_data);
362 &slot_data));
363 EXPECT_NE(nullptr, slot_data);
364 avb_slot_verify_data_free(slot_data);
415 AvbSlotVerifyData* slot_data = NULL;
423 &slot_data));
424 EXPECT_NE(nullptr, slot_data);
428 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions);
430 std::string(slot_data->loaded_partitions[0].partition_name));
431 EXPECT_EQ(new_boot_image_size, slot_data->loaded_partitions[0].data_size);
432 avb_slot_verify_data_free(slot_data);
503 AvbSlotVerifyData* slot_data = NULL;
511 &slot_data));
512 EXPECT_NE(nullptr, slot_data);
516 EXPECT_EQ(size_t(1), slot_data->num_vbmeta_images);
517 EXPECT_EQ("vbmeta", std::string(slot_data->vbmeta_images[0].partition_name));
518 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size());
521 slot_data->vbmeta_images[0].vbmeta_data,
522 slot_data->vbmeta_images[0].vbmeta_size));
526 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions);
528 std::string(slot_data->loaded_partitions[0].partition_name));
529 EXPECT_EQ(boot_image_size, slot_data->loaded_partitions[0].data_size);
530 for (size_t n = 0; n < slot_data->loaded_partitions[0].data_size; n++) {
531 EXPECT_EQ(slot_data->loaded_partitions[0].data[n], uint8_t(n));
548 std::string(slot_data->cmdline));
549 EXPECT_EQ(4UL, slot_data->rollback_indexes[0]);
551 EXPECT_EQ(0UL, slot_data->rollback_indexes[n]);
553 avb_slot_verify_data_free(slot_data);
589 AvbSlotVerifyData* slot_data = NULL;
596 &slot_data));
597 EXPECT_NE(nullptr, slot_data);
598 avb_slot_verify_data_free(slot_data);
615 &slot_data));
616 EXPECT_EQ(nullptr, slot_data);
623 &slot_data));
624 EXPECT_NE(nullptr, slot_data);
625 avb_slot_verify_data_free(slot_data);
716 AvbSlotVerifyData* slot_data = NULL;
723 &slot_data));
724 EXPECT_NE(nullptr, slot_data);
729 EXPECT_EQ(size_t(2), slot_data->num_vbmeta_images);
730 EXPECT_EQ("vbmeta", std::string(slot_data->vbmeta_images[0].partition_name));
731 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size());
734 slot_data->vbmeta_images[0].vbmeta_data,
735 slot_data->vbmeta_images[0].vbmeta_size));
738 EXPECT_EQ("boot", std::string(slot_data->vbmeta_images[1].partition_name));
740 avb_descriptor_get_all(slot_data->vbmeta_images[1].vbmeta_data,
741 slot_data->vbmeta_images[1].vbmeta_size,
772 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions);
774 std::string(slot_data->loaded_partitions[0].partition_name));
775 EXPECT_EQ(boot_image_size, slot_data->loaded_partitions[0].data_size);
776 for (size_t n = 0; n < slot_data->loaded_partitions[0].data_size; n++) {
777 EXPECT_EQ(slot_data->loaded_partitions[0].data[n], uint8_t(n));
791 std::string(slot_data->cmdline));
792 EXPECT_EQ(11UL, slot_data->rollback_indexes[0]);
793 EXPECT_EQ(12UL, slot_data->rollback_indexes[1]);
795 EXPECT_EQ(0UL, slot_data->rollback_indexes[n]);
797 avb_slot_verify_data_free(slot_data);
836 AvbSlotVerifyData* slot_data = NULL;
843 &slot_data));
844 EXPECT_NE(nullptr, slot_data);
845 avb_slot_verify_data_free(slot_data);
862 &slot_data));
863 EXPECT_EQ(nullptr, slot_data);
870 &slot_data));
871 EXPECT_NE(nullptr, slot_data);
872 avb_slot_verify_data_free(slot_data);
916 AvbSlotVerifyData* slot_data = NULL;
923 &slot_data));
924 EXPECT_EQ(nullptr, slot_data);
931 &slot_data));
932 EXPECT_NE(nullptr, slot_data);
933 avb_slot_verify_data_free(slot_data);
972 AvbSlotVerifyData* slot_data = NULL;
983 &slot_data));
984 EXPECT_NE(nullptr, slot_data);
985 avb_slot_verify_data_free(slot_data);
997 &slot_data));
998 EXPECT_EQ(nullptr, slot_data);
1005 &slot_data));
1006 EXPECT_NE(nullptr, slot_data);
1007 avb_slot_verify_data_free(slot_data);
1019 &slot_data));
1020 EXPECT_EQ(nullptr, slot_data);
1083 AvbSlotVerifyData* slot_data = NULL;
1090 &slot_data));
1091 EXPECT_NE(nullptr, slot_data);
1096 EXPECT_EQ(size_t(2), slot_data->num_vbmeta_images);
1097 EXPECT_EQ("vbmeta", std::string(slot_data->vbmeta_images[0].partition_name));
1098 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size());
1101 slot_data->vbmeta_images[0].vbmeta_data,
1102 slot_data->vbmeta_images[0].vbmeta_size));
1103 EXPECT_EQ("boot", std::string(slot_data->vbmeta_images[1].partition_name));
1107 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions);
1109 std::string(slot_data->loaded_partitions[0].partition_name));
1110 EXPECT_EQ(boot_image_size, slot_data->loaded_partitions[0].data_size);
1111 for (size_t n = 0; n < slot_data->loaded_partitions[0].data_size; n++) {
1112 EXPECT_EQ(slot_data->loaded_partitions[0].data[n], uint8_t(n));
1127 std::string(slot_data->cmdline));
1128 EXPECT_EQ(11UL, slot_data->rollback_indexes[0]);
1129 EXPECT_EQ(12UL, slot_data->rollback_indexes[1]);
1131 EXPECT_EQ(0UL, slot_data->rollback_indexes[n]);
1133 avb_slot_verify_data_free(slot_data);
1203 AvbSlotVerifyData* slot_data = NULL;
1211 &slot_data));
1212 EXPECT_NE(nullptr, slot_data);
1216 EXPECT_EQ(size_t(1), slot_data->num_vbmeta_images);
1217 EXPECT_EQ("vbmeta", std::string(slot_data->vbmeta_images[0].partition_name));
1218 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size());
1221 slot_data->vbmeta_images[0].vbmeta_data,
1222 slot_data->vbmeta_images[0].vbmeta_size));
1226 EXPECT_EQ(size_t(2), slot_data->num_loaded_partitions);
1227 EXPECT_EQ("foo", std::string(slot_data->loaded_partitions[0].partition_name));
1228 EXPECT_EQ(foo_image_size, slot_data->loaded_partitions[0].data_size);
1229 for (size_t n = 0; n < slot_data->loaded_partitions[0].data_size; n++) {
1230 EXPECT_EQ(slot_data->loaded_partitions[0].data[n], uint8_t(n));
1232 EXPECT_EQ("bar", std::string(slot_data->loaded_partitions[1].partition_name));
1233 EXPECT_EQ(bar_image_size, slot_data->loaded_partitions[1].data_size);
1234 for (size_t n = 0; n < slot_data->loaded_partitions[1].data_size; n++) {
1235 EXPECT_EQ(slot_data->loaded_partitions[1].data[n], uint8_t(n));
1237 avb_slot_verify_data_free(slot_data);
1313 AvbSlotVerifyData* slot_data = NULL;
1321 &slot_data));
1322 EXPECT_NE(nullptr, slot_data);
1323 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions);
1324 EXPECT_EQ("foo", std::string(slot_data->loaded_partitions[0].partition_name));
1325 avb_slot_verify_data_free(slot_data);
1353 AvbSlotVerifyData* slot_data = NULL;
1361 &slot_data));
1362 EXPECT_NE(nullptr, slot_data);
1372 std::string(slot_data->cmdline));
1373 avb_slot_verify_data_free(slot_data);
1454 AvbSlotVerifyData* slot_data = NULL;
1462 &slot_data));
1463 EXPECT_NE(nullptr, slot_data);
1480 std::string(slot_data->cmdline));
1493 std::string(slot_data->cmdline));
1495 avb_slot_verify_data_free(slot_data);
1629 AvbSlotVerifyData* slot_data = NULL;
1637 &slot_data));
1638 EXPECT_NE(nullptr, slot_data);
1655 std::string(slot_data->cmdline));
1668 std::string(slot_data->cmdline));
1670 avb_slot_verify_data_free(slot_data);
1791 AvbSlotVerifyData* slot_data = NULL;
1799 &slot_data));
1800 EXPECT_NE(nullptr, slot_data);
1802 std::string(slot_data->cmdline));
1804 EXPECT_EQ(size_t(2), slot_data->num_loaded_partitions);
1806 std::string(slot_data->loaded_partitions[0].partition_name));
1807 EXPECT_EQ(boot_part_size, slot_data->loaded_partitions[0].data_size);
1809 EXPECT_EQ(uint8_t(n), slot_data->loaded_partitions[0].data[n]);
1812 std::string(slot_data->loaded_partitions[1].partition_name));
1813 EXPECT_EQ(dtbo_part_size, slot_data->loaded_partitions[1].data_size);
1816 slot_data->loaded_partitions[1].data[n]);
1818 avb_slot_verify_data_free(slot_data);
1981 AvbSlotVerifyData* slot_data = NULL;
1989 &slot_data));
1990 EXPECT_NE(nullptr, slot_data);
2006 std::string(slot_data->cmdline));
2007 avb_slot_verify_data_free(slot_data);
2053 AvbSlotVerifyData* slot_data = NULL;
2060 &slot_data));
2061 EXPECT_EQ(nullptr, slot_data);
2108 AvbSlotVerifyData* slot_data = NULL;
2115 &slot_data));
2116 EXPECT_EQ(nullptr, slot_data);
2148 AvbSlotVerifyData* slot_data = NULL;
2161 &slot_data));
2162 EXPECT_NE(nullptr, slot_data);
2178 std::string(slot_data->cmdline));
2179 avb_slot_verify_data_free(slot_data);
2191 &slot_data));
2192 EXPECT_NE(nullptr, slot_data);
2207 std::string(slot_data->cmdline));
2208 avb_slot_verify_data_free(slot_data);
2220 &slot_data));
2221 EXPECT_NE(nullptr, slot_data);
2236 std::string(slot_data->cmdline));
2237 avb_slot_verify_data_free(slot_data);
2252 &slot_data));
2253 EXPECT_EQ(nullptr, slot_data);
2261 &slot_data));
2262 EXPECT_NE(nullptr, slot_data);
2277 std::string(slot_data->cmdline));
2278 avb_slot_verify_data_free(slot_data);
2304 &slot_data));
2305 EXPECT_NE(nullptr, slot_data);
2316 std::string(slot_data->cmdline));
2317 avb_slot_verify_data_free(slot_data);