cunit: add load_plugin unit test.

This commit is contained in:
Vic Lee 2011-07-08 14:29:09 +08:00
parent 3a9c774979
commit 476c6eb285
2 changed files with 11 additions and 0 deletions

View File

@ -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);
}

View File

@ -25,3 +25,4 @@ int add_list_suite(void);
void test_mutex(void);
void test_semaphore(void);
void test_load_plugin(void);