Lines Matching refs:bad
70 AvbFooter bad; in TEST_F() local
105 bad = h; in TEST_F()
106 bad.magic[0] = 'x'; in TEST_F()
107 EXPECT_EQ(0, avb_footer_validate_and_byteswap(&bad, &s)); in TEST_F()
110 bad = h; in TEST_F()
111 bad.version_major = htobe32(AVB_FOOTER_VERSION_MAJOR + 1); in TEST_F()
112 EXPECT_EQ(0, avb_footer_validate_and_byteswap(&bad, &s)); in TEST_F()
118 AvbKernelCmdlineDescriptor bad; in TEST_F() local
143 bad = h; in TEST_F()
144 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
145 EXPECT_EQ(0, avb_kernel_cmdline_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
148 bad = h; in TEST_F()
149 bad.kernel_cmdline_length = htobe32(41); in TEST_F()
150 EXPECT_EQ(0, avb_kernel_cmdline_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
156 AvbHashtreeDescriptor bad; in TEST_F() local
222 bad = h; in TEST_F()
223 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
224 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
227 bad = h; in TEST_F()
228 bad.partition_name_len = htobe32(30); in TEST_F()
229 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
232 bad = h; in TEST_F()
233 bad.salt_len = htobe32(30); in TEST_F()
234 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
237 bad = h; in TEST_F()
238 bad.root_digest_len = htobe32(30); in TEST_F()
239 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
245 AvbHashDescriptor bad; in TEST_F() local
265 bad = h; in TEST_F()
266 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
267 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
270 bad = h; in TEST_F()
271 bad.partition_name_len = htobe32(30); in TEST_F()
272 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
275 bad = h; in TEST_F()
276 bad.salt_len = htobe32(30); in TEST_F()
277 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
280 bad = h; in TEST_F()
281 bad.digest_len = htobe32(30); in TEST_F()
282 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
288 AvbChainPartitionDescriptor bad; in TEST_F() local
308 bad = h; in TEST_F()
309 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
310 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
313 bad = h; in TEST_F()
314 bad.rollback_index_location = htobe32(0); in TEST_F()
315 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
318 bad = h; in TEST_F()
319 bad.partition_name_len = htobe32(24); in TEST_F()
320 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
323 bad = h; in TEST_F()
324 bad.public_key_len = htobe32(25); in TEST_F()
325 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
331 AvbPropertyDescriptor bad; in TEST_F() local
349 bad = h; in TEST_F()
350 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
351 EXPECT_EQ(0, avb_property_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
354 bad = h; in TEST_F()
355 bad.key_num_bytes = htobe64(22); in TEST_F()
356 EXPECT_EQ(0, avb_property_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
359 bad = h; in TEST_F()
360 bad.value_num_bytes = htobe64(23); in TEST_F()
361 EXPECT_EQ(0, avb_property_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()