Lines Matching refs:test_ctx

76     struct test_ad_subdom_ctx *test_ctx;
80 test_ctx = talloc_zero(global_talloc_context, struct test_ad_subdom_ctx);
81 assert_non_null(test_ctx);
83 test_ctx->ad_id_ctx = NULL;
85 check_leaks_push(test_ctx);
86 *state = test_ctx;
92 struct test_ad_subdom_ctx *test_ctx;
94 test_ctx = talloc_get_type(*state, struct test_ad_subdom_ctx);
95 assert_non_null(test_ctx);
97 assert_true(check_leaks_pop(test_ctx) == true);
98 talloc_free(test_ctx);
105 struct test_ad_subdom_ctx *test_ctx;
109 test_ctx = talloc_get_type(*state, struct test_ad_subdom_ctx);
110 test_ctx->ad_id_ctx = test_ad_subdom_init_ad_id_ctx(test_ctx);
111 assert_non_null(test_ctx->ad_id_ctx);
113 ret = ad_get_enabled_domains(test_ctx, test_ctx->ad_id_ctx,
119 talloc_zfree(test_ctx->ad_id_ctx);
124 struct test_ad_subdom_ctx *test_ctx;
131 test_ctx = talloc_get_type(*state, struct test_ad_subdom_ctx);
132 test_ctx->ad_id_ctx = test_ad_subdom_init_ad_id_ctx(test_ctx);
133 assert_non_null(test_ctx->ad_id_ctx);
135 ret = dp_opt_set_string(test_ctx->ad_id_ctx->ad_options->basic,
139 ret = ad_get_enabled_domains(test_ctx, test_ctx->ad_id_ctx,
156 talloc_zfree(test_ctx->ad_id_ctx);
162 struct test_ad_subdom_ctx *test_ctx;
169 test_ctx = talloc_get_type(*state, struct test_ad_subdom_ctx);
170 test_ctx->ad_id_ctx = test_ad_subdom_init_ad_id_ctx(test_ctx);
171 assert_non_null(test_ctx->ad_id_ctx);
173 ret = dp_opt_set_string(test_ctx->ad_id_ctx->ad_options->basic,
177 ret = ad_get_enabled_domains(test_ctx, test_ctx->ad_id_ctx,
195 talloc_zfree(test_ctx->ad_id_ctx);
201 struct test_ad_subdom_ctx *test_ctx;
208 test_ctx = talloc_get_type(*state, struct test_ad_subdom_ctx);
209 test_ctx->ad_id_ctx = test_ad_subdom_init_ad_id_ctx(test_ctx);
210 assert_non_null(test_ctx->ad_id_ctx);
212 ret = dp_opt_set_string(test_ctx->ad_id_ctx->ad_options->basic,
216 ret = ad_get_enabled_domains(test_ctx, test_ctx->ad_id_ctx,
232 talloc_zfree(test_ctx->ad_id_ctx);
238 struct test_ad_subdom_ctx *test_ctx;
245 test_ctx = talloc_get_type(*state, struct test_ad_subdom_ctx);
246 test_ctx->ad_id_ctx = test_ad_subdom_init_ad_id_ctx(test_ctx);
247 assert_non_null(test_ctx->ad_id_ctx);
249 ret = dp_opt_set_string(test_ctx->ad_id_ctx->ad_options->basic,
254 ret = ad_get_enabled_domains(test_ctx, test_ctx->ad_id_ctx,
272 talloc_zfree(test_ctx->ad_id_ctx);