summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-10-08 14:38:16 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@gmail.com>2012-10-08 14:38:16 +0200
commitb3dbedeec78a55802565a3824ab52188e8b9bd4d (patch)
tree7529d8a8ce0a65ed94195631787c4cab6279709a /test
parentd58bbe683873d043f50c8261f4588d7941e9cb8c (diff)
downloaduca-b3dbedeec78a55802565a3824ab52188e8b9bd4d.tar.gz
uca-b3dbedeec78a55802565a3824ab52188e8b9bd4d.tar.bz2
uca-b3dbedeec78a55802565a3824ab52188e8b9bd4d.tar.xz
uca-b3dbedeec78a55802565a3824ab52188e8b9bd4d.zip
Generate introspection files
Unfortunately, the gir tools recognize anything with $PREFIX_new_$SUFFIX as some kind of constructor. This means that we have to rename uca_plugin_manager_new_camera() to uca_plugin_manager_get_camera().
Diffstat (limited to 'test')
-rw-r--r--test/test-mock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-mock.c b/test/test-mock.c
index ca16c59..711364d 100644
--- a/test/test-mock.c
+++ b/test/test-mock.c
@@ -16,7 +16,7 @@ fixture_setup (Fixture *fixture, gconstpointer data)
fixture->manager = uca_plugin_manager_new ();
uca_plugin_manager_add_path (fixture->manager, "./src");
- fixture->camera = uca_plugin_manager_new_camera (fixture->manager, "mock", &error);
+ fixture->camera = uca_plugin_manager_get_camera (fixture->manager, "mock", &error);
g_assert (error == NULL);
g_assert (fixture->camera);
}
@@ -39,7 +39,7 @@ static void
test_factory (Fixture *fixture, gconstpointer data)
{
GError *error = NULL;
- UcaCamera *camera = uca_plugin_manager_new_camera (fixture->manager, "fox994m3a0yxmy", &error);
+ UcaCamera *camera = uca_plugin_manager_get_camera (fixture->manager, "fox994m3a0yxmy", &error);
g_assert_error (error, UCA_PLUGIN_MANAGER_ERROR, UCA_PLUGIN_MANAGER_ERROR_MODULE_NOT_FOUND);
g_assert (camera == NULL);
}