diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-05-29 15:42:46 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-06-14 21:47:19 +0200 |
commit | d43c9d18fb263b1ea4071b20e93ce4994583f62f (patch) | |
tree | 48a13f6a0427f5d3af4c7dcf4e967e191d12fa7f /src/tests/cmocka/common_mock_be.h | |
parent | b1a822a16e3ef97e31d167f9e97efec06fc121dc (diff) | |
download | sssd-d43c9d18fb263b1ea4071b20e93ce4994583f62f.tar.gz sssd-d43c9d18fb263b1ea4071b20e93ce4994583f62f.tar.xz sssd-d43c9d18fb263b1ea4071b20e93ce4994583f62f.zip |
TESTS: Add a common mock_be_ctx function
Reduces code duplication between tests.
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/tests/cmocka/common_mock_be.h')
-rw-r--r-- | src/tests/cmocka/common_mock_be.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/tests/cmocka/common_mock_be.h b/src/tests/cmocka/common_mock_be.h new file mode 100644 index 000000000..3397e0226 --- /dev/null +++ b/src/tests/cmocka/common_mock_be.h @@ -0,0 +1,30 @@ +/* + Authors: + Jakub Hrozek <jhrozek@redhat.com> + + Copyright (C) 2015 Red Hat + + SSSD tests: Fake back end + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __COMMON_MOCK_BE_H_ +#define __COMMON_MOCK_BE_H_ + +#include "tests/cmocka/common_mock.h" + +struct be_ctx *mock_be_ctx(TALLOC_CTX *mem_ctx, struct sss_test_ctx *tctx); + +#endif /* __COMMON_MOCK_BE_H_ */ |