• Home
  • Raw
  • Download

Lines Matching refs:bad

72   AvbFooter bad;  in TEST_F()  local
107 bad = h; in TEST_F()
108 bad.magic[0] = 'x'; in TEST_F()
109 EXPECT_EQ(0, avb_footer_validate_and_byteswap(&bad, &s)); in TEST_F()
112 bad = h; in TEST_F()
113 bad.version_major = htobe32(AVB_FOOTER_VERSION_MAJOR + 1); in TEST_F()
114 EXPECT_EQ(0, avb_footer_validate_and_byteswap(&bad, &s)); in TEST_F()
120 AvbKernelCmdlineDescriptor bad; in TEST_F() local
145 bad = h; in TEST_F()
146 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
147 EXPECT_EQ(0, avb_kernel_cmdline_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
150 bad = h; in TEST_F()
151 bad.kernel_cmdline_length = htobe32(41); in TEST_F()
152 EXPECT_EQ(0, avb_kernel_cmdline_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
158 AvbHashtreeDescriptor bad; in TEST_F() local
224 bad = h; in TEST_F()
225 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
226 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
229 bad = h; in TEST_F()
230 bad.partition_name_len = htobe32(30); in TEST_F()
231 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
234 bad = h; in TEST_F()
235 bad.salt_len = htobe32(30); in TEST_F()
236 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
239 bad = h; in TEST_F()
240 bad.root_digest_len = htobe32(30); in TEST_F()
241 EXPECT_FALSE(avb_hashtree_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
247 AvbHashDescriptor bad; in TEST_F() local
267 bad = h; in TEST_F()
268 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
269 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
272 bad = h; in TEST_F()
273 bad.partition_name_len = htobe32(30); in TEST_F()
274 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
277 bad = h; in TEST_F()
278 bad.salt_len = htobe32(30); in TEST_F()
279 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
282 bad = h; in TEST_F()
283 bad.digest_len = htobe32(30); in TEST_F()
284 EXPECT_EQ(0, avb_hash_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
290 AvbChainPartitionDescriptor bad; in TEST_F() local
310 bad = h; in TEST_F()
311 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
312 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
315 bad = h; in TEST_F()
316 bad.rollback_index_location = htobe32(0); in TEST_F()
317 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
320 bad = h; in TEST_F()
321 bad.partition_name_len = htobe32(24); in TEST_F()
322 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
325 bad = h; in TEST_F()
326 bad.public_key_len = htobe32(25); in TEST_F()
327 EXPECT_EQ(0, avb_chain_partition_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
333 AvbPropertyDescriptor bad; in TEST_F() local
351 bad = h; in TEST_F()
352 bad.parent_descriptor.tag = htobe64(0xf00dd00d); in TEST_F()
353 EXPECT_EQ(0, avb_property_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
356 bad = h; in TEST_F()
357 bad.key_num_bytes = htobe64(22); in TEST_F()
358 EXPECT_EQ(0, avb_property_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()
361 bad = h; in TEST_F()
362 bad.value_num_bytes = htobe64(23); in TEST_F()
363 EXPECT_EQ(0, avb_property_descriptor_validate_and_byteswap(&bad, &s)); in TEST_F()