From 8ebc1d4ac17bbc6b373ecdc3bf9ca5b0ac20b263 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 7 May 2015 22:22:28 +0100 Subject: Moved pgp signature verification to sv_ev_contact_online --- tests/pgp/stub_gpg.c | 1 + tests/test_server_events.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'tests') 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(); } -- cgit 1.4.1-2-gfad0