tests: Mock XBoxHacks for unit-tests
authorJens Georg <mail@jensge.org>
Sat, 7 May 2011 19:26:11 +0000 (21:26 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 7 May 2011 19:59:05 +0000 (22:59 +0300)
tests/rygel-http-get-test.vala

index 7f3acde..f40ba65 100644 (file)
@@ -29,6 +29,20 @@ public errordomain Rygel.TestError {
     TIMEOUT
 }
 
+public errordomain Rygel.XBoxHacksError {
+    NA
+}
+
+public class Rygel.XBoxHacks {
+    public XBoxHacks.for_headers (MessageHeaders headers) throws Error {
+        throw new XBoxHacksError.NA ("");
+    }
+
+    public bool is_album_art_request (Message message) {
+        return false;
+    }
+}
+
 public class Rygel.HTTPGetTest : GLib.Object {
     protected HTTPServer server;
     protected HTTPClient client;