summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Laban <david.laban@collabora.co.uk>2011-05-24 19:45:08 -0400
committerDavid Laban <david.laban@collabora.co.uk>2011-05-24 19:58:50 -0400
commit31411d5c9d19678ff862e07c508ff3cf78cbf40a (patch)
treec8c52c9c8b9266843ba0e84b0b00da81d7535c79 /tests
parentb155a3dd4bc046e88ee6b99b254669b3dad9caa5 (diff)
downloadtelepathy-logger-31411d5c9d19678ff862e07c508ff3cf78cbf40a.tar.gz
Update tests to use original-timestamp
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus/test-tpl-log-store-xml.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/dbus/test-tpl-log-store-xml.c b/tests/dbus/test-tpl-log-store-xml.c
index 0e58536..f621a35 100644
--- a/tests/dbus/test-tpl-log-store-xml.c
+++ b/tests/dbus/test-tpl-log-store-xml.c
@@ -522,8 +522,9 @@ test_add_superseding_event (XmlTestCaseFixture *fixture,
"account", account,
"sender", me,
"receiver", contact,
- "timestamp", timestamp,
+ "timestamp", timestamp + 2,
/* TplTextEvent */
+ "original-timestamp", timestamp,
"message-token", "OMGCOMPLETELYRANDOMSTRING2",
"supersedes-token", "OMGCOMPLETELYRANDOMSTRING1",
"message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,
@@ -552,8 +553,9 @@ test_add_superseding_event (XmlTestCaseFixture *fixture,
"account", account,
"sender", me,
"receiver", contact,
- "timestamp", timestamp,
+ "timestamp", timestamp + 3,
/* TplTextEvent */
+ "original-timestamp", timestamp,
"message-token", "OMGCOMPLETELYRANDOMSTRING3",
"supersedes-token", "OMGCOMPLETELYRANDOMSTRING1",
"message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,
@@ -587,14 +589,15 @@ test_add_superseding_event (XmlTestCaseFixture *fixture,
g_list_foreach (events, (GFunc) g_object_unref, NULL);
g_list_free (events);
- /* 4. Edit comes in with the wrong timestamp. */
+ /* 4. Edit comes in with the wrong original-timestamp. */
late_event = g_object_new (TPL_TYPE_TEXT_EVENT,
/* TplEvent */
"account", account,
"sender", me,
"receiver", contact,
- "timestamp", timestamp + (60 * 60 * 24),
+ "timestamp", timestamp + 4,
/* TplTextEvent */
+ "original-timestamp", timestamp + (60 * 60 * 24),
"message-token", "OMGCOMPLETELYRANDOMSTRING4",
"supersedes-token", "OMGCOMPLETELYRANDOMSTRING1",
"message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,
@@ -634,8 +637,9 @@ test_add_superseding_event (XmlTestCaseFixture *fixture,
"account", account,
"sender", me,
"receiver", contact,
- "timestamp", timestamp - (60 * 60 * 24),
+ "timestamp", timestamp + 5,
/* TplTextEvent */
+ "original-timestamp", timestamp - (60 * 60 * 24),
"message-token", "OMGCOMPLETELYRANDOMSTRING5",
"supersedes-token", "OMGCOMPLETELYRANDOMSTRING1",
"message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,