~noskcaj/ubuntu/vivid/gnome-keyring/3.15.90

« back to all changes in this revision

Viewing changes to pkcs11/wrap-layer/tests/test-suite.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-14 22:13:02 UTC
  • mfrom: (1.3.1)
  • mto: (80.2.8 experimental) (1.1.77)
  • mto: This revision was merged to the branch mainline in revision 148.
  • Revision ID: package-import@ubuntu.com-20120514221302-0l3gjmqpe6xopond
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This is auto-generated code. Edit at your own peril. */
2
 
#include "testing/testing.h"
3
 
#include "test-suite.h"
4
 
 
5
 
typedef void (*TestingFunc)(int *, const void *);
6
 
 
7
 
static void start_tests (void) {
8
 
}
9
 
 
10
 
static void stop_tests (void) {
11
 
}
12
 
 
13
 
static void initialize_tests (void) {
14
 
        TestingFunc setup = NULL;
15
 
        TestingFunc teardown = NULL;
16
 
        setup = teardown = NULL;
17
 
setup = testing__setup__create_credential;
18
 
teardown = testing__teardown__create_credential;
19
 
g_test_add("/create_credential/create_credential_ok_password", int, NULL, setup, testing__test__create_credential_ok_password, teardown);
20
 
g_test_add("/create_credential/create_credential_bad_password_then_cancel", int, NULL, setup, testing__test__create_credential_bad_password_then_cancel, teardown);
21
 
g_test_add("/create_credential/create_credentiaol_cancel_immediately", int, NULL, setup, testing__test__create_credentiaol_cancel_immediately, teardown);
22
 
        setup = teardown = NULL;
23
 
setup = testing__setup__init_pin;
24
 
teardown = testing__teardown__init_pin;
25
 
g_test_add("/init_pin/init_pin_ok_password", int, NULL, setup, testing__test__init_pin_ok_password, teardown);
26
 
        setup = teardown = NULL;
27
 
setup = testing__setup__login_auto;
28
 
teardown = testing__teardown__login_auto;
29
 
g_test_add("/login_auto/login_auto_specific", int, NULL, setup, testing__test__login_auto_specific, teardown);
30
 
g_test_add("/login_auto/login_auto_user_token", int, NULL, setup, testing__test__login_auto_user_token, teardown);
31
 
g_test_add("/login_auto/login_auto_unlock_keyring", int, NULL, setup, testing__test__login_auto_unlock_keyring, teardown);
32
 
        setup = teardown = NULL;
33
 
g_test_add("/login_hints/login_did_unlock_fail", int, NULL, setup, testing__test__login_did_unlock_fail, teardown);
34
 
        setup = teardown = NULL;
35
 
setup = testing__setup__login_keyring;
36
 
teardown = testing__teardown__login_keyring;
37
 
g_test_add("/login_keyring/login_is_usable", int, NULL, setup, testing__test__login_is_usable, teardown);
38
 
g_test_add("/login_keyring/login_usable_fail_open_session", int, NULL, setup, testing__test__login_usable_fail_open_session, teardown);
39
 
g_test_add("/login_keyring/login_usable_fail_not_trusted", int, NULL, setup, testing__test__login_usable_fail_not_trusted, teardown);
40
 
g_test_add("/login_keyring/login_usable_fail_locked", int, NULL, setup, testing__test__login_usable_fail_locked, teardown);
41
 
g_test_add("/login_keyring/login_lookup_secret_no_match", int, NULL, setup, testing__test__login_lookup_secret_no_match, teardown);
42
 
g_test_add("/login_keyring/login_lookup_secret_and_match", int, NULL, setup, testing__test__login_lookup_secret_and_match, teardown);
43
 
g_test_add("/login_keyring/login_lookup_store_secret", int, NULL, setup, testing__test__login_lookup_store_secret, teardown);
44
 
g_test_add("/login_keyring/login_lookup_store_secret_overwrite", int, NULL, setup, testing__test__login_lookup_store_secret_overwrite, teardown);
45
 
g_test_add("/login_keyring/login_lookup_store_null_secret", int, NULL, setup, testing__test__login_lookup_store_null_secret, teardown);
46
 
g_test_add("/login_keyring/login_lookup_store_no_attributes_not_stored", int, NULL, setup, testing__test__login_lookup_store_no_attributes_not_stored, teardown);
47
 
g_test_add("/login_keyring/login_lookup_remove_present", int, NULL, setup, testing__test__login_lookup_remove_present, teardown);
48
 
g_test_add("/login_keyring/login_lookup_remove_no_attributes", int, NULL, setup, testing__test__login_lookup_remove_no_attributes, teardown);
49
 
        setup = teardown = NULL;
50
 
setup = testing__setup__login_specific;
51
 
teardown = testing__teardown__login_specific;
52
 
g_test_add("/login_specific/login_specific_ok_password", int, NULL, setup, testing__test__login_specific_ok_password, teardown);
53
 
g_test_add("/login_specific/login_specific_bad_password_then_cancel", int, NULL, setup, testing__test__login_specific_bad_password_then_cancel, teardown);
54
 
g_test_add("/login_specific/login_specific_cancel_immediately", int, NULL, setup, testing__test__login_specific_cancel_immediately, teardown);
55
 
        setup = teardown = NULL;
56
 
setup = testing__setup__login_user;
57
 
teardown = testing__teardown__login_user;
58
 
g_test_add("/login_user/login_fail_unsupported_so", int, NULL, setup, testing__test__login_fail_unsupported_so, teardown);
59
 
g_test_add("/login_user/login_skip_prompt_because_pin", int, NULL, setup, testing__test__login_skip_prompt_because_pin, teardown);
60
 
g_test_add("/login_user/login_user_ok_password", int, NULL, setup, testing__test__login_user_ok_password, teardown);
61
 
g_test_add("/login_user/login_user_bad_password_then_cancel", int, NULL, setup, testing__test__login_user_bad_password_then_cancel, teardown);
62
 
g_test_add("/login_user/login_user_cancel_immediately", int, NULL, setup, testing__test__login_user_cancel_immediately, teardown);
63
 
g_test_add("/login_user/login_user_fail_get_session_info", int, NULL, setup, testing__test__login_user_fail_get_session_info, teardown);
64
 
g_test_add("/login_user/login_user_fail_get_token_info", int, NULL, setup, testing__test__login_user_fail_get_token_info, teardown);
65
 
        setup = teardown = NULL;
66
 
setup = testing__setup__set_pin;
67
 
teardown = testing__teardown__set_pin;
68
 
g_test_add("/set_pin/set_pin_ok_passwords", int, NULL, setup, testing__test__set_pin_ok_passwords, teardown);
69
 
}
70
 
 
71
 
static void run_externals (int *ret) {
72
 
}
73
 
 
74
 
static int run(void) {
75
 
        int ret;
76
 
        initialize_tests ();
77
 
        start_tests ();
78
 
        ret = g_test_run ();
79
 
        if (ret == 0)
80
 
                run_externals (&ret);
81
 
        stop_tests();
82
 
        return ret;
83
 
}
84
 
#include "testing/testing.c"