From 5e0222e521c43ccc7074856cf43ecc8d1bcaaec8 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 12 Dec 2013 15:49:33 +0100 Subject: Add new API call uca_camera_is_recording --- test/test-mock.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'test/test-mock.c') diff --git a/test/test-mock.c b/test/test-mock.c index 7876f5b..e66ef8f 100644 --- a/test/test-mock.c +++ b/test/test-mock.c @@ -136,16 +136,14 @@ test_recording_property (Fixture *fixture, gconstpointer data) gboolean is_recording = FALSE; uca_camera_start_recording (camera, NULL); - g_object_get (G_OBJECT (camera), - "is-recording", &is_recording, - NULL); + g_object_get (G_OBJECT (camera), "is-recording", &is_recording, NULL); g_assert (is_recording == TRUE); + g_assert (uca_camera_is_recording (camera)); uca_camera_stop_recording (camera, NULL); - g_object_get (G_OBJECT (camera), - "is-recording", &is_recording, - NULL); + g_object_get (G_OBJECT (camera), "is-recording", &is_recording, NULL); g_assert (is_recording == FALSE); + g_assert (!uca_camera_is_recording (camera)); } static void -- cgit v1.2.3