Lines Matching refs:bad

71   AvbFooter bad;  in TEST_F()  local
106 bad = h; in TEST_F()
107 bad.magic[0] = 'x'; in TEST_F()
108 EXPECT_EQ(0, avb_footer_validate_and_byteswap(&bad, &s)); in TEST_F()
111 bad = h; in TEST_F()
112 bad.version_major = htobe32(AVB_FOOTER_VERSION_MAJOR + 1); in TEST_F()
113 EXPECT_EQ(0, avb_footer_validate_and_byteswap(&bad, &s)); in TEST_F()
119 AvbKernelCmdlineDescriptor bad; in TEST_F() local
144 bad = h; in TEST_F()
145 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
146 EXPECT_EQ(0, avb_kernel_cmdline_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
149 bad = h; in TEST_F()
150 bad.kernel_cmdline_length = htobe32(41); in TEST_F()
151 EXPECT_EQ(0, avb_kernel_cmdline_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
157 AvbHashtreeDescriptor bad; in TEST_F() local
223 bad = h; in TEST_F()
224 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
225 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
228 bad = h; in TEST_F()
229 bad.partition_name_len = htobe32(30); in TEST_F()
230 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
233 bad = h; in TEST_F()
234 bad.salt_len = htobe32(30); in TEST_F()
235 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
238 bad = h; in TEST_F()
239 bad.root_digest_len = htobe32(30); in TEST_F()
240 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
246 AvbHashDescriptor bad; in TEST_F() local
266 bad = h; in TEST_F()
267 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
268 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
271 bad = h; in TEST_F()
272 bad.partition_name_len = htobe32(30); in TEST_F()
273 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
276 bad = h; in TEST_F()
277 bad.salt_len = htobe32(30); in TEST_F()
278 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
281 bad = h; in TEST_F()
282 bad.digest_len = htobe32(30); in TEST_F()
283 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
289 AvbChainPartitionDescriptor bad; in TEST_F() local
309 bad = h; in TEST_F()
310 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
311 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
314 bad = h; in TEST_F()
315 bad.rollback_index_location = htobe32(0); in TEST_F()
316 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
319 bad = h; in TEST_F()
320 bad.partition_name_len = htobe32(24); in TEST_F()
321 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
324 bad = h; in TEST_F()
325 bad.public_key_len = htobe32(25); in TEST_F()
326 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
332 AvbPropertyDescriptor bad; in TEST_F() local
350 bad = h; in TEST_F()
351 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
352 EXPECT_EQ(0, avb_property_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
355 bad = h; in TEST_F()
356 bad.key_num_bytes = htobe64(22); in TEST_F()
357 EXPECT_EQ(0, avb_property_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
360 bad = h; in TEST_F()
361 bad.value_num_bytes = htobe64(23); in TEST_F()
362 EXPECT_EQ(0, avb_property_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()