about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-07 22:22:28 +0100
committerJames Booth <boothj5@gmail.com>2015-05-07 22:22:28 +0100
commit8ebc1d4ac17bbc6b373ecdc3bf9ca5b0ac20b263 (patch)
treede68ac19a0e223b365e5d95638fcb3a884b02a8a /tests
parent8673488368250314b6e58ed2fb00eeb6d4ce2948 (diff)
downloadprofani-tty-8ebc1d4ac17bbc6b373ecdc3bf9ca5b0ac20b263.tar.gz
Moved pgp signature verification to sv_ev_contact_online
Diffstat (limited to 'tests')
-rw-r--r--tests/pgp/stub_gpg.c1
-rw-r--r--tests/test_server_events.c6
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();
 }
s and be more POSIX compliant.' href='/akspecs/ranger/commit/examples/rifle_sxiv.sh?id=b53a97ed7b7022ccf3cb3a91d2dbfd15e9352246'>b53a97ed ^
baf1bafa ^




b53a97ed ^

bef8a8f8 ^
796074b5 ^
dcbc83fe ^

b53a97ed ^
62af2777 ^
dcbc83fe ^

796074b5 ^
dcbc83fe ^
796074b5 ^
dcbc83fe ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48