Lines Matching refs:slot_data
66 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
74 &slot_data)); in TEST_F()
75 EXPECT_NE(nullptr, slot_data); in TEST_F()
85 std::string(slot_data->cmdline)); in TEST_F()
88 slot_data, AVB_DIGEST_TYPE_SHA256, vbmeta_digest); in TEST_F()
91 avb_slot_verify_data_free(slot_data); in TEST_F()
107 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
115 &slot_data)); in TEST_F()
116 EXPECT_NE(nullptr, slot_data); in TEST_F()
127 std::string(slot_data->cmdline)); in TEST_F()
130 slot_data, AVB_DIGEST_TYPE_SHA512, vbmeta_digest); in TEST_F()
135 avb_slot_verify_data_free(slot_data); in TEST_F()
155 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
163 &slot_data)); in TEST_F()
164 EXPECT_NE(nullptr, slot_data); in TEST_F()
174 std::string(slot_data->cmdline)); in TEST_F()
175 avb_slot_verify_data_free(slot_data); in TEST_F()
189 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
197 &slot_data)); in TEST_F()
198 EXPECT_NE(nullptr, slot_data); in TEST_F()
199 avb_slot_verify_data_free(slot_data); in TEST_F()
212 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
220 &slot_data)); in TEST_F()
221 EXPECT_NE(nullptr, slot_data); in TEST_F()
222 avb_slot_verify_data_free(slot_data); in TEST_F()
232 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
240 &slot_data)); in TEST_F()
241 EXPECT_EQ(nullptr, slot_data); in TEST_F()
248 &slot_data)); in TEST_F()
249 EXPECT_NE(nullptr, slot_data); in TEST_F()
250 avb_slot_verify_data_free(slot_data); in TEST_F()
255 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
262 &slot_data)); in TEST_F()
263 EXPECT_EQ(nullptr, slot_data); in TEST_F()
273 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
281 &slot_data)); in TEST_F()
282 EXPECT_EQ(nullptr, slot_data); in TEST_F()
289 &slot_data)); in TEST_F()
290 EXPECT_NE(nullptr, slot_data); in TEST_F()
291 avb_slot_verify_data_free(slot_data); in TEST_F()
312 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
320 &slot_data)); in TEST_F()
321 EXPECT_EQ(nullptr, slot_data); in TEST_F()
328 &slot_data)); in TEST_F()
329 EXPECT_NE(nullptr, slot_data); in TEST_F()
330 avb_slot_verify_data_free(slot_data); in TEST_F()
353 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
361 &slot_data)); in TEST_F()
362 EXPECT_EQ(nullptr, slot_data); in TEST_F()
375 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
387 &slot_data)); in TEST_F()
388 EXPECT_NE(nullptr, slot_data); in TEST_F()
389 avb_slot_verify_data_free(slot_data); in TEST_F()
400 &slot_data)); in TEST_F()
401 EXPECT_EQ(nullptr, slot_data); in TEST_F()
408 &slot_data)); in TEST_F()
409 EXPECT_NE(nullptr, slot_data); in TEST_F()
410 avb_slot_verify_data_free(slot_data); in TEST_F()
423 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
437 &slot_data)); in TEST_F()
438 EXPECT_NE(nullptr, slot_data); in TEST_F()
444 EXPECT_EQ(expected_rollback, slot_data->rollback_indexes[n]); in TEST_F()
447 avb_slot_verify_data_free(slot_data); in TEST_F()
458 &slot_data)); in TEST_F()
459 EXPECT_EQ(nullptr, slot_data); in TEST_F()
466 &slot_data)); in TEST_F()
467 EXPECT_NE(nullptr, slot_data); in TEST_F()
468 avb_slot_verify_data_free(slot_data); in TEST_F()
483 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
492 &slot_data)); in TEST_F()
493 EXPECT_EQ(nullptr, slot_data); in TEST_F()
544 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
552 &slot_data)); in TEST_F()
553 EXPECT_NE(nullptr, slot_data); in TEST_F()
557 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions); in TEST_F()
559 std::string(slot_data->loaded_partitions[0].partition_name)); in TEST_F()
560 EXPECT_EQ(new_boot_image_size, slot_data->loaded_partitions[0].data_size); in TEST_F()
561 avb_slot_verify_data_free(slot_data); in TEST_F()
612 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
620 &slot_data)); in TEST_F()
621 EXPECT_NE(nullptr, slot_data); in TEST_F()
625 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions); in TEST_F()
627 std::string(slot_data->loaded_partitions[0].partition_name)); in TEST_F()
628 EXPECT_EQ(new_boot_image_size, slot_data->loaded_partitions[0].data_size); in TEST_F()
629 avb_slot_verify_data_free(slot_data); in TEST_F()
703 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
711 &slot_data)); in TEST_F()
712 EXPECT_NE(nullptr, slot_data); in TEST_F()
716 EXPECT_EQ(size_t(1), slot_data->num_vbmeta_images); in TEST_F()
717 EXPECT_EQ("vbmeta", std::string(slot_data->vbmeta_images[0].partition_name)); in TEST_F()
718 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size()); in TEST_F()
721 slot_data->vbmeta_images[0].vbmeta_data, in TEST_F()
722 slot_data->vbmeta_images[0].vbmeta_size)); in TEST_F()
726 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions); in TEST_F()
728 std::string(slot_data->loaded_partitions[0].partition_name)); in TEST_F()
729 EXPECT_EQ(boot_image_size, slot_data->loaded_partitions[0].data_size); in TEST_F()
730 for (size_t n = 0; n < slot_data->loaded_partitions[0].data_size; n++) { in TEST_F()
731 EXPECT_EQ(slot_data->loaded_partitions[0].data[n], uint8_t(n)); in TEST_F()
748 std::string(slot_data->cmdline)); in TEST_F()
749 EXPECT_EQ(4UL, slot_data->rollback_indexes[0]); in TEST_F()
751 EXPECT_EQ(0UL, slot_data->rollback_indexes[n]); in TEST_F()
753 avb_slot_verify_data_free(slot_data); in TEST_F()
799 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
807 &slot_data)); in TEST_F()
808 EXPECT_NE(nullptr, slot_data); in TEST_F()
812 EXPECT_EQ(size_t(1), slot_data->num_vbmeta_images); in TEST_F()
813 EXPECT_EQ("vbmeta", std::string(slot_data->vbmeta_images[0].partition_name)); in TEST_F()
814 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size()); in TEST_F()
817 slot_data->vbmeta_images[0].vbmeta_data, in TEST_F()
818 slot_data->vbmeta_images[0].vbmeta_size)); in TEST_F()
822 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions); in TEST_F()
824 std::string(slot_data->loaded_partitions[0].partition_name)); in TEST_F()
825 EXPECT_EQ(boot_image_size, slot_data->loaded_partitions[0].data_size); in TEST_F()
826 for (size_t n = 0; n < slot_data->loaded_partitions[0].data_size; n++) { in TEST_F()
827 EXPECT_EQ(slot_data->loaded_partitions[0].data[n], uint8_t(n)); in TEST_F()
829 EXPECT_TRUE(slot_data->loaded_partitions[0].preloaded); in TEST_F()
831 avb_slot_verify_data_free(slot_data); in TEST_F()
880 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
888 &slot_data)); in TEST_F()
889 EXPECT_EQ(nullptr, slot_data); in TEST_F()
925 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
932 &slot_data)); in TEST_F()
933 EXPECT_NE(nullptr, slot_data); in TEST_F()
934 avb_slot_verify_data_free(slot_data); in TEST_F()
951 &slot_data)); in TEST_F()
952 EXPECT_EQ(nullptr, slot_data); in TEST_F()
959 &slot_data)); in TEST_F()
960 EXPECT_NE(nullptr, slot_data); in TEST_F()
961 avb_slot_verify_data_free(slot_data); in TEST_F()
1057 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
1064 &slot_data)); in TEST_F()
1065 EXPECT_NE(nullptr, slot_data); in TEST_F()
1070 EXPECT_EQ(size_t(2), slot_data->num_vbmeta_images); in TEST_F()
1071 EXPECT_EQ("vbmeta", std::string(slot_data->vbmeta_images[0].partition_name)); in TEST_F()
1072 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size()); in TEST_F()
1075 slot_data->vbmeta_images[0].vbmeta_data, in TEST_F()
1076 slot_data->vbmeta_images[0].vbmeta_size)); in TEST_F()
1079 EXPECT_EQ("boot", std::string(slot_data->vbmeta_images[1].partition_name)); in TEST_F()
1081 avb_descriptor_get_all(slot_data->vbmeta_images[1].vbmeta_data, in TEST_F()
1082 slot_data->vbmeta_images[1].vbmeta_size, in TEST_F()
1113 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions); in TEST_F()
1115 std::string(slot_data->loaded_partitions[0].partition_name)); in TEST_F()
1116 EXPECT_EQ(boot_image_size, slot_data->loaded_partitions[0].data_size); in TEST_F()
1117 for (size_t n = 0; n < slot_data->loaded_partitions[0].data_size; n++) { in TEST_F()
1118 EXPECT_EQ(slot_data->loaded_partitions[0].data[n], uint8_t(n)); in TEST_F()
1132 std::string(slot_data->cmdline)); in TEST_F()
1133 EXPECT_EQ(11UL, slot_data->rollback_indexes[0]); in TEST_F()
1134 EXPECT_EQ(12UL, slot_data->rollback_indexes[1]); in TEST_F()
1136 EXPECT_EQ(0UL, slot_data->rollback_indexes[n]); in TEST_F()
1140 slot_data, AVB_DIGEST_TYPE_SHA256, vbmeta_digest); in TEST_F()
1143 avb_slot_verify_data_free(slot_data); in TEST_F()
1247 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
1254 &slot_data)); in TEST_F()
1255 EXPECT_NE(nullptr, slot_data); in TEST_F()
1257 EXPECT_EQ(0UL, slot_data->rollback_indexes[0]); in TEST_F()
1258 EXPECT_EQ(11UL, slot_data->rollback_indexes[1]); in TEST_F()
1259 EXPECT_EQ(12UL, slot_data->rollback_indexes[2]); in TEST_F()
1261 EXPECT_EQ(0UL, slot_data->rollback_indexes[n]); in TEST_F()
1263 avb_slot_verify_data_free(slot_data); in TEST_F()
1367 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
1374 &slot_data)); in TEST_F()
1375 EXPECT_NE(nullptr, slot_data); in TEST_F()
1380 EXPECT_EQ(size_t(2), slot_data->num_vbmeta_images); in TEST_F()
1381 EXPECT_EQ("vbmeta", std::string(slot_data->vbmeta_images[0].partition_name)); in TEST_F()
1382 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size()); in TEST_F()
1385 slot_data->vbmeta_images[0].vbmeta_data, in TEST_F()
1386 slot_data->vbmeta_images[0].vbmeta_size)); in TEST_F()
1390 std::string(slot_data->vbmeta_images[1].partition_name)); in TEST_F()
1392 avb_descriptor_get_all(slot_data->vbmeta_images[1].vbmeta_data, in TEST_F()
1393 slot_data->vbmeta_images[1].vbmeta_size, in TEST_F()
1424 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions); in TEST_F()
1426 std::string(slot_data->loaded_partitions[0].partition_name)); in TEST_F()
1427 EXPECT_EQ(boot_image_size, slot_data->loaded_partitions[0].data_size); in TEST_F()
1428 for (size_t n = 0; n < slot_data->loaded_partitions[0].data_size; n++) { in TEST_F()
1429 EXPECT_EQ(slot_data->loaded_partitions[0].data[n], uint8_t(n)); in TEST_F()
1443 std::string(slot_data->cmdline)); in TEST_F()
1444 EXPECT_EQ(11UL, slot_data->rollback_indexes[0]); in TEST_F()
1445 EXPECT_EQ(12UL, slot_data->rollback_indexes[1]); in TEST_F()
1447 EXPECT_EQ(0UL, slot_data->rollback_indexes[n]); in TEST_F()
1451 slot_data, AVB_DIGEST_TYPE_SHA256, vbmeta_digest); in TEST_F()
1454 avb_slot_verify_data_free(slot_data); in TEST_F()
1496 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
1503 &slot_data)); in TEST_F()
1504 EXPECT_NE(nullptr, slot_data); in TEST_F()
1505 avb_slot_verify_data_free(slot_data); in TEST_F()
1522 &slot_data)); in TEST_F()
1523 EXPECT_EQ(nullptr, slot_data); in TEST_F()
1530 &slot_data)); in TEST_F()
1531 EXPECT_NE(nullptr, slot_data); in TEST_F()
1532 avb_slot_verify_data_free(slot_data); in TEST_F()
1576 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
1583 &slot_data)); in TEST_F()
1584 EXPECT_EQ(nullptr, slot_data); in TEST_F()
1591 &slot_data)); in TEST_F()
1592 EXPECT_NE(nullptr, slot_data); in TEST_F()
1593 avb_slot_verify_data_free(slot_data); in TEST_F()
1632 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
1643 &slot_data)); in TEST_F()
1644 EXPECT_NE(nullptr, slot_data); in TEST_F()
1645 avb_slot_verify_data_free(slot_data); in TEST_F()
1657 &slot_data)); in TEST_F()
1658 EXPECT_EQ(nullptr, slot_data); in TEST_F()
1665 &slot_data)); in TEST_F()
1666 EXPECT_NE(nullptr, slot_data); in TEST_F()
1667 avb_slot_verify_data_free(slot_data); in TEST_F()
1679 &slot_data)); in TEST_F()
1680 EXPECT_EQ(nullptr, slot_data); in TEST_F()
1745 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
1752 &slot_data)); in TEST_F()
1753 EXPECT_NE(nullptr, slot_data); in TEST_F()
1758 EXPECT_EQ(size_t(2), slot_data->num_vbmeta_images); in TEST_F()
1759 EXPECT_EQ("vbmeta", std::string(slot_data->vbmeta_images[0].partition_name)); in TEST_F()
1760 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size()); in TEST_F()
1763 slot_data->vbmeta_images[0].vbmeta_data, in TEST_F()
1764 slot_data->vbmeta_images[0].vbmeta_size)); in TEST_F()
1765 EXPECT_EQ("boot", std::string(slot_data->vbmeta_images[1].partition_name)); in TEST_F()
1769 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions); in TEST_F()
1771 std::string(slot_data->loaded_partitions[0].partition_name)); in TEST_F()
1772 EXPECT_EQ(boot_image_size, slot_data->loaded_partitions[0].data_size); in TEST_F()
1773 for (size_t n = 0; n < slot_data->loaded_partitions[0].data_size; n++) { in TEST_F()
1774 EXPECT_EQ(slot_data->loaded_partitions[0].data[n], uint8_t(n)); in TEST_F()
1789 std::string(slot_data->cmdline)); in TEST_F()
1790 EXPECT_EQ(11UL, slot_data->rollback_indexes[0]); in TEST_F()
1791 EXPECT_EQ(12UL, slot_data->rollback_indexes[1]); in TEST_F()
1793 EXPECT_EQ(0UL, slot_data->rollback_indexes[n]); in TEST_F()
1795 avb_slot_verify_data_free(slot_data); in TEST_F()
1869 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
1877 &slot_data)); in TEST_F()
1878 EXPECT_NE(nullptr, slot_data); in TEST_F()
1882 EXPECT_EQ(size_t(1), slot_data->num_vbmeta_images); in TEST_F()
1883 EXPECT_EQ("vbmeta", std::string(slot_data->vbmeta_images[0].partition_name)); in TEST_F()
1884 EXPECT_EQ(slot_data->vbmeta_images[0].vbmeta_size, vbmeta_image_.size()); in TEST_F()
1887 slot_data->vbmeta_images[0].vbmeta_data, in TEST_F()
1888 slot_data->vbmeta_images[0].vbmeta_size)); in TEST_F()
1892 EXPECT_EQ(size_t(2), slot_data->num_loaded_partitions); in TEST_F()
1893 EXPECT_EQ("bar", std::string(slot_data->loaded_partitions[0].partition_name)); in TEST_F()
1894 EXPECT_EQ(bar_image_size, slot_data->loaded_partitions[0].data_size); in TEST_F()
1895 for (size_t n = 0; n < slot_data->loaded_partitions[0].data_size; n++) { in TEST_F()
1896 EXPECT_EQ(slot_data->loaded_partitions[0].data[n], uint8_t(n)); in TEST_F()
1898 EXPECT_EQ("foo", std::string(slot_data->loaded_partitions[1].partition_name)); in TEST_F()
1899 EXPECT_EQ(foo_image_size, slot_data->loaded_partitions[1].data_size); in TEST_F()
1900 for (size_t n = 0; n < slot_data->loaded_partitions[1].data_size; n++) { in TEST_F()
1901 EXPECT_EQ(slot_data->loaded_partitions[1].data[n], uint8_t(n)); in TEST_F()
1903 avb_slot_verify_data_free(slot_data); in TEST_F()
1983 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
1991 &slot_data)); in TEST_F()
1992 EXPECT_NE(nullptr, slot_data); in TEST_F()
1993 EXPECT_EQ(size_t(1), slot_data->num_loaded_partitions); in TEST_F()
1994 EXPECT_EQ("foo", std::string(slot_data->loaded_partitions[0].partition_name)); in TEST_F()
1995 avb_slot_verify_data_free(slot_data); in TEST_F()
2052 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
2063 &slot_data)); in TEST_F()
2073 &slot_data)); in TEST_F()
2074 EXPECT_NE(nullptr, slot_data); in TEST_F()
2075 EXPECT_EQ(size_t(2), slot_data->num_loaded_partitions); in TEST_F()
2076 EXPECT_EQ("foo", std::string(slot_data->loaded_partitions[0].partition_name)); in TEST_F()
2077 EXPECT_EQ("bar", std::string(slot_data->loaded_partitions[1].partition_name)); in TEST_F()
2089 std::string(slot_data->cmdline)); in TEST_F()
2090 avb_slot_verify_data_free(slot_data); in TEST_F()
2101 &slot_data)); in TEST_F()
2102 EXPECT_EQ(nullptr, slot_data); in TEST_F()
2110 &slot_data)); in TEST_F()
2111 EXPECT_EQ(nullptr, slot_data); in TEST_F()
2132 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
2140 &slot_data)); in TEST_F()
2141 EXPECT_NE(nullptr, slot_data); in TEST_F()
2151 std::string(slot_data->cmdline)); in TEST_F()
2152 avb_slot_verify_data_free(slot_data); in TEST_F()
2235 AvbSlotVerifyData* slot_data = NULL; in CmdlineWithHashtreeVerification() local
2243 &slot_data)); in CmdlineWithHashtreeVerification()
2244 EXPECT_NE(nullptr, slot_data); in CmdlineWithHashtreeVerification()
2261 std::string(slot_data->cmdline)); in CmdlineWithHashtreeVerification()
2274 std::string(slot_data->cmdline)); in CmdlineWithHashtreeVerification()
2276 avb_slot_verify_data_free(slot_data); in CmdlineWithHashtreeVerification()
2416 AvbSlotVerifyData* slot_data = NULL; in CmdlineWithChainedHashtreeVerification() local
2424 &slot_data)); in CmdlineWithChainedHashtreeVerification()
2425 EXPECT_NE(nullptr, slot_data); in CmdlineWithChainedHashtreeVerification()
2442 std::string(slot_data->cmdline)); in CmdlineWithChainedHashtreeVerification()
2455 std::string(slot_data->cmdline)); in CmdlineWithChainedHashtreeVerification()
2457 avb_slot_verify_data_free(slot_data); in CmdlineWithChainedHashtreeVerification()
2591 AvbSlotVerifyData* slot_data = NULL; in VerificationDisabled() local
2599 &slot_data)); in VerificationDisabled()
2600 EXPECT_NE(nullptr, slot_data); in VerificationDisabled()
2603 std::string(slot_data->cmdline)); in VerificationDisabled()
2605 EXPECT_EQ("", std::string(slot_data->cmdline)); in VerificationDisabled()
2609 EXPECT_EQ(size_t(2), slot_data->num_loaded_partitions); in VerificationDisabled()
2611 std::string(slot_data->loaded_partitions[0].partition_name)); in VerificationDisabled()
2612 EXPECT_EQ(boot_part_size, slot_data->loaded_partitions[0].data_size); in VerificationDisabled()
2614 EXPECT_EQ(uint8_t(n), slot_data->loaded_partitions[0].data[n]); in VerificationDisabled()
2616 EXPECT_EQ(preload_boot, slot_data->loaded_partitions[0].preloaded); in VerificationDisabled()
2619 std::string(slot_data->loaded_partitions[1].partition_name)); in VerificationDisabled()
2620 EXPECT_EQ(dtbo_part_size, slot_data->loaded_partitions[1].data_size); in VerificationDisabled()
2623 slot_data->loaded_partitions[1].data[n]); in VerificationDisabled()
2625 EXPECT_FALSE(slot_data->loaded_partitions[1].preloaded); in VerificationDisabled()
2627 avb_slot_verify_data_free(slot_data); in VerificationDisabled()
2823 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
2831 &slot_data)); in TEST_F()
2832 EXPECT_NE(nullptr, slot_data); in TEST_F()
2848 std::string(slot_data->cmdline)); in TEST_F()
2849 avb_slot_verify_data_free(slot_data); in TEST_F()
2895 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
2902 &slot_data)); in TEST_F()
2903 EXPECT_EQ(nullptr, slot_data); in TEST_F()
2950 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
2957 &slot_data)); in TEST_F()
2958 EXPECT_EQ(nullptr, slot_data); in TEST_F()
2990 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
3003 &slot_data)); in TEST_F()
3004 EXPECT_NE(nullptr, slot_data); in TEST_F()
3020 std::string(slot_data->cmdline)); in TEST_F()
3021 avb_slot_verify_data_free(slot_data); in TEST_F()
3033 &slot_data)); in TEST_F()
3034 EXPECT_NE(nullptr, slot_data); in TEST_F()
3049 std::string(slot_data->cmdline)); in TEST_F()
3050 avb_slot_verify_data_free(slot_data); in TEST_F()
3062 &slot_data)); in TEST_F()
3063 EXPECT_NE(nullptr, slot_data); in TEST_F()
3078 std::string(slot_data->cmdline)); in TEST_F()
3079 avb_slot_verify_data_free(slot_data); in TEST_F()
3094 &slot_data)); in TEST_F()
3095 EXPECT_EQ(nullptr, slot_data); in TEST_F()
3103 &slot_data)); in TEST_F()
3104 EXPECT_NE(nullptr, slot_data); in TEST_F()
3119 std::string(slot_data->cmdline)); in TEST_F()
3120 avb_slot_verify_data_free(slot_data); in TEST_F()
3146 &slot_data)); in TEST_F()
3147 EXPECT_NE(nullptr, slot_data); in TEST_F()
3158 std::string(slot_data->cmdline)); in TEST_F()
3159 avb_slot_verify_data_free(slot_data); in TEST_F()
3297 AvbSlotVerifyData* slot_data = NULL; in Verify() local
3305 &slot_data); in Verify()
3308 ASSERT_NE(nullptr, slot_data); in Verify()
3309 last_cmdline_ = slot_data->cmdline; in Verify()
3310 avb_slot_verify_data_free(slot_data); in Verify()
3313 EXPECT_EQ(nullptr, slot_data); in Verify()
3739 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
3749 &slot_data)); in TEST_F()
3750 EXPECT_NE(nullptr, slot_data); in TEST_F()
3752 slot_data->resolved_hashtree_error_mode); in TEST_F()
3753 EXPECT_TRUE(strstr(slot_data->cmdline, "androidboot.veritymode=enforcing") != in TEST_F()
3755 EXPECT_TRUE(strstr(slot_data->cmdline, in TEST_F()
3757 avb_slot_verify_data_free(slot_data); in TEST_F()
3767 &slot_data)); in TEST_F()
3768 EXPECT_NE(nullptr, slot_data); in TEST_F()
3770 slot_data->resolved_hashtree_error_mode); in TEST_F()
3771 EXPECT_TRUE(strstr(slot_data->cmdline, "androidboot.veritymode=enforcing") != in TEST_F()
3773 EXPECT_TRUE(strstr(slot_data->cmdline, in TEST_F()
3775 avb_slot_verify_data_free(slot_data); in TEST_F()
3785 &slot_data)); in TEST_F()
3786 EXPECT_NE(nullptr, slot_data); in TEST_F()
3788 slot_data->resolved_hashtree_error_mode); in TEST_F()
3789 EXPECT_TRUE(strstr(slot_data->cmdline, "androidboot.veritymode=eio") != in TEST_F()
3791 EXPECT_TRUE(strstr(slot_data->cmdline, in TEST_F()
3793 avb_slot_verify_data_free(slot_data); in TEST_F()
3802 &slot_data)); in TEST_F()
3803 EXPECT_NE(nullptr, slot_data); in TEST_F()
3805 slot_data->resolved_hashtree_error_mode); in TEST_F()
3806 EXPECT_TRUE(strstr(slot_data->cmdline, "androidboot.veritymode=eio") != in TEST_F()
3808 EXPECT_TRUE(strstr(slot_data->cmdline, in TEST_F()
3810 avb_slot_verify_data_free(slot_data); in TEST_F()
3820 &slot_data)); in TEST_F()
3821 EXPECT_NE(nullptr, slot_data); in TEST_F()
3823 slot_data->resolved_hashtree_error_mode); in TEST_F()
3824 EXPECT_TRUE(strstr(slot_data->cmdline, "androidboot.veritymode=eio") != in TEST_F()
3826 EXPECT_TRUE(strstr(slot_data->cmdline, in TEST_F()
3828 avb_slot_verify_data_free(slot_data); in TEST_F()
3837 &slot_data)); in TEST_F()
3838 EXPECT_NE(nullptr, slot_data); in TEST_F()
3840 slot_data->resolved_hashtree_error_mode); in TEST_F()
3841 EXPECT_TRUE(strstr(slot_data->cmdline, "androidboot.veritymode=eio") != in TEST_F()
3843 EXPECT_TRUE(strstr(slot_data->cmdline, in TEST_F()
3845 avb_slot_verify_data_free(slot_data); in TEST_F()
3862 &slot_data)); in TEST_F()
3863 EXPECT_NE(nullptr, slot_data); in TEST_F()
3865 slot_data->resolved_hashtree_error_mode); in TEST_F()
3866 EXPECT_TRUE(strstr(slot_data->cmdline, "androidboot.veritymode=enforcing") != in TEST_F()
3868 EXPECT_TRUE(strstr(slot_data->cmdline, in TEST_F()
3870 avb_slot_verify_data_free(slot_data); in TEST_F()
3880 &slot_data)); in TEST_F()
3881 EXPECT_NE(nullptr, slot_data); in TEST_F()
3883 slot_data->resolved_hashtree_error_mode); in TEST_F()
3884 EXPECT_TRUE(strstr(slot_data->cmdline, "androidboot.veritymode=enforcing") != in TEST_F()
3886 EXPECT_TRUE(strstr(slot_data->cmdline, in TEST_F()
3888 avb_slot_verify_data_free(slot_data); in TEST_F()
3902 AvbSlotVerifyData* slot_data = NULL; in TEST_F() local
3910 &slot_data)); in TEST_F()
3911 EXPECT_NE(nullptr, slot_data); in TEST_F()
3921 std::string(slot_data->cmdline)); in TEST_F()
3923 avb_slot_verify_data_free(slot_data); in TEST_F()