projects
/
profile
/
ivi
/
rygel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cdbbf0
)
tests: Mock XBoxHacks for unit-tests
author
Jens Georg
<mail@jensge.org>
Sat, 7 May 2011 19:26:11 +0000
(21:26 +0200)
committer
Zeeshan Ali (Khattak)
<zeeshanak@gnome.org>
Sat, 7 May 2011 19:59:05 +0000
(22:59 +0300)
tests/rygel-http-get-test.vala
patch
|
blob
|
history
diff --git
a/tests/rygel-http-get-test.vala
b/tests/rygel-http-get-test.vala
index
7f3acde
..
f40ba65
100644
(file)
--- 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;