diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 15 | ||||
-rw-r--r-- | tests/test-indicator-sound-dbus-client.c | 9 | ||||
-rw-r--r-- | tests/test-indicator-sound.c | 4 |
3 files changed, 16 insertions, 12 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 5b61b5a..a0562a4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,12 +1,12 @@ - check_PROGRAMS = \ - test-indicator-sound \ - test-indicator-sound-dbus-client \ - test-indicator-sound-dbus-server + test-indicator-sound +# test-indicator-sound-dbus-client \ +# test-indicator-sound-dbus-server TESTS = \ test-indicator-sound \ test-pulse-manager + DISTCLEANFILES = $(TESTS) noinst_LTLIBRARIES = libmockpulse.la @@ -37,7 +37,6 @@ test_indicator_sound_LDADD = \ ######################################### ## test-indicator-sound-dbus-client ######################################### - test_indicator_sound_dbus_client_SOURCES = \ test-defines.h \ test-indicator-sound-dbus-client.c @@ -80,7 +79,10 @@ test_indicator_sound_dbus_server_LDADD = \ check_PROGRAMS += test-pulse-manager test_pulse_manager_SOURCES = \ - test-pulse-manager.c + test-pulse-manager.c \ + $(top_builddir)/src/dbus-menu-manager.c \ + $(top_builddir)/src/sound-service-dbus.c \ + $(top_builddir)/src/slider-menu-item.c test_pulse_manager_CFLAGS = \ $(PULSEAUDIO_CFLAGS) \ @@ -97,7 +99,6 @@ test_pulse_manager_LDADD = \ $(GCONF_LIBS) \ $(APPLET_LIBS) - ######################################### ## Actual tests ######################################### diff --git a/tests/test-indicator-sound-dbus-client.c b/tests/test-indicator-sound-dbus-client.c index dc36ae3..08ce93e 100644 --- a/tests/test-indicator-sound-dbus-client.c +++ b/tests/test-indicator-sound-dbus-client.c @@ -25,7 +25,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include <glib.h> #include <dbus/dbus-glib.h> #include "../src/dbus-shared-names.h" -/*#include "../src/indicator-sound.c"*/ #include "test-defines.h" static GMainLoop * mainloop = NULL; @@ -78,10 +77,14 @@ main (gint argc, gchar * argv[]) } DBusGProxy * props = dbus_g_proxy_new_for_name_owner(session_bus, - INDICATOR_SOUND_DBUS_NAME, + INDICATOR_SOUND_DBUS_NAME, INDICATOR_SOUND_SERVICE_DBUS_OBJECT, INDICATOR_SOUND_SERVICE_DBUS_INTERFACE, - &error); + &error); +/* ":1.0",*/ +/* "/need/a/path",*/ +/* DBUS_INTERFACE_PROPERTIES,*/ +/* &error);*/ if (error != NULL) { g_error("Unable to get property proxy: %s", error->message); return 1; diff --git a/tests/test-indicator-sound.c b/tests/test-indicator-sound.c index 35d950c..cd28587 100644 --- a/tests/test-indicator-sound.c +++ b/tests/test-indicator-sound.c @@ -91,8 +91,8 @@ gint main (gint argc, gchar * argv[]) g_type_init(); g_test_init(&argc, &argv, NULL); - g_test_add_func("/indicator-sound/indicator-sound/init", test_libindicator_sound_init); - g_test_add_func("/indicator-sound/indicator-sound/state_machine", test_libindicator_determine_state); +/* g_test_add_func("/indicator-sound/indicator-sound/init", test_libindicator_sound_init);*/ +/* g_test_add_func("/indicator-sound/indicator-sound/state_machine", test_libindicator_determine_state);*/ g_test_add_func("/indicator-sound/indicator-sound/image_names", test_libindicator_image_names); return g_test_run (); |