mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
114 lines
2.4 KiB
114 lines
2.4 KiB
|
|
/*++
|
|
|
|
Copyright (c) 1995 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
ittrmec.c
|
|
|
|
Abstract:
|
|
|
|
This module contains the test functions for tapiRequestMediaCall
|
|
|
|
Author:
|
|
|
|
Xiao Ying Ding (XiaoD) 30-Jan-1996
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
|
|
#include "windows.h"
|
|
#include "malloc.h"
|
|
#include "string.h"
|
|
#include "tapi.h"
|
|
#include "trapper.h"
|
|
#include "tcore.h"
|
|
#include "ttest.h"
|
|
#include "doline.h"
|
|
#include "vars.h"
|
|
#include "wline.h"
|
|
|
|
|
|
|
|
// tapiRequestMediaCall
|
|
//
|
|
// The following tests are made:
|
|
//
|
|
// Tested Notes
|
|
// -------------------------------------------------------------------------
|
|
// Go/No-Go test
|
|
//
|
|
// * = Stand-alone test case
|
|
//
|
|
//
|
|
|
|
BOOL TestTapiRequestMediaCall(BOOL fQuietMode, BOOL fStandAlone)
|
|
{
|
|
LPTAPILINETESTINFO lpTapiLineTestInfo;
|
|
INT n;
|
|
BOOL fTestPassed = TRUE;
|
|
|
|
TapiLineTestInit();
|
|
lpTapiLineTestInfo = GetLineTestInfo();
|
|
|
|
OutputTAPIDebugInfo(
|
|
DBUG_SHOW_DETAIL,
|
|
"\n*****************************************************************************************");
|
|
|
|
OutputTAPIDebugInfo(
|
|
DBUG_SHOW_DETAIL,
|
|
">> Test tapiRequestMediaCall");
|
|
|
|
OutputTAPIDebugInfo(
|
|
DBUG_SHOW_DETAIL,
|
|
"#### Test tapiRequestMediaCall for go/no-go");
|
|
|
|
lpTapiLineTestInfo->hwnd = (HWND) GetTopWindow(NULL);
|
|
lpTapiLineTestInfo->wRequestID = 0;
|
|
|
|
#ifdef WUNICODE
|
|
lpTapiLineTestInfo->lpwszDeviceClass = L"tapi/line";
|
|
#else
|
|
lpTapiLineTestInfo->lpszDeviceClass = "tapi/line";
|
|
#endif
|
|
|
|
lpTapiLineTestInfo->lpDeviceID = 0;
|
|
lpTapiLineTestInfo->dwSize = 0;
|
|
lpTapiLineTestInfo->dwSecure = 0;
|
|
|
|
#ifdef WUNICODE
|
|
lpTapiLineTestInfo->lpwszDestAddress = L"55555";
|
|
lpTapiLineTestInfo->lpwsztapiAppName = (LPWSTR)NULL;
|
|
lpTapiLineTestInfo->lpwszCalledParty = (LPWSTR) L"xxx";
|
|
lpTapiLineTestInfo->lpwszComment = (LPWSTR)NULL;
|
|
#else
|
|
lpTapiLineTestInfo->lpszDestAddress = "55555";
|
|
lpTapiLineTestInfo->lpsztapiAppName = (LPSTR)NULL;
|
|
lpTapiLineTestInfo->lpszCalledParty = (LPSTR)"xxx";
|
|
lpTapiLineTestInfo->lpszComment = (LPSTR)NULL;
|
|
#endif
|
|
|
|
// lpTapiLineTestInfo->lpszCalledParty = (LPSTR)NULL;
|
|
|
|
if (! DoTapiRequestMediaCall(lpTapiLineTestInfo, TAPIERR_REQUESTFAILED))
|
|
{
|
|
fTestPassed = FALSE;
|
|
}
|
|
|
|
|
|
if(fTestPassed)
|
|
OutputTAPIDebugInfo(
|
|
DBUG_SHOW_DETAIL,
|
|
"tapiRequestMediaCall Test Passed");
|
|
else
|
|
OutputTAPIDebugInfo(
|
|
DBUG_SHOW_DETAIL,
|
|
"tapiRequestMediaCall Test Failed");
|
|
|
|
return fTestPassed;
|
|
}
|
|
|
|
|