test_wbc_calls.c revision 57c5ea8825c7179fd93382dbcbb07e828e5aec19
/*
SSSD
wbc-calls - Tests for selected libwbclient calls
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2015 Red Hat
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/>.
*/
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <popt.h>
#include "tests/cmocka/common_mock.h"
#include "sss_client/libwbclient/wbclient_sssd.h"
#include "sss_client/idmap/sss_nss_idmap.h"
{21, 2127521184, 1604012920, 1887927527, 72713,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
enum sss_id_type *type)
{
*type = SSS_ID_TYPE_UID;
return EOK;
}
void test_wbcLookupSid(void **state)
{
char *pdomain;
char *pname;
enum wbcSidType pname_type;
}
{
int rv;
int opt;
struct poptOption long_options[] = {
};
const struct CMUnitTest tests[] = {
};
/* Set debug level to invalid value so we can decide if -d 0 was used. */
switch (opt) {
default:
return 1;
}
}
return rv;
}