aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-02-12 09:12:56 -0600
committerTed Gould <ted@gould.cx>2015-02-12 09:12:56 -0600
commitaf70cff9cef989be42968b11d356e8da09635c4d (patch)
tree57159df92739ba0c88d8856121e78242a5afca01 /tests
parente00a75f4cc97755a76f530b609456c5156174bc6 (diff)
downloadayatana-indicator-sound-af70cff9cef989be42968b11d356e8da09635c4d.tar.gz
ayatana-indicator-sound-af70cff9cef989be42968b11d356e8da09635c4d.tar.bz2
ayatana-indicator-sound-af70cff9cef989be42968b11d356e8da09635c4d.zip
Adding a bustle block for fun
Diffstat (limited to 'tests')
-rw-r--r--tests/notifications-test.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/notifications-test.cc b/tests/notifications-test.cc
index 3b54a95..3da41cd 100644
--- a/tests/notifications-test.cc
+++ b/tests/notifications-test.cc
@@ -46,6 +46,19 @@ class NotificationsTest : public ::testing::Test
service = dbus_test_service_new(NULL);
dbus_test_service_set_bus(service, DBUS_TEST_SERVICE_BUS_SESSION);
+ /* Useful for debugging test failures, not needed all the time (until it fails) */
+ #if 0
+ auto bustle = std::shared_ptr<DbusTestTask>([]() {
+ DbusTestTask * bustle = DBUS_TEST_TASK(dbus_test_bustle_new("notifications-test.bustle"));
+ dbus_test_task_set_name(bustle, "Bustle");
+ dbus_test_task_set_bus(bustle, DBUS_TEST_SERVICE_BUS_SESSION);
+ return bustle;
+ }(), [](DbusTestTask * bustle) {
+ g_clear_object(&bustle);
+ });
+ dbus_test_service_add_task(service, bustle.get());
+ #endif
+
notifications = std::make_shared<NotificationsMock>();
dbus_test_service_add_task(service, (DbusTestTask*)*notifications);