[rygel] tests: Avoid unused methods warnings



commit 07e8389c33b2ffc90bcf5f0005e284299969b438
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Dec 6 16:28:30 2012 +0100

    tests: Avoid unused methods warnings

 tests/rygel-album-art-spec-test.vala |    6 ++++++
 tests/rygel-http-get-test.vala       |    5 +++++
 tests/rygel-item-creator-test.vala   |    8 ++++++++
 3 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/tests/rygel-album-art-spec-test.vala b/tests/rygel-album-art-spec-test.vala
index e064be3..a78e24f 100644
--- a/tests/rygel-album-art-spec-test.vala
+++ b/tests/rygel-album-art-spec-test.vala
@@ -43,6 +43,12 @@ private class Rygel.AlbumArtSpecTest : GLib.Object {
     public void run() {
         this.test_full_spec ();
         //this.test_simple_spec ();
+
+        /* This is just here to avoid a warning about an unused method: */
+        var thumbnail = new Thumbnail();
+        var didl_writer = new GUPnP.DIDLLiteWriter (null);
+        var didl_item = didl_writer.add_item ();
+        thumbnail.add_resource(didl_item, "http");
     }
 
     public void test_full_spec () {
diff --git a/tests/rygel-http-get-test.vala b/tests/rygel-http-get-test.vala
index 961c0bb..9c54834 100644
--- a/tests/rygel-http-get-test.vala
+++ b/tests/rygel-http-get-test.vala
@@ -94,6 +94,11 @@ public class Rygel.HTTPGetTest : GLib.Object {
             return -1;
         }
 
+        /* Avoid some warnings about unused methods: */
+        var item = new VideoItem();
+        assert (!item.is_live_stream());
+        assert (!item.streamable());
+
         return 0;
     }
 
diff --git a/tests/rygel-item-creator-test.vala b/tests/rygel-item-creator-test.vala
index f93aa1a..21d8e1b 100644
--- a/tests/rygel-item-creator-test.vala
+++ b/tests/rygel-item-creator-test.vala
@@ -21,6 +21,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
+/* This is not used.
 [CCode (cname = "uuid_generate", cheader_filename = "uuid/uuid.h")]
 internal extern static void uuid_generate ([CCode (array_length = false)]
                                            uchar[] uuid);
@@ -29,6 +30,7 @@ internal extern static void uuid_unparse ([CCode (array_length = false)]
                                           uchar[] uuid,
                                           [CCode (array_length = false)]
                                           uchar[] output);
+*/
 
 public const string DIDL_ITEM = """<?xml version="1.0" encoding="UTF-8"?>
 <DIDL-Lite
@@ -312,6 +314,12 @@ public class Rygel.HTTPItemCreatorTest : GLib.Object {
         test.test_didl_parsing ();
         test.test_fetch_container ();
 
+        /* This is just here to avoid warnings about unused methods: */
+        var serializer = new Serializer (SerializerType.GENERIC_DIDL);
+        serializer.add_item ();
+        serializer.add_container ();
+        serializer.filter ("something");
+
         return 0;
     }
 



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