projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a9c774
)
cunit: add load_plugin unit test.
author
Vic Lee
<llyzs@163.com>
Fri, 8 Jul 2011 06:29:09 +0000
(14:29 +0800)
committer
Vic Lee
<llyzs@163.com>
Fri, 8 Jul 2011 06:35:05 +0000
(14:35 +0800)
cunit/test_utils.c
patch
|
blob
|
history
cunit/test_utils.h
patch
|
blob
|
history
diff --git
a/cunit/test_utils.c
b/cunit/test_utils.c
index
fd10ac5
..
b297670
100644
(file)
--- a/
cunit/test_utils.c
+++ b/
cunit/test_utils.c
@@
-23,6
+23,7
@@
#include <freerdp/freerdp.h>
#include <freerdp/utils/mutex.h>
#include <freerdp/utils/semaphore.h>
+#include <freerdp/utils/load_plugin.h>
#include "test_utils.h"
@@
-42,6
+43,7
@@
int add_utils_suite(void)
add_test_function(mutex);
add_test_function(semaphore);
+ add_test_function(load_plugin);
return 0;
}
@@
-65,3
+67,11
@@
void test_semaphore(void)
freerdp_sem_signal(sem);
freerdp_sem_free(sem);
}
+
+void test_load_plugin(void)
+{
+ void* entry;
+
+ entry = freerdp_load_plugin("cliprdr", "VirtualChannelEntry");
+ CU_ASSERT(entry != NULL);
+}
diff --git
a/cunit/test_utils.h
b/cunit/test_utils.h
index
01e1dfb
..
a469966
100644
(file)
--- a/
cunit/test_utils.h
+++ b/
cunit/test_utils.h
@@
-25,3
+25,4
@@
int add_list_suite(void);
void test_mutex(void);
void test_semaphore(void);
+void test_load_plugin(void);