summaryrefslogtreecommitdiffstats
path: root/test/test-mock.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-12-12 15:49:33 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2013-12-12 15:49:33 +0100
commit5e0222e521c43ccc7074856cf43ecc8d1bcaaec8 (patch)
treee6608d81bdc36277120f90f1702ca54b9c7b034b /test/test-mock.c
parent8d07daf747c5061596072b3ecdfffbb2fcd11ef7 (diff)
downloaduca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.tar.gz
uca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.tar.bz2
uca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.tar.xz
uca-5e0222e521c43ccc7074856cf43ecc8d1bcaaec8.zip
Add new API call uca_camera_is_recording
Diffstat (limited to 'test/test-mock.c')
-rw-r--r--test/test-mock.c10
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