From: Jens Georg Date: Sat, 7 May 2011 19:26:11 +0000 (+0200) Subject: tests: Mock XBoxHacks for unit-tests X-Git-Tag: RYGEL_0_11_0~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f70e64d265f69d40ed729c0659e133b62f857086;p=profile%2Fivi%2Frygel.git tests: Mock XBoxHacks for unit-tests --- diff --git a/tests/rygel-http-get-test.vala b/tests/rygel-http-get-test.vala index 7f3acde..f40ba65 100644 --- a/tests/rygel-http-get-test.vala +++ b/tests/rygel-http-get-test.vala @@ -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;