Lines Matching refs:ctx

66 #define run_cache_req(ctx, send_fn, done_fn, dom, crp, lookup, expret) do { \
74 req = send_fn(req_mem_ctx, ctx->tctx->ev, ctx->rctx, \
75 ctx->ncache, crp, \
78 tevent_req_set_callback(req, done_fn, ctx); \
80 ret = test_ev_loop(ctx->tctx); \
122 struct cache_req_test_ctx *ctx = NULL;
124 ctx = tevent_req_callback_data(req, struct cache_req_test_ctx);
126 ctx->tctx->error = cache_req_user_by_name_recv(ctx, req,
127 &ctx->result,
128 &ctx->domain,
129 &ctx->name);
132 ctx->tctx->done = true;
137 struct cache_req_test_ctx *ctx = NULL;
139 ctx = tevent_req_callback_data(req, struct cache_req_test_ctx);
141 ctx->tctx->error = cache_req_user_by_id_recv(ctx, req,
142 &ctx->result, &ctx->domain);
145 ctx->tctx->done = true;
150 struct cache_req_test_ctx *ctx = NULL;
152 ctx = tevent_req_callback_data(req, struct cache_req_test_ctx);
154 ctx->tctx->error = cache_req_group_by_name_recv(ctx, req,
155 &ctx->result,
156 &ctx->domain,
157 &ctx->name);
160 ctx->tctx->done = true;
165 struct cache_req_test_ctx *ctx = NULL;
167 ctx = tevent_req_callback_data(req, struct cache_req_test_ctx);
169 ctx->tctx->error = cache_req_group_by_id_recv(ctx, req,
170 &ctx->result, &ctx->domain);
173 ctx->tctx->done = true;
178 struct cache_req_test_ctx *ctx = NULL;
180 ctx = tevent_req_callback_data(req, struct cache_req_test_ctx);
182 ctx->tctx->error = cache_req_object_by_sid_recv(ctx, req,
183 &ctx->result,
184 &ctx->domain);
187 ctx->tctx->done = true;
414 struct cache_req_test_ctx *ctx = NULL;
416 ctx = sss_mock_ptr_type(struct cache_req_test_ctx*);
417 ctx->dp_called = true;
419 if (ctx->create_user1) {
420 prepare_user(ctx->tctx->dom, &users[0], 1000, time(NULL));
423 if (ctx->create_user2) {
424 prepare_user(ctx->tctx->dom, &users[1], 1000, time(NULL));
427 if (ctx->create_group1) {
428 prepare_group(ctx->tctx->dom, &groups[0], 1000, time(NULL));
431 if (ctx->create_group2) {
432 prepare_group(ctx->tctx->dom, &groups[1], 1000, time(NULL));
1406 struct cache_req_test_ctx *ctx = NULL;
1408 ctx = tevent_req_callback_data(req, struct cache_req_test_ctx);
1410 ctx->tctx->error = cache_req_user_by_filter_recv(ctx, req,
1411 &ctx->result,
1412 &ctx->domain);
1414 ctx->tctx->done = true;
1623 struct cache_req_test_ctx *ctx = NULL;
1625 ctx = tevent_req_callback_data(req, struct cache_req_test_ctx);
1627 ctx->tctx->error = cache_req_group_by_filter_recv(ctx, req,
1628 &ctx->result,
1629 &ctx->domain);
1631 ctx->tctx->done = true;