Lines Matching refs:size
189 size_t size; in policy_unpack_test_unpack_blob_with_null_name() local
192 size = unpack_blob(puf->e, &blob, NULL); in policy_unpack_test_unpack_blob_with_null_name()
194 KUNIT_ASSERT_EQ(test, size, TEST_BLOB_DATA_SIZE); in policy_unpack_test_unpack_blob_with_null_name()
203 size_t size; in policy_unpack_test_unpack_blob_with_name() local
206 size = unpack_blob(puf->e, &blob, TEST_BLOB_NAME); in policy_unpack_test_unpack_blob_with_name()
208 KUNIT_ASSERT_EQ(test, size, TEST_BLOB_DATA_SIZE); in policy_unpack_test_unpack_blob_with_name()
218 int size; in policy_unpack_test_unpack_blob_out_of_bounds() local
225 size = unpack_blob(puf->e, &blob, TEST_BLOB_NAME); in policy_unpack_test_unpack_blob_out_of_bounds()
227 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_blob_out_of_bounds()
235 size_t size; in policy_unpack_test_unpack_str_with_null_name() local
238 size = unpack_str(puf->e, &string, NULL); in policy_unpack_test_unpack_str_with_null_name()
240 KUNIT_EXPECT_EQ(test, size, strlen(TEST_STRING_DATA) + 1); in policy_unpack_test_unpack_str_with_null_name()
248 size_t size; in policy_unpack_test_unpack_str_with_name() local
250 size = unpack_str(puf->e, &string, TEST_STRING_NAME); in policy_unpack_test_unpack_str_with_name()
252 KUNIT_EXPECT_EQ(test, size, strlen(TEST_STRING_DATA) + 1); in policy_unpack_test_unpack_str_with_name()
261 int size; in policy_unpack_test_unpack_str_out_of_bounds() local
266 size = unpack_str(puf->e, &string, TEST_STRING_NAME); in policy_unpack_test_unpack_str_out_of_bounds()
268 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_str_out_of_bounds()
276 size_t size; in policy_unpack_test_unpack_strdup_with_null_name() local
279 size = unpack_strdup(puf->e, &string, NULL); in policy_unpack_test_unpack_strdup_with_null_name()
281 KUNIT_EXPECT_EQ(test, size, strlen(TEST_STRING_DATA) + 1); in policy_unpack_test_unpack_strdup_with_null_name()
292 size_t size; in policy_unpack_test_unpack_strdup_with_name() local
294 size = unpack_strdup(puf->e, &string, TEST_STRING_NAME); in policy_unpack_test_unpack_strdup_with_name()
296 KUNIT_EXPECT_EQ(test, size, strlen(TEST_STRING_DATA) + 1); in policy_unpack_test_unpack_strdup_with_name()
308 int size; in policy_unpack_test_unpack_strdup_out_of_bounds() local
313 size = unpack_strdup(puf->e, &string, TEST_STRING_NAME); in policy_unpack_test_unpack_strdup_out_of_bounds()
315 KUNIT_EXPECT_EQ(test, size, 0); in policy_unpack_test_unpack_strdup_out_of_bounds()
382 size_t size; in policy_unpack_test_unpack_u16_chunk_basic() local
392 size = unpack_u16_chunk(puf->e, &chunk); in policy_unpack_test_unpack_u16_chunk_basic()
396 KUNIT_EXPECT_EQ(test, size, (size_t)TEST_U16_DATA); in policy_unpack_test_unpack_u16_chunk_basic()
405 size_t size; in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1() local
409 size = unpack_u16_chunk(puf->e, &chunk); in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1()
411 KUNIT_EXPECT_EQ(test, size, (size_t)0); in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1()
421 size_t size; in policy_unpack_test_unpack_u16_chunk_out_of_bounds_2() local
431 size = unpack_u16_chunk(puf->e, &chunk); in policy_unpack_test_unpack_u16_chunk_out_of_bounds_2()
433 KUNIT_EXPECT_EQ(test, size, (size_t)0); in policy_unpack_test_unpack_u16_chunk_out_of_bounds_2()