[rygel] test: Remove deprecated functions
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] test: Remove deprecated functions
- Date: Sun, 22 Jun 2014 09:54:55 +0000 (UTC)
commit 54fb2afcbe15d55d89d4a489a5cf764afd3e300e
Author: Jens Georg <mail jensge org>
Date: Sun Jun 22 11:54:12 2014 +0200
test: Remove deprecated functions
Signed-off-by: Jens Georg <mail jensge org>
tests/rygel-playbin-renderer-test.vala | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/tests/rygel-playbin-renderer-test.vala b/tests/rygel-playbin-renderer-test.vala
index 194ed5d..88b444b 100644
--- a/tests/rygel-playbin-renderer-test.vala
+++ b/tests/rygel-playbin-renderer-test.vala
@@ -30,7 +30,6 @@ private class Rygel.PlaybinRendererTest : GLib.Object {
var test = new PlaybinRendererTest ();
test.test_with_default_gstplaybin ();
- test.test_with_existing_gstplaybin ();
return 0;
}
@@ -38,15 +37,11 @@ private class Rygel.PlaybinRendererTest : GLib.Object {
public void test_with_default_gstplaybin() {
var renderer = new Rygel.Playbin.Renderer ("test playbin renderer");
assert (renderer != null);
- var player = Rygel.Playbin.Player.get_default ();
- assert (player.playbin != null);
- }
-
- public void test_with_existing_gstplaybin() {
- var element = Gst.ElementFactory.make ("playbin", null);
- var renderer = new Rygel.Playbin.Renderer.wrap (element, "test playbin renderer");
- assert (renderer != null);
- var player = Rygel.Playbin.Player.get_default ();
- assert (player.playbin != null);
+ try {
+ var player = Rygel.Playbin.Player.instance ();
+ assert (player.playbin != null);
+ } catch (Error error) {
+ assert_not_reached ();
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]