test_authtok.c revision 4e5e846de22407f825fe3b4040d79606818a2419
/*
SSSD
authtok - Utilities tests
Authors:
Pallavi Jha <pallavikumarijha@gmail.com>
Copyright (C) 2013 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 <string.h>
struct test_state {
struct sss_auth_token *authtoken;
};
{
return 0;
}
{
return 0;
}
static void test_sss_authtok_new(void **state)
{
struct sss_auth_token *authtoken;
}
/* @test_authtok_type_x : tests following functions for different value of type
* sss_authtok_set
* sss_authtok_get_type
* sss_authtok_get_size
* sss_authtok_get_data
* sss_authtok_get_password
* sss_authtok_get_ccfile
*
* @test_authtok_type_password : type => SSS_AUTHTOK_TYPE_PASSWORD
* @test_authtok_type_ccfile : type => SSS_AUTHTOK_TYPE_CCFILE
* @test_authtok_type_empty : type => SSS_AUTHTOK_TYPE_EMPTY
*/
/* Test when type has value SSS_AUTHTOK_TYPE_PASSWORD */
static void test_sss_authtok_password(void **state)
{
const char *data;
const char *pwd;
struct test_state *ts;
enum sss_authtok_type type;
}
/* Test when type has value SSS_AUTHTOK_TYPE_CCFILE */
static void test_sss_authtok_ccfile(void **state)
{
const char *data;
const char *pwd;
struct test_state *ts;
enum sss_authtok_type type;
}
/* Test when type has value SSS_AUTHTOK_TYPE_EMPTY */
static void test_sss_authtok_empty(void **state)
{
const char *pwd;
struct test_state *ts;
enum sss_authtok_type type;
}
static void test_sss_authtok_wipe_password(void **state)
{
const char *data;
const char *pwd;
struct test_state *ts;
enum sss_authtok_type type;
}
static void test_sss_authtok_copy(void **state)
{
const char *data;
struct test_state *ts;
enum sss_authtok_type type;
struct sss_auth_token *dest_authtoken;
}
int main(void)
{
const struct CMUnitTest tests[] = {
};
}