diff options
author | James Booth <boothj5@gmail.com> | 2014-03-16 18:02:18 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-03-16 18:02:18 +0000 |
commit | f4d52f3d40287a9426ec7e0390a8fcfce78a4ee9 (patch) | |
tree | bfb3fd032f73d9048b34e282cb8ad6568d10f972 /tests/ui | |
parent | 89f306ceb251a1ffe6ea8ea47f5417fc1da24693 (diff) | |
download | profani-tty-f4d52f3d40287a9426ec7e0390a8fcfce78a4ee9.tar.gz |
Use expect_value == NULL for NULL parameters in tests
Diffstat (limited to 'tests/ui')
-rw-r--r-- | tests/ui/mock_ui.c | 2 |
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)); } |