summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt7
-rw-r--r--test/test-gobject.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 63c46d7..4ee097b 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -50,3 +50,10 @@ target_link_libraries(test-gobject
${GLIB2_LIBRARIES}
${GOBJECT2_LIBRARIES}
)
+
+add_executable(test-mock test-mock.c)
+target_link_libraries(test-mock
+ uca-gobject
+ ${GLIB2_LIBRARIES}
+ ${GOBJECT2_LIBRARIES}
+ )
diff --git a/test/test-gobject.c b/test/test-gobject.c
index 44a13cb..3ff77bf 100644
--- a/test/test-gobject.c
+++ b/test/test-gobject.c
@@ -1,13 +1,13 @@
#include <glib-object.h>
#include "uca-camera.h"
-#include "uca-pco-camera.h"
+#include "uca-mock-camera.h"
int main(int argc, char **argv)
{
g_type_init();
GError *error = NULL;
- UcaPcoCamera *cam = uca_pco_camera_new(&error);
+ UcaMockCamera *cam = uca_mock_camera_new(&error);
if (cam == NULL) {
g_error("Camera could not be initialized\n");