[rygel] tests: Unbreak seeking tests



commit 807d948b523663d212c9462621910bf246bcb2a0
Author: Jens Georg <jensg openismus com>
Date:   Tue Apr 16 12:22:19 2013 +0200

    tests: Unbreak seeking tests

 tests/rygel-http-byte-seek-test.vala | 10 ++++++++++
 tests/rygel-http-get-test.vala       |  4 ++++
 tests/rygel-http-time-seek-test.vala | 10 ++++++++++
 3 files changed, 24 insertions(+)
---
diff --git a/tests/rygel-http-byte-seek-test.vala b/tests/rygel-http-byte-seek-test.vala
index 555fd87..087a661 100644
--- a/tests/rygel-http-byte-seek-test.vala
+++ b/tests/rygel-http-byte-seek-test.vala
@@ -45,6 +45,16 @@ private class Rygel.Subtitle : GLib.Object {
 public class Rygel.MediaContainer : MediaObject {
 }
 
+public class Rygel.ClientHacks : GLib.Object {
+    public static ClientHacks create (Soup.Message msg) throws Error {
+        return new ClientHacks ();
+    }
+
+    public bool force_seek () {
+        return false;
+    }
+}
+
 private class Rygel.HTTPGet : GLib.Object {
     public const string ITEM_URI = "http://DoesntMatterWhatThisIs";;
 
diff --git a/tests/rygel-http-get-test.vala b/tests/rygel-http-get-test.vala
index 9c54834..9ebba61 100644
--- a/tests/rygel-http-get-test.vala
+++ b/tests/rygel-http-get-test.vala
@@ -45,6 +45,10 @@ public class Rygel.ClientHacks {
 
     public void apply (MediaItem? item) {
     }
+
+    public bool force_seek () {
+        return false;
+    }
 }
 
 public class Rygel.TestRequestFactory {
diff --git a/tests/rygel-http-time-seek-test.vala b/tests/rygel-http-time-seek-test.vala
index d79bf37..9892e30 100644
--- a/tests/rygel-http-time-seek-test.vala
+++ b/tests/rygel-http-time-seek-test.vala
@@ -44,6 +44,16 @@ private class Rygel.AudioItem : MediaItem {
     public int64 duration = 2048;
 }
 
+public class Rygel.ClientHacks : GLib.Object {
+    public static ClientHacks create (Soup.Message msg) throws Error {
+        return new ClientHacks ();
+    }
+
+    public bool force_seek () {
+        return false;
+    }
+}
+
 private class Rygel.Thumbnail : GLib.Object {}
 private class Rygel.Subtitle : GLib.Object {}
 


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