Commit 15e30b9c authored by Vijay Kiran Kamuju's avatar Vijay Kiran Kamuju Committed by Alexandre Julliard

tapi/tests: Add initial tests for lineInitialize.

parent bb3c3e8f
......@@ -20841,6 +20841,7 @@ wine_fn_config_makefile dlls/system.drv16 enable_win16
wine_fn_config_makefile dlls/t2embed enable_t2embed
wine_fn_config_makefile dlls/t2embed/tests enable_tests
wine_fn_config_makefile dlls/tapi32 enable_tapi32
wine_fn_config_makefile dlls/tapi32/tests enable_tests
wine_fn_config_makefile dlls/taskschd enable_taskschd
wine_fn_config_makefile dlls/taskschd/tests enable_tests
wine_fn_config_makefile dlls/tdh enable_tdh
......
......@@ -3696,6 +3696,7 @@ WINE_CONFIG_MAKEFILE(dlls/system.drv16,enable_win16)
WINE_CONFIG_MAKEFILE(dlls/t2embed)
WINE_CONFIG_MAKEFILE(dlls/t2embed/tests)
WINE_CONFIG_MAKEFILE(dlls/tapi32)
WINE_CONFIG_MAKEFILE(dlls/tapi32/tests)
WINE_CONFIG_MAKEFILE(dlls/taskschd)
WINE_CONFIG_MAKEFILE(dlls/taskschd/tests)
WINE_CONFIG_MAKEFILE(dlls/tdh)
......
TESTDLL = tapi32.dll
IMPORTS = tapi32
C_SRCS = \
tapi.c
/*
* TAPI32 API tests
*
* Copyright 2019 Vijay Kiran Kamuju
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "tapi.h"
#include "wine/test.h"
static void CALLBACK line_callback(DWORD hDev, DWORD dwMsg, DWORD_PTR dwInst, DWORD_PTR param1, DWORD_PTR param2, DWORD_PTR param3)
{
}
static void test_lineInitialize(void)
{
ULONG ret;
DWORD dev;
HLINEAPP lnApp;
ret = lineInitialize(NULL, NULL, NULL, NULL, NULL);
todo_wine ok(ret == LINEERR_INVALPOINTER, "Expected return value LINEERR_INVALPOINTER, got %x.\n", ret);
ret = lineInitialize(&lnApp, NULL, NULL, NULL, NULL);
todo_wine ok(ret == LINEERR_INVALPOINTER, "Expected return value LINEERR_INVALPOINTER, got %x.\n", ret);
ret = lineInitialize(&lnApp, GetModuleHandleA(NULL), NULL, NULL, NULL);
todo_wine ok(ret == LINEERR_INVALPOINTER, "Expected return value LINEERR_INVALPOINTER, got %x.\n", ret);
ret = lineInitialize(&lnApp, GetModuleHandleA(NULL), line_callback, NULL, NULL);
todo_wine ok(ret == LINEERR_INVALPOINTER, "Expected return value LINEERR_INVALPOINTER, got %x.\n", ret);
ret = lineInitialize(&lnApp, GetModuleHandleA(NULL), line_callback, NULL, &dev);
ok(!ret, "unexpected return value, got %u.\n", ret);
ret = lineShutdown(NULL);
todo_wine ok(ret == LINEERR_INVALAPPHANDLE, "Expected return value LINEERR_INVALAPPHANDLE, got %x.\n", ret);
ret = lineShutdown(lnApp);
ok(!ret, "unexpected return value, got %u.\n", ret);
}
START_TEST(tapi)
{
test_lineInitialize();
}
......@@ -761,7 +761,7 @@ typedef struct linemessage_tag {
DWORD_PTR dwParam3;
} LINEMESSAGE, *LPLINEMESSAGE;
typedef void (CALLBACK *LINECALLBACK)(DWORD, DWORD, DWORD, DWORD, DWORD, DWORD);
typedef void (CALLBACK *LINECALLBACK)(DWORD, DWORD, DWORD_PTR, DWORD_PTR, DWORD_PTR, DWORD_PTR);
typedef struct _PHONEAPP {
int dummy;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment