blob: f6e199283e341f36138c696dac11b3fe28352304 (
plain) (
tree)
|
|
/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
itpie.c
Abstract:
This module contains the test functions for phoneInitializeEx
Author:
Xiao Ying Ding (XiaoD) 7-March-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 "dophone.h"
#include "vars.h"
#include "tphone.h"
// phoneInitializeEx
//
// The following tests are made:
//
// Tested Notes
// -------------------------------------------------------------------------
// Go/No-Go test
//
// * = Stand-alone test case
//
//
BOOL TestPhoneInitializeEx(BOOL fQuietMode, BOOL fStandAlone)
{
LPTAPIPHONETESTINFO lpTapiPhoneTestInfo;
INT n;
BOOL fTestPassed = TRUE;
TapiPhoneTestInit();
lpTapiPhoneTestInfo = GetPhoneTestInfo();
OutputTAPIDebugInfo(
DBUG_SHOW_DETAIL,
"*****************************************************************************************");
OutputTAPIDebugInfo(
DBUG_SHOW_DETAIL,
">> Test phoneInitializeEx");
OutputTAPIDebugInfo(
DBUG_SHOW_DETAIL,
"#### Test phoneInitializeEx for go/no-go ");
// InitializeEx a phone app
lpTapiPhoneTestInfo->lpdwAPIVersion = &lpTapiPhoneTestInfo->dwAPIVersion;
lpTapiPhoneTestInfo->dwAPIVersion = TAPI_VERSION2_0;
lpTapiPhoneTestInfo->lpPhoneInitializeExParams =
(LPPHONEINITIALIZEEXPARAMS) AllocFromTestHeap (
sizeof(PHONEINITIALIZEEXPARAMS));
lpTapiPhoneTestInfo->lpPhoneInitializeExParams->dwTotalSize =
sizeof(PHONEINITIALIZEEXPARAMS);
lpTapiPhoneTestInfo->lpPhoneInitializeExParams->dwOptions =
PHONEINITIALIZEEXOPTION_USEHIDDENWINDOW;
// PHONEINITIALIZEEXOPTION_USECOMPLETIONPORT;
if(! DoPhoneInitializeEx (lpTapiPhoneTestInfo, TAPISUCCESS))
{
TPHONE_FAIL();
}
// Shutdown and end the tests
if (! DoPhoneShutdown(lpTapiPhoneTestInfo, TAPISUCCESS))
{
TPHONE_FAIL();
}
FreeTestHeap();
if(fTestPassed)
TapiLogDetail(
DBUG_SHOW_DETAIL,
"## phoneInitializeEx Test Passed");
else
TapiLogDetail(
DBUG_SHOW_DETAIL,
"## phoneInitializeEx Test Failed");
return fTestPassed;
}
|