about summary refs log tree commit diff stats
path: root/tests/xmpp/mock_xmpp.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-03-16 18:02:18 +0000
committerJames Booth <boothj5@gmail.com>2014-03-16 18:02:18 +0000
commitf4d52f3d40287a9426ec7e0390a8fcfce78a4ee9 (patch)
treebfb3fd032f73d9048b34e282cb8ad6568d10f972 /tests/xmpp/mock_xmpp.c
parent89f306ceb251a1ffe6ea8ea47f5417fc1da24693 (diff)
downloadprofani-tty-f4d52f3d40287a9426ec7e0390a8fcfce78a4ee9.tar.gz
Use expect_value == NULL for NULL parameters in tests
Diffstat (limited to 'tests/xmpp/mock_xmpp.c')
-rw-r--r--tests/xmpp/mock_xmpp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/xmpp/mock_xmpp.c b/tests/xmpp/mock_xmpp.c
index 9174e569..c2ded651 100644
--- a/tests/xmpp/mock_xmpp.c
+++ b/tests/xmpp/mock_xmpp.c
@@ -214,7 +214,7 @@ jabber_connect_with_details_expect_and_return(char *jid,
     expect_string(_mock_jabber_connect_with_details, jid, jid);
     expect_string(_mock_jabber_connect_with_details, passwd, password);
     if (altdomain == NULL) {
-        expect_any(_mock_jabber_connect_with_details, altdomain);
+        expect_value(_mock_jabber_connect_with_details, altdomain, NULL);
     } else {
         expect_string(_mock_jabber_connect_with_details, altdomain, altdomain);
     }
@@ -264,7 +264,7 @@ expect_and_return_bookmark_add(char *expected_jid, char *expected_nick,
     if (expected_nick != NULL) {
         expect_string(_mock_bookmark_add, nick, expected_nick);
     } else {
-        expect_any(_mock_bookmark_add, nick);
+        expect_value(_mock_bookmark_add, nick, NULL);
     }
     expect_value(_mock_bookmark_add, autojoin, expected_autojoin);
 
@@ -295,7 +295,7 @@ presence_join_room_expect(char *room, char *nick, char *passwd)
     expect_string(_mock_presence_join_room, room, room);
     expect_string(_mock_presence_join_room, nick, nick);
     if (passwd == NULL) {
-        expect_any(_mock_presence_join_room, passwd);
+        expect_value(_mock_presence_join_room, passwd, NULL);
     } else {
         expect_string(_mock_presence_join_room, passwd, passwd);
     }