Use expect_value == NULL for NULL parameters in tests

This commit is contained in:
James Booth
2014-03-16 18:02:18 +00:00
parent 89f306ceb2
commit f4d52f3d40
2 changed files with 4 additions and 4 deletions

View File

@@ -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));
}