summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-03-13 18:07:21 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2013-03-13 18:07:21 +0100
commitca1a74cafa8f75a20e42bbdf501f5c8e8f184920 (patch)
treef4e99bbc93abad34e24f7db89d786adb8fbfc834 /test
parent0c2a3b8d2f35ccc4dc67616e430df7fb72cb5e62 (diff)
downloadlibuca-ca1a74cafa8f75a20e42bbdf501f5c8e8f184920.tar.gz
libuca-ca1a74cafa8f75a20e42bbdf501f5c8e8f184920.tar.bz2
libuca-ca1a74cafa8f75a20e42bbdf501f5c8e8f184920.tar.xz
libuca-ca1a74cafa8f75a20e42bbdf501f5c8e8f184920.zip
Use GInitable to pass properties to plugins
Diffstat (limited to 'test')
-rw-r--r--test/test-mock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test-mock.c b/test/test-mock.c
index 50997f2..7876f5b 100644
--- a/test/test-mock.c
+++ b/test/test-mock.c
@@ -31,7 +31,8 @@ fixture_setup (Fixture *fixture, gconstpointer data)
g_free (plugin_path);
fixture->manager = uca_plugin_manager_new ();
- fixture->camera = uca_plugin_manager_get_camera (fixture->manager, "mock", &error);
+ fixture->camera = uca_plugin_manager_get_camera (fixture->manager,
+ "mock", &error, NULL);
g_assert (error == NULL);
g_assert (fixture->camera);
}
@@ -54,7 +55,8 @@ static void
test_factory (Fixture *fixture, gconstpointer data)
{
GError *error = NULL;
- UcaCamera *camera = uca_plugin_manager_get_camera (fixture->manager, "fox994m3a0yxmy", &error);
+ UcaCamera *camera = uca_plugin_manager_get_camera (fixture->manager,
+ "fox994m3a0yxmy", &error, NULL);
g_assert_error (error, UCA_PLUGIN_MANAGER_ERROR, UCA_PLUGIN_MANAGER_ERROR_MODULE_NOT_FOUND);
g_assert (camera == NULL);
}