diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-12-12 15:49:33 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-12-12 15:49:33 +0100 |
commit | 5e0222e521c43ccc7074856cf43ecc8d1bcaaec8 (patch) | |
tree | e6608d81bdc36277120f90f1702ca54b9c7b034b /test | |
parent | 8d07daf747c5061596072b3ecdfffbb2fcd11ef7 (diff) | |
download | libuca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.tar.gz libuca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.tar.bz2 libuca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.tar.xz libuca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.zip |
Add new API call uca_camera_is_recording
Diffstat (limited to 'test')
-rw-r--r-- | test/test-mock.c | 10 |
1 files changed, 4 insertions, 6 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 |