diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test-mock.c | 10 | ||||
-rw-r--r-- | test/test-ring-buffer.c | 2 |
2 files changed, 5 insertions, 7 deletions
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 diff --git a/test/test-ring-buffer.c b/test/test-ring-buffer.c index cc99ef9..2026408 100644 --- a/test/test-ring-buffer.c +++ b/test/test-ring-buffer.c @@ -62,7 +62,7 @@ test_ring (void) } int -main (int argc, char const* argv[]) +main (int argc, char *argv[]) { g_type_init (); g_test_init (&argc, &argv, NULL); |