[rygel] tests: Fix tests
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] tests: Fix tests
- Date: Sun, 13 Jul 2014 17:14:55 +0000 (UTC)
commit acd61fe9fc3cbf6febf9d31ac0fc609cefe16a68
Author: Jens Georg <mail jensge org>
Date: Sun Jul 13 19:14:13 2014 +0200
tests: Fix tests
Signed-off-by: Jens Georg <mail jensge org>
tests/rygel-http-get-test.vala | 2 ++
tests/rygel-http-item-uri-test.vala | 1 +
tests/rygel-http-post-test.vala | 1 +
tests/rygel-object-creator-test.vala | 4 ++++
4 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/rygel-http-get-test.vala b/tests/rygel-http-get-test.vala
index 3893e08..bd5e2bb 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 6a4ed7a..1a15353 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 e92a92c..34d35a2 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 da5be72..99af3c8 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) {
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]