about summary refs log tree commit diff stats
path: root/tests/ui/mock_ui.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/ui/mock_ui.c
parent89f306ceb251a1ffe6ea8ea47f5417fc1da24693 (diff)
downloadprofani-tty-f4d52f3d40287a9426ec7e0390a8fcfce78a4ee9.tar.gz
Use expect_value == NULL for NULL parameters in tests
Diffstat (limited to 'tests/ui/mock_ui.c')
-rw-r--r--tests/ui/mock_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/mock_ui.c b/tests/ui/mock_ui.c
index cbdbd486..8fcf277a 100644
--- a/tests/ui/mock_ui.c
+++ b/tests/ui/mock_ui.c
@@ -350,7 +350,7 @@ expect_cons_show_contact_online(PContact contact, Resource *resource, GDateTime
     expect_memory(_mock_cons_show_contact_online, contact, contact, sizeof(contact));
     expect_memory(_mock_cons_show_contact_online, resource, resource, sizeof(Resource));
     if (last_activity == NULL) {
-        expect_any(_mock_cons_show_contact_online, last_activity);
+        expect_value(_mock_cons_show_contact_online, last_activity, NULL);
     } else {
         expect_memory(_mock_cons_show_contact_online, last_activity, last_activity, sizeof(last_activity));
     }