about summary refs log tree commit diff stats
path: root/tests/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-12-14 18:43:19 +0000
committerJames Booth <boothj5@gmail.com>2013-12-14 18:43:19 +0000
commit447d235868e9e1554e432aad1e6a3b3db10e7b1d (patch)
tree9ebb385c02a86b78c66ac4ce677aa3ef9a02a6a7 /tests/xmpp
parent7955bc52ab003b26d3ea439c34e7006e6e1f1593 (diff)
downloadprofani-tty-447d235868e9e1554e432aad1e6a3b3db10e7b1d.tar.gz
Mocked account preferences and tested cmd_rooms
Diffstat (limited to 'tests/xmpp')
-rw-r--r--tests/xmpp/mock_xmpp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/xmpp/mock_xmpp.c b/tests/xmpp/mock_xmpp.c
index 0c6bf917..8ba03cab 100644
--- a/tests/xmpp/mock_xmpp.c
+++ b/tests/xmpp/mock_xmpp.c
@@ -1,5 +1,5 @@
 /*
- * xmpp.h
+ * mock_xmpp.c
  *
  * Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com>
  *
@@ -116,7 +116,12 @@ gboolean presence_sub_request_exists(const char * const bare_jid)
 
 // iq functions
 void iq_send_software_version(const char * const fulljid) {}
-void iq_room_list_request(gchar *conferencejid) {}
+
+void iq_room_list_request(gchar *conferencejid)
+{
+    check_expected(conferencejid);
+}
+
 void iq_disco_info_request(gchar *jid) {}
 void iq_disco_items_request(gchar *jid) {}