diff options
author | Jens Georg <jensg@openismus.com> | 2013-04-16 12:22:19 +0200 |
---|---|---|
committer | Jens Georg <jensg@openismus.com> | 2013-04-16 12:41:23 +0200 |
commit | 807d948b523663d212c9462621910bf246bcb2a0 (patch) | |
tree | b42eb06350c3db9053acd75094bd3f93fae804c2 /tests | |
parent | b49d873093a41b82471ade0f4e8acb2edf4219f6 (diff) | |
download | rygel-807d948b523663d212c9462621910bf246bcb2a0.tar.gz |
tests: Unbreak seeking tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/rygel-http-byte-seek-test.vala | 10 | ||||
-rw-r--r-- | tests/rygel-http-get-test.vala | 4 | ||||
-rw-r--r-- | tests/rygel-http-time-seek-test.vala | 10 |
3 files changed, 24 insertions, 0 deletions
diff --git a/tests/rygel-http-byte-seek-test.vala b/tests/rygel-http-byte-seek-test.vala index 555fd872..087a6619 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 9c54834d..9ebba618 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 d79bf37f..9892e300 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 {} |