aboutsummaryrefslogtreecommitdiff
path: root/tests/test-service.cc
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-11-06 20:20:44 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-11-06 20:20:44 -0600
commitf7aa585e8a8065fc2d68ac4fb9ccedbf5c37a83d (patch)
tree9848a2b9e01355ee2473c5b829200a8b41ef86e6 /tests/test-service.cc
parent0b63ef0ea8625d713b9f726c8d664fdbeb37481d (diff)
downloadayatana-indicator-session-f7aa585e8a8065fc2d68ac4fb9ccedbf5c37a83d.tar.gz
ayatana-indicator-session-f7aa585e8a8065fc2d68ac4fb9ccedbf5c37a83d.tar.bz2
ayatana-indicator-session-f7aa585e8a8065fc2d68ac4fb9ccedbf5c37a83d.zip
remove unused function CallIndicatorServiceMethod()
Diffstat (limited to 'tests/test-service.cc')
-rw-r--r--tests/test-service.cc17
1 files changed, 3 insertions, 14 deletions
diff --git a/tests/test-service.cc b/tests/test-service.cc
index dce665c..cd57c8b 100644
--- a/tests/test-service.cc
+++ b/tests/test-service.cc
@@ -81,19 +81,6 @@ class ClientTest : public ::testing::Test
g_clear_object (&test_dbus);
g_clear_pointer (&main_loop, g_main_loop_unref);
}
-
- protected:
-
- void CallIndicatorServiceMethod (const gchar * method)
- {
- GVariant * response;
-
- ASSERT_TRUE (session_bus != NULL);
- //ASSERT_TRUE (service_proxy != NULL);
- //ASSERT_TRUE (ServiceProxyIsOwned ());
-
- g_clear_pointer (&response, g_variant_unref);
- }
};
/***
@@ -115,6 +102,8 @@ TEST_F (ClientTest, TestCanStartService)
GVariant * result;
const gchar * name;
+ // call GetUserRealName(), which as a side effect should activate
+ // indicator-session-service via the .service file in the tests/ directory
error = NULL;
result = g_dbus_connection_call_sync (session_bus,
INDICATOR_SESSION_DBUS_NAME,
@@ -142,7 +131,7 @@ TEST_F (ClientTest, TestCanStartService)
ASSERT_STREQ (g_get_real_name(), name);
g_clear_pointer (&result, g_variant_unref);
- /* call the IndicatorService object's Shutdown() method for a clean shutdown */
+ // call IndicatorService's Shutdown() method for a clean exit
result = g_dbus_connection_call_sync (session_bus,
INDICATOR_SESSION_DBUS_NAME,
"/org/ayatana/indicator/service",