summaryrefslogtreecommitdiff
path: root/tests/dbus
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@freedesktop.org>2012-08-28 13:39:16 +0200
committerDebarshi Ray <debarshir@freedesktop.org>2012-08-28 19:37:59 +0200
commit4c512c2f37529f45021f955d4cc64a6e9ec7f895 (patch)
tree724c6d128066e981a5fc46ed2a73d4a374242521 /tests/dbus
parent783b7bc910a6950bbbddac28439fba307d8a537e (diff)
downloadtelepathy-logger-4c512c2f37529f45021f955d4cc64a6e9ec7f895.tar.gz
tests: Add new TpLogger and purple logs to flex the TplLogWalker
The actual test case will be added later. Existing test cases have been adjusted accordingly. Fixes: https://bugs.freedesktop.org/41772
Diffstat (limited to 'tests/dbus')
-rw-r--r--tests/dbus/test-tpl-log-store-pidgin.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/dbus/test-tpl-log-store-pidgin.c b/tests/dbus/test-tpl-log-store-pidgin.c
index 416a9b2..7d54d5f 100644
--- a/tests/dbus/test-tpl-log-store-pidgin.c
+++ b/tests/dbus/test-tpl-log-store-pidgin.c
@@ -415,18 +415,23 @@ test_get_entities_jabber (PidginTestCaseFixture *fixture,
l = log_store_pidgin_get_entities (TPL_LOG_STORE (fixture->store),
fixture->account);
- g_assert_cmpint (g_list_length (l), ==, 2);
+ g_assert_cmpint (g_list_length (l), ==, 3);
/* sort the entities, since their ordering depends on the file order */
l = g_list_sort (l, cmp_entities);
entity = g_list_nth_data (l, 0);
g_assert_cmpstr (tpl_entity_get_identifier (entity), ==,
- "user2@collabora.co.uk");
+ "user5@collabora.co.uk");
g_assert (tpl_entity_get_entity_type (entity) == TPL_ENTITY_CONTACT);
entity = g_list_nth_data (l, 1);
g_assert_cmpstr (tpl_entity_get_identifier (entity), ==,
+ "user2@collabora.co.uk");
+ g_assert (tpl_entity_get_entity_type (entity) == TPL_ENTITY_CONTACT);
+
+ entity = g_list_nth_data (l, 2);
+ g_assert_cmpstr (tpl_entity_get_identifier (entity), ==,
"test@conference.collabora.co.uk");
g_assert (tpl_entity_get_entity_type (entity) == TPL_ENTITY_ROOM);