cunit: added bitmap test template

This commit is contained in:
Marc-André Moreau 2011-07-10 00:24:09 -04:00
parent 5e892025fd
commit 54a697d0bc
4 changed files with 83 additions and 0 deletions

View File

@ -33,6 +33,8 @@ add_executable(test_freerdp
test_mcs.h
test_color.c
test_color.h
test_bitmap.c
test_bitmap.h
test_libgdi.c
test_libgdi.h
test_list.c

49
cunit/test_bitmap.c Normal file
View File

@ -0,0 +1,49 @@
/**
* FreeRDP: A Remote Desktop Protocol Client
* Bitmap Unit Tests
*
* Copyright 2011 Jay Sorg <jay.sorg@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <freerdp/freerdp.h>
#include <freerdp/utils/hexdump.h>
#include <freerdp/utils/stream.h>
#include "test_bitmap.h"
int init_bitmap_suite(void)
{
return 0;
}
int clean_bitmap_suite(void)
{
return 0;
}
int add_bitmap_suite(void)
{
add_test_suite(bitmap);
add_test_function(bitmap);
return 0;
}
void test_bitmap(void)
{
}

26
cunit/test_bitmap.h Normal file
View File

@ -0,0 +1,26 @@
/**
* FreeRDP: A Remote Desktop Protocol Client
* Bitmap Unit Tests
*
* Copyright 2011 Jay Sorg <jay.sorg@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "test_freerdp.h"
int init_bitmap_suite(void);
int clean_bitmap_suite(void);
int add_bitmap_suite(void);
void test_bitmap(void);

View File

@ -24,6 +24,7 @@
#include "test_gcc.h"
#include "test_mcs.h"
#include "test_color.h"
#include "test_bitmap.h"
#include "test_libgdi.h"
#include "test_list.h"
#include "test_stream.h"
@ -115,6 +116,7 @@ int main(int argc, char* argv[])
add_gcc_suite();
add_mcs_suite();
add_color_suite();
add_bitmap_suite();
add_libgdi_suite();
add_list_suite();
add_stream_suite();
@ -130,6 +132,10 @@ int main(int argc, char* argv[])
{
add_color_suite();
}
if (strcmp("bitmap", argv[*pindex]) == 0)
{
add_bitmap_suite();
}
else if (strcmp("libgdi", argv[*pindex]) == 0)
{
add_libgdi_suite();