summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2014-07-13 19:14:13 +0200
committerJens Georg <mail@jensge.org>2014-07-13 19:14:28 +0200
commitacd61fe9fc3cbf6febf9d31ac0fc609cefe16a68 (patch)
treecc0848a7dec4555a08d24e2027055a3b11d2c8dd /tests
parent2179c5273e38f0ef858eadb76ee77839d7e2687c (diff)
downloadrygel-acd61fe9fc3cbf6febf9d31ac0fc609cefe16a68.tar.gz
tests: Fix tests
Signed-off-by: Jens Georg <mail@jensge.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/rygel-http-get-test.vala2
-rw-r--r--tests/rygel-http-item-uri-test.vala1
-rw-r--r--tests/rygel-http-post-test.vala1
-rw-r--r--tests/rygel-object-creator-test.vala4
4 files changed, 8 insertions, 0 deletions
diff --git a/tests/rygel-http-get-test.vala b/tests/rygel-http-get-test.vala
index 3893e08e..bd5e2bb3 100644
--- a/tests/rygel-http-get-test.vala
+++ b/tests/rygel-http-get-test.vala
@@ -392,6 +392,8 @@ public abstract class Rygel.MediaItem : Rygel.MediaObject {
public long size = 1024;
public ArrayList<string> uris = new ArrayList<string> ();
+ public Gee.ArrayList<string> get_uris () { return this.uris; }
+
public bool place_holder = false;
public bool is_live_stream () {
diff --git a/tests/rygel-http-item-uri-test.vala b/tests/rygel-http-item-uri-test.vala
index 6a4ed7a3..1a15353b 100644
--- a/tests/rygel-http-item-uri-test.vala
+++ b/tests/rygel-http-item-uri-test.vala
@@ -79,6 +79,7 @@ private class Rygel.MediaObject : GLib.Object {
private class Rygel.MediaItem : Rygel.MediaObject {
public ArrayList<string> uris = new ArrayList<string> ();
public string mime_type;
+ public Gee.ArrayList<string> get_uris () { return this.uris; }
}
private class Rygel.Thumbnail {
diff --git a/tests/rygel-http-post-test.vala b/tests/rygel-http-post-test.vala
index e92a92c0..34d35a26 100644
--- a/tests/rygel-http-post-test.vala
+++ b/tests/rygel-http-post-test.vala
@@ -422,6 +422,7 @@ public class Rygel.MediaItem : Rygel.MediaObject {
public long size = 1024;
public long duration = 1024;
public ArrayList<string> uris = new ArrayList<string> ();
+ public Gee.ArrayList<string> get_uris () { return this.uris; }
public bool place_holder = true;
diff --git a/tests/rygel-object-creator-test.vala b/tests/rygel-object-creator-test.vala
index da5be728..99af3c84 100644
--- a/tests/rygel-object-creator-test.vala
+++ b/tests/rygel-object-creator-test.vala
@@ -127,6 +127,10 @@ public class Rygel.MediaObject : GLib.Object {
this.uris.add (uri);
}
+ public Gee.ArrayList<string> get_uris () { return this.uris; }
+
+ public string get_primary_uri () { return this.uris[0]; }
+
internal void serialize (Rygel.Serializer serializer, HTTPServer server) {
}