From 02378b69d4057001f873875ea9c03bda516fc08d Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Tue, 25 Sep 2012 18:57:01 -0400 Subject: Make TplLogStore:name immutable. For all log stores except the Xml one, this is always set to the same thing. For the Xml one, the name of the store depends entirely on the value of empathy-legacy. --- tests/dbus/test-tpl-log-store-pidgin.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests/dbus/test-tpl-log-store-pidgin.c') diff --git a/tests/dbus/test-tpl-log-store-pidgin.c b/tests/dbus/test-tpl-log-store-pidgin.c index 3ef0a23..fea3daf 100644 --- a/tests/dbus/test-tpl-log-store-pidgin.c +++ b/tests/dbus/test-tpl-log-store-pidgin.c @@ -171,7 +171,6 @@ setup (PidginTestCaseFixture* fixture, DEBUG ("basedir is %s", fixture->basedir); fixture->store = g_object_new (TPL_TYPE_LOG_STORE_PIDGIN, - "name", "testcase", "testmode", TRUE, NULL); @@ -251,9 +250,7 @@ test_basedir (PidginTestCaseFixture *fixture, /* try to instantiate the default store, without passing basedir, it has to * match the real libpurple basedir */ - store = g_object_new (TPL_TYPE_LOG_STORE_PIDGIN, - "name", "testcase", - NULL); + store = g_object_new (TPL_TYPE_LOG_STORE_PIDGIN, NULL); dir = g_build_path (G_DIR_SEPARATOR_S, g_get_home_dir (), ".purple", "logs", NULL); g_assert_cmpstr (log_store_pidgin_get_basedir (store), ==, dir); @@ -345,9 +342,9 @@ test_get_name (PidginTestCaseFixture *fixture, { const gchar *name; - name = log_store_pidgin_get_name (TPL_LOG_STORE (fixture->store)); + name = _tpl_log_store_get_name (TPL_LOG_STORE (fixture->store)); - g_assert_cmpstr (name, ==, "testcase"); + g_assert_cmpstr (name, ==, "Pidgin"); } static void -- cgit v1.2.1