summaryrefslogtreecommitdiffstats
path: root/test/test-mock.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-08-07 12:33:47 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-08-07 12:33:47 +0200
commitb4beea2f9337014d522436cdf645291e0163d51a (patch)
treedde1ee691608daf3f3e7708e7e7ac2796ac38ebe /test/test-mock.c
parent9938d9a5d31dba215f9a4cd623b145f12b4ecd2c (diff)
downloaduca-b4beea2f9337014d522436cdf645291e0163d51a.tar.gz
uca-b4beea2f9337014d522436cdf645291e0163d51a.tar.bz2
uca-b4beea2f9337014d522436cdf645291e0163d51a.tar.xz
uca-b4beea2f9337014d522436cdf645291e0163d51a.zip
Reset all property units and warn on override
Diffstat (limited to 'test/test-mock.c')
-rw-r--r--test/test-mock.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test-mock.c b/test/test-mock.c
index facae53..de1e18d 100644
--- a/test/test-mock.c
+++ b/test/test-mock.c
@@ -221,6 +221,16 @@ test_signal (Fixture *fixture, gconstpointer data)
g_assert (success == TRUE);
}
+static void
+test_overwriting_units (Fixture *fixture, gconstpointer data)
+{
+ UcaUnit unit;
+
+ uca_camera_register_unit (fixture->camera, "frames-per-second", UCA_UNIT_PIXEL);
+ unit = uca_camera_get_unit (fixture->camera, "frames-per-second");
+ g_assert (unit != UCA_UNIT_PIXEL);
+}
+
int main (int argc, char *argv[])
{
#if !(GLIB_CHECK_VERSION (2, 36, 0))