From 64f131cbdd9323100cf048e2463d23619052975d Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Fri, 14 Feb 2020 13:48:05 -0500 Subject: [PATCH] tests: implement begin_fade vmethod on WpFakeEndpoint --- tests/modules/config-policy/endpoint-fake.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/modules/config-policy/endpoint-fake.c b/tests/modules/config-policy/endpoint-fake.c index d21118ce..7a3fa90e 100644 --- a/tests/modules/config-policy/endpoint-fake.c +++ b/tests/modules/config-policy/endpoint-fake.c @@ -66,6 +66,15 @@ wp_fake_endpoint_prepare_link (WpBaseEndpoint * ep, guint32 stream_id, return TRUE; } +static void +wp_fake_endpoint_begin_fade (WpBaseEndpoint * ep, guint32 stream_id, + guint duration, gfloat step, guint direction, guint type, + GCancellable * cancellable, GAsyncReadyCallback callback, gpointer data) +{ + g_autoptr (GTask) task = g_task_new (ep, cancellable, callback, data); + g_task_return_boolean (task, TRUE); +} + static const char * wp_fake_endpoint_get_endpoint_link_factory (WpBaseEndpoint * ep) { @@ -204,6 +213,7 @@ wp_fake_endpoint_class_init (WpFakeEndpointClass * klass) endpoint_class->get_role = wp_fake_endpoint_get_role; endpoint_class->get_global_id = wp_fake_endpoint_get_global_id; endpoint_class->prepare_link = wp_fake_endpoint_prepare_link; + endpoint_class->begin_fade = wp_fake_endpoint_begin_fade; endpoint_class->get_endpoint_link_factory = wp_fake_endpoint_get_endpoint_link_factory;