summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-01-21 16:38:16 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2011-01-21 17:17:57 -0500
commit576eee1b3eab56c874141733c728aa6be69da44b (patch)
treee7abfe99f921f27f1aabc8cfd14fd995736f560c /tests
parent42a631433b87162cd7417a03a7b6ce2e9cea998a (diff)
downloadtelepathy-logger-576eee1b3eab56c874141733c728aa6be69da44b.tar.gz
Remove search_in_identifier test since it deprecated
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus/test-tpl-log-store-pidgin.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/dbus/test-tpl-log-store-pidgin.c b/tests/dbus/test-tpl-log-store-pidgin.c
index bcaaeb3..87a30b0 100644
--- a/tests/dbus/test-tpl-log-store-pidgin.c
+++ b/tests/dbus/test-tpl-log-store-pidgin.c
@@ -400,39 +400,6 @@ test_get_entities_jabber (PidginTestCaseFixture *fixture,
}
static void
-test_search_in_identifier (PidginTestCaseFixture *fixture,
- gconstpointer user_data)
-{
- GList *l = NULL;
- TplLogSearchHit *hit;
-
- l = log_store_pidgin_search_in_identifier (
- TPL_LOG_STORE (fixture->store), fixture->account,
- "user2@collabora.co.uk", TPL_EVENT_SEARCH_TEXT, "bla bla");
-
- g_assert_cmpint (g_list_length (l), ==, 0);
-
- tpl_log_manager_search_free (l);
-
- l = log_store_pidgin_search_in_identifier (
- TPL_LOG_STORE (fixture->store), fixture->account,
- "user2@collabora.co.uk", TPL_EVENT_SEARCH_TEXT, "hey you");
-
- g_assert_cmpint (g_list_length (l), ==, 1);
- hit = g_list_nth_data (l, 0);
- g_assert (hit->type == TPL_EVENT_SEARCH_TEXT);
- g_assert_cmpstr (hit->id, ==, "user2@collabora.co.uk");
-
- g_assert_cmpint (g_date_get_day (hit->date), ==, 10);
- g_assert_cmpint (g_date_get_month (hit->date), ==, G_DATE_DECEMBER);
- g_assert_cmpint (g_date_get_year (hit->date), ==, 2010);
-
- tpl_log_manager_search_free (l);
-
- return;
-}
-
-static void
test_search_new (PidginTestCaseFixture *fixture,
gconstpointer user_data)
{
@@ -541,10 +508,6 @@ main (int argc, char **argv)
PidginTestCaseFixture, params,
setup, test_get_entities_jabber, teardown);
- g_test_add ("/log-store-pidgin/search-in-identifier",
- PidginTestCaseFixture, params, setup,
- test_search_in_identifier, teardown);
-
/* IRC account tests */
params = g_hash_table_new_full (g_str_hash, g_str_equal, NULL,
(GDestroyNotify) tp_g_value_slice_free);