diff options
author | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2010-04-13 14:25:54 +0300 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2010-04-13 14:26:50 +0300 |
commit | 28578c2e2431b6e9336bfeb1cadd93920ecd2266 (patch) | |
tree | 24a6eb4f60879b15435b6497f2ea7604ebfac803 /tests/rygel-http-item-uri-test.vala | |
parent | be2eec3df40f0ac2d44a1dcf0d9a17fef0f5f0e7 (diff) | |
download | rygel-28578c2e2431b6e9336bfeb1cadd93920ecd2266.tar.gz |
tests: Coverage for new subtitle APIs
Diffstat (limited to 'tests/rygel-http-item-uri-test.vala')
-rw-r--r-- | tests/rygel-http-item-uri-test.vala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rygel-http-item-uri-test.vala b/tests/rygel-http-item-uri-test.vala index 64708ae6..8f3442d9 100644 --- a/tests/rygel-http-item-uri-test.vala +++ b/tests/rygel-http-item-uri-test.vala @@ -56,6 +56,7 @@ private class Rygel.HTTPServer : GLib.Object { private class Rygel.HTTPItemURITest : GLib.Object { private const string ITEM_ID = "HELLO"; private const int THUMBNAIL_INDEX = 1; + private const int SUBTITLE_INDEX = 1; private const string TRANSCODE_TARGET = "MP3"; private HTTPServer server; @@ -80,6 +81,7 @@ private class Rygel.HTTPItemURITest : GLib.Object { var uris = new HTTPItemURI[] { this.test_construction (), this.test_construction_with_thumbnail (), + this.test_construction_with_subtitle (), this.test_construction_with_transcoder () }; foreach (var uri in uris) { @@ -99,6 +101,15 @@ private class Rygel.HTTPItemURITest : GLib.Object { return uri; } + private HTTPItemURI test_construction_with_subtitle () { + var uri = new HTTPItemURI (ITEM_ID, + this.server, + SUBTITLE_INDEX); + assert (uri != null); + + return uri; + } + private HTTPItemURI test_construction_with_thumbnail () { var uri = new HTTPItemURI (ITEM_ID, this.server, @@ -112,6 +123,7 @@ private class Rygel.HTTPItemURITest : GLib.Object { var uri = new HTTPItemURI (ITEM_ID, this.server, THUMBNAIL_INDEX, + -1, TRANSCODE_TARGET); assert (uri != null); |