[rygel] tests: Mock HTTPSeek class for HTTPGstResponse test



commit 15d4d218ef6b56485756434573558679a02ed1b5
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Mar 25 16:19:39 2011 +0200

    tests: Mock HTTPSeek class for HTTPGstResponse test

 tests/Makefile.am                       |    1 -
 tests/rygel-http-gst-response-test.vala |    8 ++++++++
 tests/rygel-http-seek_gst-response.vala |    1 -
 3 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 07728d4..383768f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -42,7 +42,6 @@ rygel_http_gst_response_test_SOURCES = rygel-http-gst-response-test.vala \
                                    rygel-http-response_gst-response.vala \
                                    rygel-http-response-test_gst-response.vala \
 				   rygel-state-machine_gst-response.vala \
-				   rygel-http-seek_gst-response.vala \
 				   rygel-gst-utils.vala
 
 rygel_http_seekable_response_test_SOURCES = \
diff --git a/tests/rygel-http-gst-response-test.vala b/tests/rygel-http-gst-response-test.vala
index 72a76ea..a116964 100644
--- a/tests/rygel-http-gst-response-test.vala
+++ b/tests/rygel-http-gst-response-test.vala
@@ -123,6 +123,14 @@ public class Rygel.MediaItem {
     }
 }
 
+internal abstract class Rygel.HTTPSeek : GLib.Object {
+    // These are either number of bytes or microseconds
+    public int64 start;
+    public int64 stop;
+    public int64 length;
+    public int64 total_length;
+}
+
 public errordomain Rygel.HTTPRequestError {
     NOT_FOUND = Soup.KnownStatusCode.NOT_FOUND
 }



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