c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek Jakub Hrozek <jhrozek@redhat.com>
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek Copyright (C) 2013 Red Hat
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek SSSD tests: Fake Data Provider requests
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek This program is free software; you can redistribute it and/or modify
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek it under the terms of the GNU General Public License as published by
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek the Free Software Foundation; either version 3 of the License, or
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek (at your option) any later version.
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek This program is distributed in the hope that it will be useful,
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek but WITHOUT ANY WARRANTY; without even the implied warranty of
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek GNU General Public License for more details.
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek You should have received a copy of the GNU General Public License
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek along with this program. If not, see <http://www.gnu.org/licenses/>.
a02a5ed51178b2cbede0396d66aed716b8898096René Genz/* Mock DP requests that finish immediately and return
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek * mocked values as per previous set by mock_account_recv
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek return test_req_succeed_send(mem_ctx, rctx->ev);
53c31b83e4d06ea4c2813eec2f1e647a613b4a2bPavel Březina return test_req_succeed_send(mem_ctx, rctx->ev);
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozekvoid mock_account_recv(uint16_t dp_err, uint32_t dp_ret, char *msg,
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek return mock_account_recv(0, 0, NULL, NULL, NULL);
7caf7ed4f2eae1ec1c0717b4ee6ce78bdacd5926Jakub Hrozek return test_req_succeed_send(mem_ctx, rctx->ev);
7caf7ed4f2eae1ec1c0717b4ee6ce78bdacd5926Jakub Hrozekerrno_t sss_parse_inp_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
28ebfa4373d1e7ce45b5d70a3619df1c074a661ePavel Březinavoid mock_parse_inp(const char *name, const char *domname, errno_t ret)
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek/* Mock subdomain requests */
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek const char *hint)
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozek return test_req_succeed_send(mem_ctx, rctx->ev);
c440c424443517b12afa8d56f989d92ca6ba56a3Jakub Hrozekerrno_t sss_dp_get_domains_recv(struct tevent_req *req)
a6eb9c4c3ff68d134bc745e8374f182737e9696bJakub Hrozeksss_dp_get_account_domain_send(TALLOC_CTX *mem_ctx,
a6eb9c4c3ff68d134bc745e8374f182737e9696bJakub Hrozek return test_req_succeed_send(mem_ctx, rctx->ev);