summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>2011-08-01 23:58:34 +0300
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2011-08-01 23:58:34 +0300
commitce399980bad738ff2457991d0d1e42e4e5587ce1 (patch)
treecc70723a6622a025a1508e725c148dc00cb82886
parent23ce31d399833431fc94342995d5e7924c1feedc (diff)
downloadgupnp-vala-ce399980bad738ff2457991d0d1e42e4e5587ce1.tar.gz
Remove gupnp-ui test apps
-rw-r--r--tests/Makefile.am15
-rw-r--r--tests/device-view-test.vala46
2 files changed, 1 insertions, 60 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 60c27e8..9de0ec5 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -6,14 +6,11 @@ GSSDP_TESTS = test-publisher test-browser
if WITH_GUPNP
GUPNP_TESTS = server-test proxy-test browsing-test introspection-test
endif
-if WITH_GUPNP_UI
-GUPNP_UI_TESTS = device-view-test
-endif
if WITH_GUPNP_AV
GUPNP_AV_TESTS = search-criteria-test
endif
-all-tests: $(GSSDP_TESTS) $(GUPNP_TESTS) $(GUPNP_UI_TESTS) $(GUPNP_AV_TESTS)
+all-tests: $(GSSDP_TESTS) $(GUPNP_TESTS) $(GUPNP_AV_TESTS)
test-publisher: test-publisher.vala
$(QUIET_VALAC)$(VALAC) \
@@ -63,14 +60,6 @@ introspection-test: introspection-test.vala
--pkg=gupnp-1.0 \
-o $(@F) $<
-device-view-test: device-view-test.vala
- $(QUIET_VALAC)$(VALAC) \
- --quiet --thread \
- --vapidir=$(top_srcdir) \
- --vapidir=@VAPIDIR@ \
- --pkg=gupnp-ui-1.0 \
- -o $(@F) $<
-
search-criteria-test: search-criteria-test.vala
$(QUIET_VALAC)$(VALAC) \
--quiet --thread \
@@ -86,7 +75,6 @@ CLEANFILES = \
proxy-test \
browsing-test \
introspection-test \
- device-view-test \
search-criteria-test
EXTRA_DIST = \
@@ -96,5 +84,4 @@ EXTRA_DIST = \
proxy-test.vala \
browsing-test.vala \
introspection-test.vala \
- device-view-test.vala \
search-criteria-test.vala
diff --git a/tests/device-view-test.vala b/tests/device-view-test.vala
deleted file mode 100644
index 0bc5ed4..0000000
--- a/tests/device-view-test.vala
+++ /dev/null
@@ -1,46 +0,0 @@
-using GLib;
-using Gtk;
-using GUPnP;
-
-public class Test.DeviceViewTest : Window {
-
- construct {
- title = "GUPnP DeviceView Test";
- resize (400, 300);
- destroy.connect (Gtk.main_quit);
-
- /* Init GUPnP stuff */
- Context ctxt;
- try {
- ctxt = new Context (null, null, 0);
- } catch (Error err) {
- critical (err.message);
- Gtk.main_quit ();
- }
-
- ControlPoint cp = new ControlPoint (ctxt, "upnp:rootdevice");
- cp.active = true;
-
- /* Create a ScrolledWindow for the UIDeviceView */
- var scroll_win = new ScrolledWindow (null, null);
- scroll_win.set_policy (PolicyType.AUTOMATIC,
- PolicyType.ALWAYS);
- scroll_win.set_shadow_type (ShadowType.IN);
- add (scroll_win);
-
- /* Set up store and view */
- UIDeviceStore store = new UIDeviceStore (cp);
- UIDeviceView view = new UIDeviceView (store);
- scroll_win.add (view);
- }
-
- static int main (string[] args) {
- Gtk.init (ref args);
-
- var test = new DeviceViewTest ();
- test.show_all ();
- Gtk.main ();
-
- return 0;
- }
-}