/third_party/selinux/libsepol/cil/test/unit/ |
D | test_cil_build_ast.h | 130 void test_cil_gen_classmap_perm_dbnull_neg(CuTest *tc); 131 void test_cil_gen_classmap_perm_currnull_neg(CuTest *tc); 132 void test_cil_gen_classmap_perm_astnull_neg(CuTest *tc); 138 void test_cil_gen_classmap_dbnull_neg(CuTest *tc); 139 void test_cil_gen_classmap_currnull_neg(CuTest *tc); 140 void test_cil_gen_classmap_astnull_neg(CuTest *tc); 149 void test_cil_gen_classmapping_dbnull_neg(CuTest *tc); 150 void test_cil_gen_classmapping_currnull_neg(CuTest *tc); 151 void test_cil_gen_classmapping_astnull_neg(CuTest *tc); 154 void test_cil_gen_common_dbnull_neg(CuTest *tc); [all …]
|
D | test_cil_copy_ast.h | 41 void test_cil_copy_node_helper_block(CuTest *tc); 42 void test_cil_copy_node_helper_block_merge(CuTest *tc); 45 void test_cil_copy_node_helper_perm(CuTest *tc); 46 void test_cil_copy_node_helper_perm_neg(CuTest *tc); 49 void test_cil_copy_node_helper_class(CuTest *tc); 50 void test_cil_copy_node_helper_class_dup_neg(CuTest *tc); 53 void test_cil_copy_node_helper_common(CuTest *tc); 54 void test_cil_copy_node_helper_common_dup_neg(CuTest *tc); 57 void test_cil_copy_node_helper_classcommon(CuTest *tc); 60 void test_cil_copy_node_helper_sid(CuTest *tc); [all …]
|
D | test_cil_post.h | 35 void test_cil_post_filecon_compare_meta_a_not_b(CuTest *tc); 36 void test_cil_post_filecon_compare_meta_b_not_a(CuTest *tc); 37 void test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b(CuTest *tc); 38 void test_cil_post_filecon_compare_meta_a_and_b_strlen_b_greater_a(CuTest *tc); 39 void test_cil_post_filecon_compare_type_atype_greater_btype(CuTest *tc); 40 void test_cil_post_filecon_compare_type_btype_greater_atype(CuTest *tc); 41 void test_cil_post_filecon_compare_stemlen_a_greater_b(CuTest *tc); 42 void test_cil_post_filecon_compare_stemlen_b_greater_a(CuTest *tc); 43 void test_cil_post_filecon_compare_equal(CuTest *tc); 45 void test_cil_post_portcon_compare_atotal_greater_btotal(CuTest *tc); [all …]
|
D | test_cil_resolve_ast.h | 41 void test_cil_resolve_rolebounds(CuTest *tc); 42 void test_cil_resolve_rolebounds_exists_neg(CuTest *tc); 43 void test_cil_resolve_rolebounds_role1_neg(CuTest *tc); 44 void test_cil_resolve_rolebounds_role2_neg(CuTest *tc); 218 void test_cil_resolve_ast_node_helper_filecon(CuTest *tc); 219 void test_cil_resolve_ast_node_helper_filecon_neg(CuTest *tc); 225 void test_cil_resolve_ast_node_helper_portcon(CuTest *tc); 226 void test_cil_resolve_ast_node_helper_portcon_neg(CuTest *tc); 232 void test_cil_resolve_ast_node_helper_genfscon(CuTest *tc); 233 void test_cil_resolve_ast_node_helper_genfscon_neg(CuTest *tc); [all …]
|
D | CuTest.h | 78 void CuTestRun(CuTest* tc); 82 void CuFail_Line(CuTest* tc, const char* file, int line, const char* message2, const char* message); 83 void CuAssert_Line(CuTest* tc, const char* file, int line, const char* message, int condition); 84 void CuAssertStrEquals_LineMsg(CuTest* tc, 87 void CuAssertIntEquals_LineMsg(CuTest* tc, 90 void CuAssertDblEquals_LineMsg(CuTest* tc, 93 void CuAssertPtrEquals_LineMsg(CuTest* tc, 99 #define CuFail(tc, ms) CuFail_Line( (tc), __FILE__, __LINE__, NULL, (ms)) argument 100 #define CuAssert(tc, ms, cond) CuAssert_Line((tc), __FILE__, __LINE__, (ms), (cond)) argument 101 #define CuAssertTrue(tc, cond) CuAssert_Line((tc), __FILE__, __LINE__, "assert faile… argument [all …]
|
D | test_cil_build_ast.c | 63 void test_cil_parse_to_list(CuTest *tc) { in test_cil_parse_to_list() argument 89 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_parse_to_list() 94 void test_cil_parse_to_list_currnull_neg(CuTest *tc) { in test_cil_parse_to_list_currnull_neg() argument 120 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_parse_to_list_currnull_neg() 125 void test_cil_parse_to_list_listnull_neg(CuTest *tc) { in test_cil_parse_to_list_listnull_neg() argument 149 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_parse_to_list_listnull_neg() 154 void test_cil_set_to_list(CuTest *tc) { in test_cil_set_to_list() argument 167 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_set_to_list() 168 CuAssertStrEquals(tc, "foo1", (char*)cil_l->head->data); in test_cil_set_to_list() 169 CuAssertStrEquals(tc, "foo2", (char*)cil_l->head->next->data); in test_cil_set_to_list() [all …]
|
D | test_cil_copy_ast.c | 56 void test_cil_copy_list(CuTest *tc) { in test_cil_copy_list() argument 71 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list() 72 CuAssertStrEquals(tc, copy_list->head->data, cil_l->head->data); in test_cil_copy_list() 73 CuAssertStrEquals(tc, copy_list->head->next->data, cil_l->head->next->data); in test_cil_copy_list() 74 CuAssertIntEquals(tc, copy_list->head->flavor, cil_l->head->flavor); in test_cil_copy_list() 75 CuAssertIntEquals(tc, copy_list->head->next->flavor, cil_l->head->next->flavor); in test_cil_copy_list() 78 void test_cil_copy_list_sublist(CuTest *tc) { in test_cil_copy_list_sublist() argument 93 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list_sublist() 94 CuAssertStrEquals(tc, copy_list->head->data, cil_l->head->data); in test_cil_copy_list_sublist() 95 CuAssertStrEquals(tc, copy_list->head->next->data, cil_l->head->next->data); in test_cil_copy_list_sublist() [all …]
|
D | test_cil_lexer.c | 37 void test_cil_lexer_setup(CuTest *tc) { in test_cil_lexer_setup() argument 46 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_setup() 51 void test_cil_lexer_next(CuTest *tc) { in test_cil_lexer_next() argument 64 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next() 66 CuAssertIntEquals(tc, OPAREN, test_tok.type); in test_cil_lexer_next() 67 CuAssertStrEquals(tc, "(", test_tok.value); in test_cil_lexer_next() 68 CuAssertIntEquals(tc, 1, test_tok.line); in test_cil_lexer_next() 71 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next() 73 CuAssertIntEquals(tc, SYMBOL, test_tok.type); in test_cil_lexer_next() 74 CuAssertStrEquals(tc, "test", test_tok.value); in test_cil_lexer_next() [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/ |
D | gstvideotimecode.c | 66 gst_video_time_code_is_valid (const GstVideoTimeCode * tc) in gst_video_time_code_is_valid() argument 70 g_return_val_if_fail (tc != NULL, FALSE); in gst_video_time_code_is_valid() 72 if (tc->config.fps_n == 0 || tc->config.fps_d == 0) in gst_video_time_code_is_valid() 75 if (tc->hours >= 24) in gst_video_time_code_is_valid() 77 if (tc->minutes >= 60) in gst_video_time_code_is_valid() 79 if (tc->seconds >= 60) in gst_video_time_code_is_valid() 83 fr = (tc->config.fps_n + (tc->config.fps_d >> 1)) / tc->config.fps_d; in gst_video_time_code_is_valid() 84 if (tc->frames >= fr && (tc->config.fps_n != 0 || tc->config.fps_d != 1)) in gst_video_time_code_is_valid() 89 if (tc->config.fps_d == 1001) { in gst_video_time_code_is_valid() 90 if (tc->config.fps_n != 30000 && tc->config.fps_n != 60000 && in gst_video_time_code_is_valid() [all …]
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_tex_tile_cache.c | 49 struct softpipe_tex_tile_cache *tc; in sp_create_tex_tile_cache() local 55 tc = CALLOC_STRUCT( softpipe_tex_tile_cache ); in sp_create_tex_tile_cache() 56 if (tc) { in sp_create_tex_tile_cache() 57 tc->pipe = pipe; in sp_create_tex_tile_cache() 58 for (pos = 0; pos < ARRAY_SIZE(tc->entries); pos++) { in sp_create_tex_tile_cache() 59 tc->entries[pos].addr.bits.invalid = 1; in sp_create_tex_tile_cache() 61 tc->last_tile = &tc->entries[0]; /* any tile */ in sp_create_tex_tile_cache() 63 return tc; in sp_create_tex_tile_cache() 68 sp_destroy_tex_tile_cache(struct softpipe_tex_tile_cache *tc) in sp_destroy_tex_tile_cache() argument 70 if (tc) { in sp_destroy_tex_tile_cache() [all …]
|
D | sp_tile_cache.c | 42 sp_alloc_tile(struct softpipe_tile_cache *tc); 93 struct softpipe_tile_cache *tc; in sp_create_tile_cache() local 104 tc = CALLOC_STRUCT( softpipe_tile_cache ); in sp_create_tile_cache() 105 if (tc) { in sp_create_tile_cache() 106 tc->pipe = pipe; in sp_create_tile_cache() 107 for (pos = 0; pos < ARRAY_SIZE(tc->tile_addrs); pos++) { in sp_create_tile_cache() 108 tc->tile_addrs[pos].bits.invalid = 1; in sp_create_tile_cache() 110 tc->last_tile_addr.bits.invalid = 1; in sp_create_tile_cache() 115 tc->tile = MALLOC_STRUCT( softpipe_cached_tile ); in sp_create_tile_cache() 116 if (!tc->tile) in sp_create_tile_cache() [all …]
|
/third_party/libnl/lib/route/ |
D | tc.c | 65 int rtnl_tc_msg_parse(struct nlmsghdr *n, struct rtnl_tc *tc) in rtnl_tc_msg_parse() argument 74 tc->ce_msgtype = n->nlmsg_type; in rtnl_tc_msg_parse() 84 rtnl_tc_set_kind(tc, kind); in rtnl_tc_msg_parse() 87 rtnl_tc_set_chain(tc, nla_get_u32(tb[TCA_CHAIN])); in rtnl_tc_msg_parse() 90 tc->tc_family = tm->tcm_family; in rtnl_tc_msg_parse() 91 tc->tc_ifindex = tm->tcm_ifindex; in rtnl_tc_msg_parse() 92 tc->tc_handle = tm->tcm_handle; in rtnl_tc_msg_parse() 93 tc->tc_parent = tm->tcm_parent; in rtnl_tc_msg_parse() 94 tc->tc_info = tm->tcm_info; in rtnl_tc_msg_parse() 96 tc->ce_mask |= (TCA_ATTR_FAMILY | TCA_ATTR_IFINDEX | TCA_ATTR_HANDLE| in rtnl_tc_msg_parse() [all …]
|
/third_party/gstreamer/gstplugins_base/tests/check/libs/ |
D | videotimecode.c | 370 GstVideoTimeCode *tc; in GST_START_TEST() local 375 tc = gst_video_time_code_new (50, 1, dt, in GST_START_TEST() 378 fail_unless_equals_uint64 (gst_video_time_code_nsec_since_daily_jam (tc), 0); in GST_START_TEST() 379 fail_unless_equals_uint64 (gst_video_time_code_frames_since_daily_jam (tc), in GST_START_TEST() 382 gst_video_time_code_add_frames (tc, 10); in GST_START_TEST() 383 fail_unless_equals_uint64 (gst_video_time_code_nsec_since_daily_jam (tc), in GST_START_TEST() 385 fail_unless_equals_uint64 (gst_video_time_code_frames_since_daily_jam (tc), in GST_START_TEST() 388 gst_video_time_code_add_frames (tc, 40); in GST_START_TEST() 389 fail_unless_equals_uint64 (gst_video_time_code_nsec_since_daily_jam (tc), in GST_START_TEST() 391 fail_unless_equals_uint64 (gst_video_time_code_frames_since_daily_jam (tc), in GST_START_TEST() [all …]
|
/third_party/ffmpeg/libavutil/ |
D | timecode.c | 52 uint32_t av_timecode_get_smpte_from_framenum(const AVTimecode *tc, int framenum) in av_timecode_get_smpte_from_framenum() argument 54 unsigned fps = tc->fps; in av_timecode_get_smpte_from_framenum() 55 int drop = !!(tc->flags & AV_TIMECODE_FLAG_DROPFRAME); in av_timecode_get_smpte_from_framenum() 58 framenum += tc->start; in av_timecode_get_smpte_from_framenum() 60 framenum = av_timecode_adjust_ntsc_framenum2(framenum, tc->fps); in av_timecode_get_smpte_from_framenum() 65 return av_timecode_get_smpte(tc->rate, drop, hh, mm, ss, ff); in av_timecode_get_smpte_from_framenum() 70 uint32_t tc = 0; in av_timecode_get_smpte() local 77 tc |= (1 << 7); in av_timecode_get_smpte() 79 tc |= (1 << 23); in av_timecode_get_smpte() 89 tc |= drop << 30; in av_timecode_get_smpte() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/membarrier/ |
D | membarrier01.c | 43 struct test_case tc[] = { variable 285 if (!tc[i].enabled && !tc[i].force) { in verify_membarrier() 287 if (tc[i].always == 0) in verify_membarrier() 288 skipped(tc[i]); in verify_membarrier() 290 skipped_fail(tc[i]); in verify_membarrier() 295 if (tc[i].needregister && tc[i].enabled) { in verify_membarrier() 296 ret = sys_membarrier(tc[i].needregister, 0); in verify_membarrier() 299 tc[i].testname); in verify_membarrier() 303 TEST(sys_membarrier(tc[i].command, tc[i].flags)); in verify_membarrier() 307 if (tc[i].enabled && !tc[i].force) { in verify_membarrier() [all …]
|
/third_party/expat/tests/ |
D | minicheck.c | 60 TCase *tc = (TCase *)calloc(1, sizeof(TCase)); in tcase_create() local 61 if (tc != NULL) { in tcase_create() 62 tc->name = name; in tcase_create() 64 return tc; in tcase_create() 68 suite_add_tcase(Suite *suite, TCase *tc) { in suite_add_tcase() argument 70 assert(tc != NULL); in suite_add_tcase() 71 assert(tc->next_tcase == NULL); in suite_add_tcase() 73 tc->next_tcase = suite->tests; in suite_add_tcase() 74 suite->tests = tc; in suite_add_tcase() 78 tcase_add_checked_fixture(TCase *tc, tcase_setup_function setup, in tcase_add_checked_fixture() argument [all …]
|
/third_party/skia/third_party/externals/expat/expat/tests/ |
D | minicheck.c | 60 TCase *tc = (TCase *)calloc(1, sizeof(TCase)); in tcase_create() local 61 if (tc != NULL) { in tcase_create() 62 tc->name = name; in tcase_create() 64 return tc; in tcase_create() 68 suite_add_tcase(Suite *suite, TCase *tc) { in suite_add_tcase() argument 70 assert(tc != NULL); in suite_add_tcase() 71 assert(tc->next_tcase == NULL); in suite_add_tcase() 73 tc->next_tcase = suite->tests; in suite_add_tcase() 74 suite->tests = tc; in suite_add_tcase() 78 tcase_add_checked_fixture(TCase *tc, tcase_setup_function setup, in tcase_add_checked_fixture() argument [all …]
|
/third_party/libinput/test/ |
D | litest-selftest.c | 373 TCase *tc; in litest_assert_macros_suite() local 377 tc = tcase_create("assert"); in litest_assert_macros_suite() 378 tcase_add_test_raise_signal(tc, litest_assert_trigger, SIGABRT); in litest_assert_macros_suite() 379 tcase_add_test(tc, litest_assert_notrigger); in litest_assert_macros_suite() 380 tcase_add_test_raise_signal(tc, litest_assert_msg_trigger, SIGABRT); in litest_assert_macros_suite() 381 tcase_add_test_raise_signal(tc, litest_assert_msg_NULL_trigger, SIGABRT); in litest_assert_macros_suite() 382 tcase_add_test(tc, litest_assert_msg_notrigger); in litest_assert_macros_suite() 383 suite_add_tcase(s, tc); in litest_assert_macros_suite() 385 tc = tcase_create("abort"); in litest_assert_macros_suite() 386 tcase_add_test_raise_signal(tc, litest_abort_msg_trigger, SIGABRT); in litest_assert_macros_suite() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_threaded_context.c | 82 tc_debug_check(struct threaded_context *tc) in tc_debug_check() argument 85 tc_batch_check(&tc->batch_slots[i]); in tc_debug_check() 86 tc_assert(tc->batch_slots[i].tc == tc); in tc_debug_check() 91 tc_set_driver_thread(struct threaded_context *tc) in tc_set_driver_thread() argument 94 tc->driver_thread = util_get_thread_id(); in tc_set_driver_thread() 99 tc_clear_driver_thread(struct threaded_context *tc) in tc_clear_driver_thread() argument 102 memset(&tc->driver_thread, 0, sizeof(tc->driver_thread)); in tc_clear_driver_thread() 196 struct pipe_context *pipe = batch->tc->pipe; in tc_batch_execute() 200 tc_set_driver_thread(batch->tc); in tc_batch_execute() 220 struct threaded_context *tc = batch->tc; in tc_batch_execute() local [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mincore/ |
D | mincore01.c | 61 static void setup1(struct test_case_t *tc); 62 static void setup2(struct test_case_t *tc); 63 static void setup3(struct test_case_t *tc); 64 static void setup4(struct test_case_t *tc); 71 void (*setupfunc) (struct test_case_t *tc); 79 static void mincore_verify(struct test_case_t *tc); 102 static void setup1(struct test_case_t *tc) in setup1() argument 104 tc->addr = global_pointer + 1; in setup1() 105 tc->len = global_len; in setup1() 106 tc->vector = global_vec; in setup1() [all …]
|
/third_party/gstreamer/gstplugins_good/ext/dv/ |
D | smpte_test.c | 15 GstSMPTETimeCode tc; in main() local 22 gst_smpte_time_code_from_frame_number (GST_SMPTE_TIME_CODE_SYSTEM_30, &tc, in main() 24 g_print ("%d %02d:%02d:%02d:%02d\n", i, tc.hours, tc.minutes, tc.seconds, in main() 25 tc.frames); in main() 32 gst_smpte_time_code_from_frame_number (GST_SMPTE_TIME_CODE_SYSTEM_30, &tc, in main() 34 g_print ("%d %02d:%02d:%02d:%02d\n", i, tc.hours, tc.minutes, tc.seconds, in main() 35 tc.frames); in main() 44 gst_smpte_time_code_from_frame_number (GST_SMPTE_TIME_CODE_SYSTEM_30, &tc, in main() 46 g_print ("%d %02d:%02d:%02d:%02d\n", i, tc.hours, tc.minutes, tc.seconds, in main() 47 tc.frames); in main() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/get_mempolicy/ |
D | get_mempolicy01.c | 45 int (*pre_test)(struct test_case *tc); 46 int (*alloc)(struct test_case *tc); 50 static int test_set_mempolicy_default(struct test_case *tc); 51 static int test_set_mempolicy_none(struct test_case *tc); 52 static int test_mbind_none(struct test_case *tc); 53 static int test_mbind_default(struct test_case *tc); 112 static int test_set_mempolicy_default(struct test_case *tc) in test_set_mempolicy_default() argument 114 TEST(set_mempolicy(tc->policy, nodemask->maskp, nodemask->size)); in test_set_mempolicy_default() 118 static int test_set_mempolicy_none(struct test_case *tc) in test_set_mempolicy_none() argument 120 TEST(set_mempolicy(tc->policy, NULL, 0)); in test_set_mempolicy_none() [all …]
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | type_constructor_validation_test.cc | 314 auto* tc = Construct(lhs_type2, arg); in TEST_P() local 315 auto* a = Var("a", lhs_type1, ast::StorageClass::kNone, tc); in TEST_P() 324 auto* call = Sem().Get(tc); in TEST_P() 448 auto* tc = array<u32, 10>(); in TEST_F() local 449 WrapInFunction(tc); in TEST_F() 453 auto* call = Sem().Get(tc); in TEST_F() 465 auto* tc = array<u32, 3>(Expr(0u), Expr(10u), Expr(20u)); in TEST_F() local 466 WrapInFunction(tc); in TEST_F() 470 auto* call = Sem().Get(tc); in TEST_F() 485 auto* tc = array<u32, 3>(Expr(0u), Expr(Source{{12, 34}}, 1.0f), Expr(20u)); in TEST_F() local [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fgetxattr/ |
D | fgetxattr02.c | 81 static struct test_case tc[] = { variable 163 const char *fname = strstr(tc[i].fname, "fgetxattr02") + OFFSET; in verify_fgetxattr() 165 TEST(fgetxattr(tc[i].fd, tc[i].key, tc[i].ret_value, tc[i].size)); in verify_fgetxattr() 172 if (tc[i].exp_ret == TST_RET) { in verify_fgetxattr() 181 if (strncmp(tc[i].ret_value, XATTR_TEST_VALUE, in verify_fgetxattr() 184 XATTR_TEST_VALUE, tc[i].ret_value); in verify_fgetxattr() 196 if (tc[i].exp_err == ENODATA && tst_kvercmp(3, 0, 0) < 0) in verify_fgetxattr() 197 tc[i].exp_err = EPERM; in verify_fgetxattr() 199 if (tc[i].exp_err == TST_ERR) { in verify_fgetxattr() 226 for (i = 0; i < ARRAY_SIZE(tc); i++) { in setup() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fsetxattr/ |
D | fsetxattr02.c | 73 static struct test_case tc[] = { variable 143 const char *fname = strstr(tc[i].fname, "fsetxattr02") + OFFSET; in verify_fsetxattr() 146 if (tc[i].needskeyset) { in verify_fsetxattr() 147 SAFE_FSETXATTR(tc[i].fd, tc[i].key, tc[i].value, tc[i].size, in verify_fsetxattr() 151 TEST(fsetxattr(tc[i].fd, tc[i].key, tc[i].value, tc[i].size, in verify_fsetxattr() 152 tc[i].flags)); in verify_fsetxattr() 159 if (!tc[i].exp_err) { in verify_fsetxattr() 168 SAFE_FREMOVEXATTR(tc[i].fd, tc[i].key); in verify_fsetxattr() 181 if (tc[i].exp_err != TST_ERR) { in verify_fsetxattr() 184 fname, tst_strerrno(tc[i].exp_err)); in verify_fsetxattr() [all …]
|