summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-02 10:31:40 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2012-03-02 10:31:40 +0100
commita8436e9b42a1b5a2b30b13a13496539fc23f480e (patch)
treeb757c3a60b00ea3affd0ba10a92d9457194e4121 /test
parente26a093b4036083f13265bcbde5eae442d502377 (diff)
downloadlibuca-a8436e9b42a1b5a2b30b13a13496539fc23f480e.tar.gz
libuca-a8436e9b42a1b5a2b30b13a13496539fc23f480e.tar.bz2
libuca-a8436e9b42a1b5a2b30b13a13496539fc23f480e.tar.xz
libuca-a8436e9b42a1b5a2b30b13a13496539fc23f480e.zip
Make UcaCamera a base class not an interface
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");