From cfd749136a7882ddd59efd8f6cafd263b594b1a9 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 8 Jun 2008 08:29:04 +0000 Subject: [PATCH] add dummy test for dciman32 for now, real test will come later svn path=/trunk/; revision=33896 --- rostests/apitests/dciman32api/dciman32api.c | 19 +++++++++++ rostests/apitests/dciman32api/dciman32api.h | 22 +++++++++++++ .../apitests/dciman32api/dciman32api.rbuild | 12 +++++++ rostests/apitests/dciman32api/testlist.c | 32 +++++++++++++++++++ .../dciman32api/tests/DCICreatePrimary.c | 8 +++++ rostests/apitests/directory.rbuild | 4 +++ 6 files changed, 97 insertions(+) create mode 100644 rostests/apitests/dciman32api/dciman32api.c create mode 100644 rostests/apitests/dciman32api/dciman32api.h create mode 100644 rostests/apitests/dciman32api/dciman32api.rbuild create mode 100644 rostests/apitests/dciman32api/testlist.c create mode 100644 rostests/apitests/dciman32api/tests/DCICreatePrimary.c diff --git a/rostests/apitests/dciman32api/dciman32api.c b/rostests/apitests/dciman32api/dciman32api.c new file mode 100644 index 00000000000..f01aa41a64d --- /dev/null +++ b/rostests/apitests/dciman32api/dciman32api.c @@ -0,0 +1,19 @@ +#include "dciman32api.h" + +HINSTANCE g_hInstance; + +BOOL +IsFunctionPresent(LPWSTR lpszFunction) +{ + return TRUE; +} + +int APIENTRY +WinMain(HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPSTR lpCmdLine, + int nCmdShow) +{ + g_hInstance = hInstance; + return TestMain(L"dciman32api", L"dciman32.dll"); +} diff --git a/rostests/apitests/dciman32api/dciman32api.h b/rostests/apitests/dciman32api/dciman32api.h new file mode 100644 index 00000000000..658e6bdd6b1 --- /dev/null +++ b/rostests/apitests/dciman32api/dciman32api.h @@ -0,0 +1,22 @@ +#ifndef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif + +#define WIN32_NO_STATUS +#include +#include +#include +#include +#include +#include +#include + +/* Public Win32K Headers */ +#include +#include +#include + +#include "../apitest.h" + + + diff --git a/rostests/apitests/dciman32api/dciman32api.rbuild b/rostests/apitests/dciman32api/dciman32api.rbuild new file mode 100644 index 00000000000..f333e806aa0 --- /dev/null +++ b/rostests/apitests/dciman32api/dciman32api.rbuild @@ -0,0 +1,12 @@ + + . + + 0x0501 + apitest + kernel32 + user32 + gdi32 + shell32 + dciman32api.c + testlist.c + diff --git a/rostests/apitests/dciman32api/testlist.c b/rostests/apitests/dciman32api/testlist.c new file mode 100644 index 00000000000..2726bb7352a --- /dev/null +++ b/rostests/apitests/dciman32api/testlist.c @@ -0,0 +1,32 @@ +#ifndef _DCIMAN32TESTLIST_H +#define _DCIMAN32TESTLIST_H + +#include "dciman32api.h" + +/* include the tests */ +#include "tests/DCICreatePrimary.c" + + + + + + + + + + +/* The List of tests */ +TESTENTRY TestList[] = +{ + { L"DCICreatePrimary", Test_DCICreatePrimary } +}; + +/* The function that gives us the number of tests */ +INT NumTests(void) +{ + return sizeof(TestList) / sizeof(TESTENTRY); +} + +#endif + +/* EOF */ diff --git a/rostests/apitests/dciman32api/tests/DCICreatePrimary.c b/rostests/apitests/dciman32api/tests/DCICreatePrimary.c new file mode 100644 index 00000000000..2590158c5e9 --- /dev/null +++ b/rostests/apitests/dciman32api/tests/DCICreatePrimary.c @@ -0,0 +1,8 @@ + +INT +Test_DCICreatePrimary(PTESTINFO pti) +{ + + return APISTATUS_NORMAL; +} + diff --git a/rostests/apitests/directory.rbuild b/rostests/apitests/directory.rbuild index 85e422f710b..64c7c035739 100644 --- a/rostests/apitests/directory.rbuild +++ b/rostests/apitests/directory.rbuild @@ -8,6 +8,10 @@ apitest.c + + + +