diff options
author | James Booth <boothj5@gmail.com> | 2015-05-07 22:22:28 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-05-07 22:22:28 +0100 |
commit | 8ebc1d4ac17bbc6b373ecdc3bf9ca5b0ac20b263 (patch) | |
tree | de68ac19a0e223b365e5d95638fcb3a884b02a8a /tests | |
parent | 8673488368250314b6e58ed2fb00eeb6d4ce2948 (diff) | |
download | profani-tty-8ebc1d4ac17bbc6b373ecdc3bf9ca5b0ac20b263.tar.gz |
Moved pgp signature verification to sv_ev_contact_online
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pgp/stub_gpg.c | 1 | ||||
-rw-r--r-- | tests/test_server_events.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/pgp/stub_gpg.c b/tests/pgp/stub_gpg.c index 14cdfe96..b8150d0a 100644 --- a/tests/pgp/stub_gpg.c +++ b/tests/pgp/stub_gpg.c @@ -23,3 +23,4 @@ const char* p_gpg_libver(void) void p_gpg_free_key(ProfPGPKey *key) {} +void p_gpg_verify(const char * const barejid, const char *const sign) {} diff --git a/tests/test_server_events.c b/tests/test_server_events.c index 58489807..fac1ac38 100644 --- a/tests/test_server_events.c +++ b/tests/test_server_events.c @@ -26,7 +26,7 @@ void console_shows_online_presence_when_set_online(void **state) expect_memory(ui_contact_online, resource, resource, sizeof(resource)); expect_value(ui_contact_online, last_activity, NULL); - sv_ev_contact_online(barejid, resource, NULL); + sv_ev_contact_online(barejid, resource, NULL, NULL); roster_clear(); } @@ -43,7 +43,7 @@ void console_shows_online_presence_when_set_all(void **state) expect_memory(ui_contact_online, resource, resource, sizeof(resource)); expect_value(ui_contact_online, last_activity, NULL); - sv_ev_contact_online(barejid, resource, NULL); + sv_ev_contact_online(barejid, resource, NULL, NULL); roster_clear(); } @@ -60,7 +60,7 @@ void console_shows_dnd_presence_when_set_all(void **state) expect_memory(ui_contact_online, resource, resource, sizeof(resource)); expect_value(ui_contact_online, last_activity, NULL); - sv_ev_contact_online(barejid, resource, NULL); + sv_ev_contact_online(barejid, resource, NULL, NULL); roster_clear(); } |