[gnome-settings-daemon] sound: Add test application



commit 71b94466d9ad09f593629bc00f7dc38e45f51ac9
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jul 2 15:05:27 2012 +0100

    sound: Add test application

 plugins/sound/Makefile.am  |   22 ++++++++++++++++++++++
 plugins/sound/test-sound.c |    7 +++++++
 2 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/plugins/sound/Makefile.am b/plugins/sound/Makefile.am
index 3197e24..c0cfebf 100644
--- a/plugins/sound/Makefile.am
+++ b/plugins/sound/Makefile.am
@@ -1,5 +1,27 @@
 plugin_name = sound
 
+noinst_PROGRAMS = test-sound
+
+test_sound_SOURCES =		\
+	gsd-sound-manager.h	\
+	gsd-sound-manager.c	\
+	test-sound.c
+
+test_sound_CFLAGS =					\
+	-I$(top_srcdir)/gnome-settings-daemon			\
+	-I$(top_srcdir)/plugins/common				\
+	-DGNOME_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\"	\
+	$(SOUND_CFLAGS)					\
+	$(PLUGIN_CFLAGS)					\
+	$(SETTINGS_PLUGIN_CFLAGS)				\
+	$(AM_CFLAGS)
+
+test_sound_LDADD =					\
+	$(top_builddir)/gnome-settings-daemon/libgsd.la		\
+	$(top_builddir)/plugins/common/libcommon.la		\
+	$(SOUND_LIBS)					\
+	$(SETTINGS_PLUGIN_LIBS)
+
 plugin_LTLIBRARIES = \
 	libsound.la
 
diff --git a/plugins/sound/test-sound.c b/plugins/sound/test-sound.c
new file mode 100644
index 0000000..a618b54
--- /dev/null
+++ b/plugins/sound/test-sound.c
@@ -0,0 +1,7 @@
+#define NEW gsd_sound_manager_new
+#define START gsd_sound_manager_start
+#define STOP gsd_sound_manager_stop
+#define MANAGER GsdSoundManager
+#include "gsd-sound-manager.h"
+
+#include "test-plugin.h"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]