• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ INFO_PRINTF2函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中INFO_PRINTF2函数的典型用法代码示例。如果您正苦于以下问题:C++ INFO_PRINTF2函数的具体用法?C++ INFO_PRINTF2怎么用?C++ INFO_PRINTF2使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了INFO_PRINTF2函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: wcwidth

TInt CTestLibcwchar::wcwidth2L(  )
    {
       
	wchar_t wc = L'\0';
	int retval;

	retval = wcwidth(wc);

	INFO_PRINTF2(_L("wcwidth2 result is %d"),retval);
	
	if(retval != 0)
		{
		return KErrGeneral;
		}
	else
		{
		return KErrNone;
		}
    
    }
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:20,代码来源:tlibcwhar_misc.cpp


示例2: INFO_PRINTF1

void CX3pChannel::ConnectClientL(TUint aRequestId)
	{
	INFO_PRINTF1(_L("<<<< X3P Client: Connect to client :"));
	INFO_PRINTF2(_L("-> Client Id : %d"), aRequestId);
	
	TInt index = iRequestBuffer.Find(aRequestId, IsClientIdEqual);
	if (index != KErrNotFound)
		{
		User::Leave(KErrInUse);
		}
	
	if (!iConnected)
		{
		User::LeaveIfError(iTransmitPositionServer.Connect());
		iConnected = ETrue;	
		}
	
	CX3pRequest* request = CX3pRequest::NewL(*this, iTransmitPositionServer, aRequestId);
	iRequestBuffer.AppendL(request);
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:20,代码来源:lbsnrhx3pchannel.cpp


示例3: GetSdpAttrValue

void CT_DataSdpAttrValue::DoCmdInt(const TDesC& aSection)
	{
	TInt	actual = GetSdpAttrValue()->Int();
	INFO_PRINTF2(_L("CSdpAttrValue::Int = %d"), actual);

	TInt	expected;
	if ( GetIntFromConfig(aSection, KExpected(), expected) )
		{
		if ( actual!=expected )
			{
			ERR_PRINTF1(_L("Int is not as expected!"));
			SetBlockResult(EFail);
			}
		}
	else
		{
  		ERR_PRINTF2(_L("Missing expected value %S"), &KExpected());
  		SetBlockResult(EFail);		
		}
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:20,代码来源:T_DataSdpAttrValue.cpp


示例4: ERR_PRINTF2

// ---------------------------
// RTestStepMmfCtlfrmAudioNoSource
// same as RTestStepMmfCtlfrmAudio, but has no source or sink loaded yet
TVerdict RTestStepMmfCtlfrmAudioNoSource::OpenL()
{
    // preamble - load a controller but give it no data source
    TInt error = KErrNone;

    iSettings.iPriority = ETSIMmfPriorityHigh;
    iSettings.iPref = EMdaPriorityPreferenceQuality;
    iSettings.iState = EMMFStateIdle;

    // Open a controller
    error = iController.Open(KUidCustomTestAudioPlugin, iSettings);
    if (error)
    {
        ERR_PRINTF2(_L("controller failed to open, error %d"), error);
        return iTestStepResult = EInconclusive;
    }

    INFO_PRINTF2(_L("Opened Custom Audio Controller, UID 0x%8x"), KUidCustomTestAudioPlugin);
    return iTestStepResult = EPass;
}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:23,代码来源:TSI_MmfCtlfrmStep.cpp


示例5: wcswidth

TInt CTestLibcwchar::wcswidth3L(  )
	{	
       
	wchar_t *ws = L"test case";
	int retval;
	
	retval = wcswidth(ws,5);

	INFO_PRINTF2(_L("wcswidth3 result is %d"),retval);

	if(retval != 5)
		{
		return KErrGeneral;
		}
	else
		{
		return KErrNone;
		}
    
    }
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:20,代码来源:tlibcwhar_misc.cpp


示例6: INFO_PRINTF2

void CT_DataSdpAttrValue::DoCmdType(const TDesC& aSection)
	{
	TSdpElementType	actual=GetSdpAttrValue()->Type();
	INFO_PRINTF2(_L("CSdpAttrValue::Type = %d"), actual);

	TSdpElementType	expected;
	if ( CT_BTUtil::ReadSdpElementType(*this, expected, aSection, KExpected()) )
		{
		if ( actual!=expected )
			{
			ERR_PRINTF1(_L("Type is not as expected!"));
			SetBlockResult(EFail);
			}
		}
	else
		{
  		ERR_PRINTF1(_L("Missing expected value Type"));
  		SetBlockResult(EFail);		
		}
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:20,代码来源:T_DataSdpAttrValue.cpp


示例7: TRAPD

TInt CCTSYIntegrationTestSuiteStepBase::DoPauseL(const TDesC& aText, TTimeDuration aTimeout /* = ETimeMedium */)
/**
 Performs a pause, usually to allow user to intervene in Manual tests
 
 @param		aText - text for prompt
 @param		aTimeout - 
 @return	KErrNone if user pressed a key
 */
	{
	TInt ret = KErrNone;
		
	CConsoleBase* con = NULL;
	TRAPD(err, con = Console::NewL(_L("Interactive Test"), TSize(KConsFullScreen, KConsFullScreen)));

	INFO_PRINTF2(_L("Console status = %d"), err);
	TEST(err == KErrNone);
	CleanupStack::PushL(con);
	
	TConsoleReadRequestStatus readRequest(*con);
	//add to cleanup stack
	CleanupStack::PushL(readRequest);
	con->Printf(_L("%S (timeout %d secs) ..."), &aText, aTimeout / KOneSecond);
	con->Read(readRequest);
	
	ret = WaitForRequestWithTimeOut(readRequest, aTimeout);	
		
	if (ret == KErrTimedOut)
		{
		WARN_PRINTF1(_L("[doPause] No keypress detected, timeout! Manual action may not have occurred."));
		}

	if (readRequest.Int() == KRequestPending)	
		{
		readRequest.Cancel();
		}
	
	CleanupStack::PopAndDestroy(); // readRequest
	CleanupStack::PopAndDestroy(); // con
	
	return ret;
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:41,代码来源:cctsyintegrationtestsuitebase.cpp


示例8: SetTestStepResult

TVerdict CGpsAlmanacSatInfoNodeStep::doTestStepPreambleL()
/**
 * @return - TVerdict code
 * Override of base class virtual
 */
	{

	// A previous step may have built the NavModelSatInfoArrayBuilder. If that is not the case,
	// then build it.
	//
	SetTestStepResult(EPass);
   	iGpsAlmanacReader.DataBuffer() = iGpsAlmanacBuilder.DataBuffer();
   	TBool exists = iGpsAlmanacReader.FieldExists(TUEPositioningGpsAlmanac::EAlmanacInfoSatArray);
   	if (!exists)
		{
		iGpsAlmanacBuilder.GetArrayBuilder(TUEPositioningGpsAlmanac::EAlmanacInfoSatArray, iAlmanacSatInfoArrayBuilder);
   		}

    // Modify index to grab next node. Test only nodes 0, 15 and 31.
    // (initial value is -1 so first used index will be zero)
    if (iArrayIndex == -1)
    	{
    	iArrayIndex = 0;
    	}
    else if (iArrayIndex == 0)
    	{
    	iArrayIndex = 15;
    	}
    else if (iArrayIndex == 15)
    	{
    	iArrayIndex = 31;	
    	}
    else
    	{
    	SetTestStepResult(EFail);	
    	}
    
   	INFO_PRINTF2(_L("Node being proccesed at index %D"),iArrayIndex);

	return TestStepResult();
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:41,代码来源:GpsAlmanacSatInfoNodeStep.cpp


示例9: GetIntFromConfig

TInt CTestSendsignal::TestNegativeKill2 (  )
	{  
	int ret1 = KErrGeneral, pid, pid1, Signum, ret, status;
	char **argv=(char**)malloc(3*sizeof(char*));
	ret = GetIntFromConfig(ConfigSection(), _L("Signum"), Signum);
	if(ret == 0)
		{
		ERR_PRINTF1(_L("Failed to read the signal number")) ;
		goto close; 
		}
	argv[0]=(char*)malloc(34*sizeof(char));
	argv[1]= 0;
	strcpy(argv[0], "z:\\sys\\bin\\receivesignal.exe");
	ret = posix_spawn(&pid, "z:\\sys\\bin\\receivesignal.exe", NULL, NULL, argv, (char**)NULL);
	if(ret != 0)
		{
		ERR_PRINTF2(_L("Error in posix spawn and errno is set to %d"),errno);
		goto close;
		}
	INFO_PRINTF2( _L("the value of pid returned by posix_spawn is %d"),  pid);
	ret = kill(pid,Signum);
	INFO_PRINTF1(_L("Negative test on Kill()"));
	if((ret != -1) || (errno != EINVAL))
		{
		ERR_PRINTF1(_L("Failed to set the return value"));	
		goto close;
		}
	pid1 = waitpid(pid, &status, WUNTRACED);
	if (pid1 != pid)
		{
		ERR_PRINTF1(_L("waitpid failed..."));	
		goto close;
		}	
	INFO_PRINTF1(_L("Both the return and expected value of kill() are same"));
	ret1 = KErrNone;
	
	close:
	free((void*)argv[0]);
	free((void*)argv);
	return ret1;
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:41,代码来源:tsendsignalblocks.cpp


示例10: INFO_PRINTF1

/**
Test operator!=()
*/
void CT_SEIDData::DoCmdNegativeCompareL(const TDesC& aSection)
	{
	INFO_PRINTF1(_L("TSEID != Call."));
	TSEID*	seid=NULL;
	TPtrC	seidName;
	if ( !GetStringFromConfig(aSection, KFldSeid, seidName) )
		{
		ERR_PRINTF2(KLogMissingParameter, &KFldSeid);
		SetBlockResult(EFail);
		}
	else
		{
		seid = static_cast<TSEID*>(GetDataObjectL(seidName));
		}	
	
	if(seid)
		{
		TBool actual = iData->operator !=(*seid);
		INFO_PRINTF2(_L("execuete operator !=(TSEID) = %d"), actual);
		
		TBool expected=EFalse;
		if( !GetBoolFromConfig(aSection, KFldExpected(), expected) )
			{
			ERR_PRINTF2(KLogMissingParameter, &KFldExpected);
			SetBlockResult(EFail);
			}
		else
			{
			if ( actual!=expected )
				{
				ERR_PRINTF1(KLogNotExpectedValue);
				SetBlockResult(EFail);
				}
			}
		}
	else
		{
		ERR_PRINTF1(_L("seid is NULL"));
		SetBlockResult(EFail);
		}
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:44,代码来源:T_SEIDData.cpp


示例11: StopTest

// signal complete
void RTestStepConvertAudio::ConvertComplete(TInt aError)
	{
	if (aError != KErrNone)
		{
		StopTest(aError);		
		}
	else
		{
		TBool result = EFalse;
		TRAPD(err, result = CheckConversionL());
		if (err != KErrNone)
			{
			INFO_PRINTF2(_L("Could not check the converted file, err = %d"), err);
			StopTest(err, EFail);				
			}
		else  
			{
			StopTest(aError, (result ? EPass : EFail));			
			}
		}
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:22,代码来源:TestStepConvertOpen.cpp


示例12: Value

/**
Test Value()
*/
void CT_SEIDData::DoCmdValue(const TDesC& aSection)
	{
	INFO_PRINTF1(_L("TSEID Value() Call."));
	TInt actual = iData->Value();
	INFO_PRINTF2(_L("Value()=%d"), actual);
	
	TInt expected=0;
	if( !GetIntFromConfig(aSection, KFldExpected(), expected) )
		{
		ERR_PRINTF2(KLogMissingParameter, &KFldExpected);
		SetBlockResult(EFail);
		}
	else
		{
		if ( actual!=expected )
			{
			ERR_PRINTF1(KLogNotExpectedValue);
			SetBlockResult(EFail);
			}
		}
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:24,代码来源:T_SEIDData.cpp


示例13: INFO_PRINTF2

void CT_TCommConfigV02Data::DoCmdiTxShutdownTimeout(const TDesC& aSection)
	{
	TInt	actual=GetCommConfigV02().iTxShutdownTimeout;
	INFO_PRINTF2(_L("iTxShutdownTimeout : %d"), actual);

	TInt	expected;
	if( GetIntFromConfig(aSection, KFldExpected(), expected) )
		{
		if ( expected!=actual )
			{
			ERR_PRINTF1(_L("Expected Value does not match actual"));
			SetBlockResult(EFail);
			}
		}

	TInt	value;
	if( GetIntFromConfig(aSection, KFldValue(), value) )
		{
		GetCommConfigV02().iTxShutdownTimeout=value;
		}
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:21,代码来源:T_TCommConfigV02Data.cpp


示例14: INFO_PRINTF1

TVerdict CTRuleBasedLaunchingStep::doTestStepL()
	{
	INFO_PRINTF1(_L("TRuleBasedLaunchingStep test started...."));
	
	User::LeaveIfError(FbsStartup());
	TInt ret=RFbsSession::Connect();

	User::LeaveIfError(iFs.Connect());
	User::LeaveIfError(iWs.Connect());
	
	TEST(ret==KErrNone);
	__UHEAP_MARK;			
	TRAPD(err, ExecuteL()); 	
	TEST(err == KErrNone);
	INFO_PRINTF2(_L("execute tests ended with return value '%d'"), err);
	__UHEAP_MARKEND; 			
	
	RFbsSession::Disconnect();
	INFO_PRINTF1(_L(".... TRuleBasedLaunchingStep test finished!!"));
	return TestStepResult();
	}
开发者ID:fedor4ever,项目名称:default,代码行数:21,代码来源:T_RuleBasedLaunchingStep.cpp


示例15: INFO_PRINTF1

void CTestCalInterimApiIterator::doAllocTestL()
	{
	INFO_PRINTF1(_L("Alloc test"));
	TInt failCount = 1;
	for( ;; )
		{
		__UHEAP_SETFAIL(RHeap::EFailNext, failCount);
		TRAPD( err, IterateEntriesL());
		if ( err==KErrNone ) 
			{
			INFO_PRINTF1(_L("Memory allocation testing for iterators is done"));
			__UHEAP_RESET;
			break;
			}		
		if ( err != KErrNoMemory )
			SetTestStepResult(EFail);
		__UHEAP_SETFAIL(RHeap::ENone, 0);		
		failCount++;
		}
		INFO_PRINTF2(_L("FAILCOUNT %d"), failCount);
	}
开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:21,代码来源:TestCalInterimApiIterator.cpp


示例16: INFO_PRINTF2

/**
 * This is from MMMFControllerEventMonitorObserver. CMMFControllerEventMonitor
 * calls the method whenever it receives an event from OggRecordController. Basically
 * checks for the Playcompletion event and passes the error back to the test step.
 */
void RTestStepOggCtrlRecordBase::HandleEvent(const TMMFEvent& aEvent)
	{
	if (aEvent.iEventType==KMMFEventCategoryPlaybackComplete)
		{
		if((aEvent.iErrorCode == KErrNone) || (aEvent.iErrorCode == KErrEof))
			{
			iTestStepResult = EPass;
			}
		else
			{
			iTestStepResult = EFail;
			INFO_PRINTF2(_L("RecordCompletion is failed with  %d "), aEvent.iErrorCode);
			}
		}
	else
		{
		INFO_PRINTF1(_L("Failed to receive RecordCompletion Event "));
		iTestStepResult = EFail;
		}
	CActiveScheduler::Stop();
	}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:26,代码来源:tsu_mmf_oggctrl_teststep.cpp


示例17: ReadStringParam

TInt CTestFloat_blr::sinh_test()
	{	
	char chParam[MAX_SIZE];
  	FLOAT input;
  	FLOAT expected;
  	FLOAT max_ulp;
  	FLOAT gen_ulp;
  	
  	
  	// Read parameters
  	
  	ReadStringParam (chParam);
    ReadFloatParam (input);
    ReadFloatParam (expected);
    ReadFloatParam (max_ulp);
    //
    TBuf<MAX_SIZE> buf;
    TInt len = strlen(chParam);
    
    for (TInt j =0; j<len;j++)
    	{
    	buf.Append(chParam[j]);
		}
    
    // Do some testing
    FLOAT res = FUNC(sinh) (input);
        
    if(check_longlong(res, expected, max_ulp, gen_ulp))
    	{
    	INFO_PRINTF1(_L("Test passed."));
    	}
    else    
    	{
    	ERR_PRINTF1(_L("Test Failed."));
   		return KErrGeneral;
    	}
    
    INFO_PRINTF1(_L("_________________________________________\n"));
    INFO_PRINTF2(_L("TestCase		  : %S\n"), &buf );
    INFO_PRINTF2(_L("Input Value    : %f\n"), input );
    INFO_PRINTF2(_L("Expected Value : %f\n"), expected );
	INFO_PRINTF2(_L("Max ULP value  : %f\n"), max_ulp );
	INFO_PRINTF2(_L("Result  		  : %f\n"), res );
	INFO_PRINTF2(_L("Generated Ulp  : %f\n"), gen_ulp );
	INFO_PRINTF1(_L("_________________________________________\n"));
    return KErrNone;

	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:48,代码来源:tfloat_double_blr2.cpp


示例18: INFO_PRINTF1

/**
RHostResolver::SetHostName()
*/
void CT_InquirySockAddrData::DoCmdSetHostName(const TDesC& aSection)
	{
	TPtrC deviceName;
	if(GetStringFromConfig(aSection, KDeviceName(), deviceName) )
		{
		INFO_PRINTF1(_L("Call RHostResolver::SetHostName()"));
		TInt err=iHostResolver.SetHostName(deviceName);
		INFO_PRINTF2(_L("iHostResolver.SetHostName(%S)"), &deviceName);

		if( err!=KErrNone )
			{
			ERR_PRINTF2(_L("iHostResolver.SetHostName() = %d"), err);
			SetError(err);
			}
		}
	else
		{
		ERR_PRINTF1(_L("No HostName given"));
		SetBlockResult(EFail);
		}
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:24,代码来源:T_InquirySockAddrData.cpp


示例19: INFO_PRINTF1

/**
* Function Name		: TestFtw3
* Description		: Tests the behaviour of ftw 
*/
TInt CTestftw::TestFtw3()
	{
	int ret=KErrNone;
	
	if(CreateDirs() == -1)
		{	
		INFO_PRINTF1(_L("Failed to create directory tree"));
		return KErrGeneral;
		}
	
	if(ftw("c:\\ftwtest", &action, 3) != 0)
		{
		INFO_PRINTF2(_L("FTW failed with errno %d"), errno);
		ret = KErrGeneral;	
		}
		
	rmdir("c:\\ftwtest\\test");
	rmdir("c:\\ftwtest");
	return ret;
			
	}
开发者ID:cdaffara,项目名称:symbiandump-os2,代码行数:25,代码来源:tftwblocks.cpp


示例20: InUse

/**
Test InUse()
*/
void CT_AvdtpSEPInfoData::DoCmdInUse(const TDesC& aSection)
	{
	INFO_PRINTF1(_L("TAvdtpSEPInfo InUse() Call."));
	TBool actual = iData->InUse();
	INFO_PRINTF2(_L("Execute InUse()=%d"), actual);
	
	TBool expected = EFalse;
	if( !GetBoolFromConfig(aSection, KFldExpected(), expected) )
		{
		ERR_PRINTF2(KLogMissingParameter, &KFldExpected);
		SetBlockResult(EFail);
		}
	else
		{
		if ( actual!=expected )
			{
			ERR_PRINTF1(KLogNotExpectedValue);
			SetBlockResult(EFail);
			}
		}
	}
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:24,代码来源:T_AvdtpSEPInfoData.cpp



注:本文中的INFO_PRINTF2函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ INFO_message函数代码示例发布时间:2022-05-30
下一篇:
C++ INFO_PRINTF1函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap