diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-30 16:53:02 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-30 16:53:02 +0200 |
commit | 2134dfccf8be89fa5e1e595d6ec65a56ac357d78 (patch) | |
tree | dc08a1c0c1d12f7c560cde5646b6b40ede19ad1e /tests/test_gnunet_chat_handle.c | |
parent | 1ba9b0280a52207e4ac4288f1427566f1d5667c4 (diff) | |
download | libgnunetchat-2134dfccf8be89fa5e1e595d6ec65a56ac357d78.tar.gz libgnunetchat-2134dfccf8be89fa5e1e595d6ec65a56ac357d78.zip |
Removed application specific directory and adjusted test cases
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'tests/test_gnunet_chat_handle.c')
-rw-r--r-- | tests/test_gnunet_chat_handle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_gnunet_chat_handle.c b/tests/test_gnunet_chat_handle.c index b1854cf..efa2ba9 100644 --- a/tests/test_gnunet_chat_handle.c +++ b/tests/test_gnunet_chat_handle.c | |||
@@ -29,7 +29,7 @@ call_gnunet_chat_handle_init(const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
29 | { | 29 | { |
30 | struct GNUNET_CHAT_Handle *handle; | 30 | struct GNUNET_CHAT_Handle *handle; |
31 | 31 | ||
32 | handle = GNUNET_CHAT_start(cfg, "", "Init", NULL, NULL); | 32 | handle = GNUNET_CHAT_start(cfg, NULL, NULL); |
33 | ck_assert_ptr_ne(handle, NULL); | 33 | ck_assert_ptr_ne(handle, NULL); |
34 | 34 | ||
35 | GNUNET_CHAT_stop(handle); | 35 | GNUNET_CHAT_stop(handle); |
@@ -57,7 +57,7 @@ on_gnunet_chat_handle_login_msg(void *cls, | |||
57 | void | 57 | void |
58 | call_gnunet_chat_handle_login(const struct GNUNET_CONFIGURATION_Handle *cfg) | 58 | call_gnunet_chat_handle_login(const struct GNUNET_CONFIGURATION_Handle *cfg) |
59 | { | 59 | { |
60 | login_handle = GNUNET_CHAT_start(cfg, "", "Login", on_gnunet_chat_handle_login_msg, NULL); | 60 | login_handle = GNUNET_CHAT_start(cfg, on_gnunet_chat_handle_login_msg, NULL); |
61 | ck_assert_ptr_ne(login_handle, NULL); | 61 | ck_assert_ptr_ne(login_handle, NULL); |
62 | } | 62 | } |
63 | 63 | ||
@@ -76,7 +76,7 @@ on_gnunet_chat_handle_access_msg(void *cls, | |||
76 | ck_assert_ptr_eq(cls, NULL); | 76 | ck_assert_ptr_eq(cls, NULL); |
77 | ck_assert_ptr_eq(context, NULL); | 77 | ck_assert_ptr_eq(context, NULL); |
78 | 78 | ||
79 | const struct GNUNET_IDENTITY_PublicKey *key; | 79 | const char *key; |
80 | const char *name; | 80 | const char *name; |
81 | int result; | 81 | int result; |
82 | 82 | ||
@@ -124,7 +124,7 @@ call_gnunet_chat_handle_access(const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
124 | { | 124 | { |
125 | access_logins = 0; | 125 | access_logins = 0; |
126 | 126 | ||
127 | access_handle = GNUNET_CHAT_start(cfg, "", "Access", on_gnunet_chat_handle_access_msg, NULL); | 127 | access_handle = GNUNET_CHAT_start(cfg, on_gnunet_chat_handle_access_msg, NULL); |
128 | ck_assert_ptr_ne(access_handle, NULL); | 128 | ck_assert_ptr_ne(access_handle, NULL); |
129 | } | 129 | } |
130 | 130 | ||