Lines Matching refs:creds
31 GCredentials *creds = g_credentials_new (); in test_basic() local
42 g_assert (creds != NULL); in test_basic()
46 g_assert (g_credentials_is_same_user (creds, other, &error)); in test_basic()
54 g_assert_cmpuint (g_credentials_get_unix_user (creds, &error), ==, in test_basic()
59 g_assert_cmpint (g_credentials_get_unix_pid (creds, &error), ==, in test_basic()
63 g_assert_cmpint (g_credentials_get_unix_pid (creds, &error), ==, -1); in test_basic()
74 g_assert (!g_credentials_is_same_user (creds, other, &error)); in test_basic()
82 g_assert (g_credentials_is_same_user (creds, other, &error)); in test_basic()
86 stringified = g_credentials_to_string (creds); in test_basic()
96 struct ucred *native = g_credentials_get_native (creds, in test_basic()
104 struct xucred *native = g_credentials_get_native (creds, in test_basic()
112 struct cmsgcred *native = g_credentials_get_native (creds, in test_basic()
120 struct unpcbid *native = g_credentials_get_native (creds, in test_basic()
128 struct sockpeercred *native = g_credentials_get_native (creds, in test_basic()
136 ucred_t *native = g_credentials_get_native (creds, in test_basic()
153 bad_native_creds = g_credentials_get_native (creds, G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED); in test_basic()
161 bad_native_creds = g_credentials_get_native (creds, G_CREDENTIALS_TYPE_LINUX_UCRED); in test_basic()
171 bad_native_creds = g_credentials_get_native (creds, G_CREDENTIALS_TYPE_LINUX_UCRED); in test_basic()
176 g_object_unref (creds); in test_basic()