summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@freedesktop.org>2012-08-31 14:18:43 +0200
committerDebarshi Ray <debarshir@freedesktop.org>2013-01-09 15:32:59 +0100
commit7818d410e868a1bd8a42eb0de1a754387561cedc (patch)
treef3ad7169985a10aa7748b735910397fda0586b4b /tests
parentd7302bd2c4ae43a962a293b53998bd03423adba4 (diff)
log-walker: Run the filter synchronously in the walker
This ensures that the TplLogEventFilter is always run from the same thread which invoked the walker. This is implemented by keeping track of skipped events in the history instead of silently ignoring them within the LogIters. This has the nice side effect that we do not need to run the filter while rewinding. Fixes: https://bugs.freedesktop.org/54270
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus/test-tpl-log-iter-pidgin.c4
-rw-r--r--tests/dbus/test-tpl-log-iter-xml.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/dbus/test-tpl-log-iter-pidgin.c b/tests/dbus/test-tpl-log-iter-pidgin.c
index 059b32b..1859057 100644
--- a/tests/dbus/test-tpl-log-iter-pidgin.c
+++ b/tests/dbus/test-tpl-log-iter-pidgin.c
@@ -154,7 +154,7 @@ test_get_events (PidginTestCaseFixture *fixture,
room = tpl_entity_new_from_room_id ("#telepathy");
iter = tpl_log_iter_pidgin_new (fixture->store, fixture->account, room,
- TPL_EVENT_MASK_ANY, NULL, NULL);
+ TPL_EVENT_MASK_ANY);
events = tpl_log_iter_get_events (iter, 5, &error);
events = events;
@@ -557,7 +557,7 @@ test_rewind (PidginTestCaseFixture *fixture,
room = tpl_entity_new_from_room_id ("#telepathy");
iter = tpl_log_iter_pidgin_new (fixture->store, fixture->account, room,
- TPL_EVENT_MASK_ANY, NULL, NULL);
+ TPL_EVENT_MASK_ANY);
tpl_log_iter_rewind (iter, 8, &error);
g_assert_no_error (error);
diff --git a/tests/dbus/test-tpl-log-iter-xml.c b/tests/dbus/test-tpl-log-iter-xml.c
index b01a322..044bf47 100644
--- a/tests/dbus/test-tpl-log-iter-xml.c
+++ b/tests/dbus/test-tpl-log-iter-xml.c
@@ -87,7 +87,7 @@ test_get_events (XmlTestCaseFixture *fixture,
/* Text events spanning multiple days */
iter = tpl_log_iter_xml_new (fixture->store, fixture->account, user2,
- TPL_EVENT_MASK_ANY, NULL, NULL);
+ TPL_EVENT_MASK_ANY);
events = tpl_log_iter_get_events (iter, 5, &error);
g_assert_no_error (error);
@@ -177,7 +177,7 @@ test_get_events (XmlTestCaseFixture *fixture,
/* A mix of call and text events */
iter = tpl_log_iter_xml_new (fixture->store, fixture->account, user4,
- TPL_EVENT_MASK_ANY, NULL, NULL);
+ TPL_EVENT_MASK_ANY);
events = tpl_log_iter_get_events (iter, 4, &error);
g_assert_no_error (error);
@@ -240,7 +240,7 @@ test_rewind (XmlTestCaseFixture *fixture,
/* Text events spanning multiple days */
iter = tpl_log_iter_xml_new (fixture->store, fixture->account, user2,
- TPL_EVENT_MASK_ANY, NULL, NULL);
+ TPL_EVENT_MASK_ANY);
tpl_log_iter_rewind (iter, 8, &error);
g_assert_no_error (error);
@@ -355,7 +355,7 @@ test_rewind (XmlTestCaseFixture *fixture,
/* A mix of call and text events */
iter = tpl_log_iter_xml_new (fixture->store, fixture->account, user4,
- TPL_EVENT_MASK_ANY, NULL, NULL);
+ TPL_EVENT_MASK_ANY);
tpl_log_iter_rewind (iter, 8, &error);
g_assert_no_error (error);