aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-02-09 17:04:12 -0600
committerTed Gould <ted@gould.cx>2015-02-09 17:04:12 -0600
commit92658ca183935e2691acfe84be1464b0b9d43259 (patch)
tree2aa9eb655e2713617d7da4ea4dbe9fa125ae79ac
parent53fe663dc4bc02731246a75b5ef2b0c4e356063f (diff)
downloadayatana-indicator-sound-92658ca183935e2691acfe84be1464b0b9d43259.tar.gz
ayatana-indicator-sound-92658ca183935e2691acfe84be1464b0b9d43259.tar.bz2
ayatana-indicator-sound-92658ca183935e2691acfe84be1464b0b9d43259.zip
Initialize notify, which is normally done in the main
-rw-r--r--tests/notifications-test.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/notifications-test.cc b/tests/notifications-test.cc
index 1b231eb..c2680ab 100644
--- a/tests/notifications-test.cc
+++ b/tests/notifications-test.cc
@@ -22,6 +22,7 @@
#include <gtest/gtest.h>
#include <gio/gio.h>
#include <libdbustest/dbus-test.h>
+#include <libnotify/notify.h>
#include "notifications-mock.h"
@@ -51,9 +52,15 @@ class NotificationsTest : public ::testing::Test
ASSERT_NE(nullptr, session);
g_dbus_connection_set_exit_on_close(session, FALSE);
g_object_add_weak_pointer(G_OBJECT(session), (gpointer *)&session);
+
+ /* This is done in main.c */
+ notify_init("indicator-sound");
}
virtual void TearDown() {
+ if (notify_is_initted())
+ notify_uninit();
+
notifications.reset();
g_clear_object(&service);