From 487f0b20e445628a6e7a311e247ce85db7f4b88c Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Mon, 8 Nov 2010 22:55:01 +0200 Subject: [PATCH] tests: Update test cases as per latest changes --- tests/rygel-http-post-test.vala | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/rygel-http-post-test.vala b/tests/rygel-http-post-test.vala index c453340..469bcbd 100644 --- a/tests/rygel-http-post-test.vala +++ b/tests/rygel-http-post-test.vala @@ -260,6 +260,8 @@ public class Rygel.MediaItem : Rygel.MediaObject { public long size = 1024; public long duration = 1024; + public bool place_holder = true; + public File file; public MediaItem (string id) { @@ -326,4 +328,24 @@ internal class Rygel.HTTPResponse : Rygel.StateMachine, GLib.Object { } } +public class Rygel.ItemRemovalQueue: GLib.Object { + public static ItemRemovalQueue get_default () { + return new ItemRemovalQueue (); + } + + public bool dequeue (MediaItem item) { + return true; + } + + public async void remove_now (MediaItem item, Cancellable? cancellable) { + Idle.add (remove_now.callback); + + yield; + } +} + public class Rygel.MediaObject {} + +public errordomain Rygel.ContentDirectoryError { + INVALID_ARGS = 402 +} -- 2.7.4