diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-10-16 12:27:47 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-10-16 12:27:47 +0200 |
commit | d8743d20b93d34497183d05ccb17519194ec5abb (patch) | |
tree | 1b8470e41a5ce99fca3137e156faa7d523b7e61c /test/test-mock.c | |
parent | e1ab5f557171c94c0b86203cd2ecb50bb9a52ab0 (diff) | |
download | uca-d8743d20b93d34497183d05ccb17519194ec5abb.tar.gz uca-d8743d20b93d34497183d05ccb17519194ec5abb.tar.bz2 uca-d8743d20b93d34497183d05ccb17519194ec5abb.tar.xz uca-d8743d20b93d34497183d05ccb17519194ec5abb.zip |
Integrate initial unit facility
Diffstat (limited to 'test/test-mock.c')
-rw-r--r-- | test/test-mock.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-mock.c b/test/test-mock.c index 17af329..08f24b8 100644 --- a/test/test-mock.c +++ b/test/test-mock.c @@ -169,6 +169,13 @@ test_fps_property (Fixture *fixture, gconstpointer data) } static void +test_property_units (Fixture *fixture, gconstpointer data) +{ + g_assert (uca_camera_get_unit (fixture->camera, "sensor-width") == UCA_UNIT_PIXEL); + g_assert (uca_camera_get_unit (fixture->camera, "name") == UCA_UNIT_NA); +} + +static void test_binnings_properties (Fixture *fixture, gconstpointer data) { UcaCamera *camera = UCA_CAMERA (fixture->camera); @@ -210,6 +217,7 @@ int main (int argc, char *argv[]) g_test_add ("/properties/recording", Fixture, NULL, fixture_setup, test_recording_property, fixture_teardown); g_test_add ("/properties/binnings", Fixture, NULL, fixture_setup, test_binnings_properties, fixture_teardown); g_test_add ("/properties/frames-per-second", Fixture, NULL, fixture_setup, test_fps_property, fixture_teardown); + g_test_add ("/properties/units", Fixture, NULL, fixture_setup, test_property_units, fixture_teardown); g_test_add ("/signal", Fixture, NULL, fixture_setup, test_signal, fixture_teardown); return g_test_run (); |