mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
xep-0084: add test stub file
This commit is contained in:
parent
53b92561cb
commit
9ac72980d1
@ -105,6 +105,7 @@ unittest_sources = \
|
||||
src/event/server_events.c src/event/server_events.h \
|
||||
src/event/client_events.c src/event/client_events.h \
|
||||
src/ui/tray.h src/ui/tray.c \
|
||||
tests/unittests/xmpp/stub_avatar.c \
|
||||
tests/unittests/xmpp/stub_xmpp.c \
|
||||
tests/unittests/xmpp/stub_message.c \
|
||||
tests/unittests/ui/stub_ui.c tests/unittests/ui/stub_ui.h \
|
||||
|
@ -76,7 +76,7 @@ avatar_pep_subscribe(void)
|
||||
//caps_add_feature(XMPP_FEATURE_USER_AVATAR_METADATA_NOTIFY);
|
||||
}
|
||||
|
||||
bool
|
||||
gboolean
|
||||
avatar_get_by_nick(const char* nick)
|
||||
{
|
||||
caps_remove_feature(XMPP_FEATURE_USER_AVATAR_METADATA_NOTIFY);
|
||||
|
@ -39,6 +39,6 @@
|
||||
#include <glib.h>
|
||||
|
||||
void avatar_pep_subscribe(void);
|
||||
bool avatar_get_by_nick(const char* nick);
|
||||
gboolean avatar_get_by_nick(const char* nick);
|
||||
|
||||
#endif
|
||||
|
7
tests/unittests/xmpp/stub_avatar.c
Normal file
7
tests/unittests/xmpp/stub_avatar.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <glib.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void avatar_pep_subscribe(void) {};
|
||||
gboolean avatar_get_by_nick(const char* nick) {return TRUE;}
|
||||
|
Loading…
Reference in New Issue
Block a user