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

C++ EUNIT_ASSERT函数代码示例

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

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



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

示例1: EUNIT_ASSERT

void UT_CNATFWUNSAFMessage::TestAddAttributeL()
    {
    EUNIT_ASSERT(iMsg->iAttributes.Count() == 0);

    iMsg->AddAttributeL(iAttr);
    CNATFWUNSAFAttribute* attr = iAttr;
    iAttr = NULL;

    EUNIT_ASSERT(iMsg->iAttributes.Count() == 1);
    //Pointers much match
    EUNIT_ASSERT(iMsg->iAttributes[0] == attr);
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:12,代码来源:ut_cnatfwunsafmessage.cpp


示例2: CleanupClosePushL

void T_CSPSettingsEngine::T_CSPSettingsEngine_HasVoIPAndVmbxPropertyNameL(  )
    {
    RPropertyNameArray names;
    CleanupClosePushL( names );
    EUNIT_ASSERT( !iCSPSettingsEngine->HasVoIPAndVmbxPropertyName( names ) );
    
    names.AppendL( EPropertyUnknown );
    names.AppendL( EPropertyVoIPSubServicePluginId );
    EUNIT_ASSERT( iCSPSettingsEngine->HasVoIPAndVmbxPropertyName( names ) );
    
    CleanupStack::PopAndDestroy( &names );
    }
开发者ID:kuailexs,项目名称:symbiandump-mw2,代码行数:12,代码来源:T_CSPSettingsEngine.cpp


示例3: CleanupClosePushL

void UT_CCFContextManager::UT_CCFContextManager_DefineContextL2L(  )
    {
	RThread thread;
	CleanupClosePushL(thread);

	TUid uid = TUid::Uid( 123 );
	
	// define context 1
	static _LIT_SECURITY_POLICY_PASS( alwaysPass );
	EUNIT_ASSERT_NO_LEAVE ( 
		iCFContextManagerInterface->DefineContextL( _L("testsource"),
		_L("testtype"), alwaysPass, alwaysPass, this, uid ) );

	// try to redefine 
	EUNIT_ASSERT_NO_LEAVE ( 
		iCFContextManagerInterface->DefineContextL( _L("testsource"),
		_L("testtype"), alwaysPass, alwaysPass, this, uid ) );

	// try to redefine with another UID
	TUid anotherUid = TUid::Uid( 345 );
	EUNIT_ASSERT_LEAVE (
		iCFContextManagerInterface->DefineContextL( _L("testsource"),
		_L("testtype"), alwaysPass, alwaysPass, this, anotherUid ) );
	
	// check that we get the subscribers notification
	CCFContextSubscription* subscription = CCFContextSubscription::NewLC();
	subscription->SetContextSourceL(_L("testsource"));
	subscription->SetContextTypeL(_L("testtype"));
	CleanupStack::Pop( subscription );

	iSubscribersCalled = EFalse;
	iExpectedSubscribersSource.Copy(_L("testsource"));
	iExpectedSubscribersType.Copy(_L("testtype"));
	
	// make subscription	
	EUNIT_ASSERT_NO_LEAVE (
		iCFContextManagerInterface->SubscribeContextL(subscription,
		this, thread) );
	
	EUNIT_ASSERT( iSubscribersCalled );
	iSubscribersCalled = EFalse;
	iNoSubscribersCalled = EFalse;
	
	
	EUNIT_ASSERT_NO_LEAVE (
			iCFContextManagerInterface->RemoveSubscription( *subscription,
			*this) );

	EUNIT_ASSERT( iNoSubscribersCalled );
	
	
	CleanupStack::PopAndDestroy( &thread );	
    }
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:53,代码来源:UT_CCFContextManager.cpp


示例4: EUNIT_ASSERT

void UT_CMceStateError::UT_CMceStateError_ExitLL()
    {
    iSipSession->iBody = CMceComSession::NewL( CMceComSession::EOutSession );
    
    EUNIT_ASSERT ( iSipSession->CurrentState().Id() == KMceStateError );
    
    TMceStateTransitionEvent event1( *iSipSession, EMceMediaError );
    iState->ExitL( event1 );
    EUNIT_ASSERT ( iSipSession->CurrentState().Id() == KMceStateError );
    
    
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:12,代码来源:UT_CMCEStateError.cpp


示例5: EUNIT_ASSERT

void UT_CNATBindingCRLFRefresher::TestSetRefreshL()
    {
    EUNIT_ASSERT(!iRefresher->IsRefreshed());
    iRefresher->SetRefresh(ETrue);
    EUNIT_ASSERT(iRefresher->IsRefreshed());
    iRefresher->SetRefresh(ETrue);
    EUNIT_ASSERT(iRefresher->IsRefreshed());
    iRefresher->SetRefresh(EFalse);
    EUNIT_ASSERT(!iRefresher->IsRefreshed());
    iRefresher->SetRefresh(EFalse);
    EUNIT_ASSERT(!iRefresher->IsRefreshed());
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:12,代码来源:ut_cnatbindingcrlfrefresher.cpp


示例6: EUNIT_ASSERT

// ----------------------------------------------------------------------------
// CMceOutSessionTest::RemainTestL
// ----------------------------------------------------------------------------
//
void CMceSecureOutSessionTest::RemainTestL()
    {
    // inside dialog
	MCE_CREATE_PROFILE;

    EUNIT_ASSERT( iStorage->iSessionId == 0 );

    CMceEvent* event = CMceOutEvent::NewL( *iManager, *profile, KMceRecipient, KMceEventHeader, 1000 );
    CleanupStack::PushL( event );
    	
    CMceRefer* refer = CMceOutRefer::NewL( *iManager, *profile, KMceRecipient, KMceReferTo, CMceRefer::EMultipleRefer );
    CleanupStack::PushL( refer );
	
	// with event
	CMceSecureOutSession* outSession1= CMceSecureOutSession::NewL( *event );
	CleanupStack::PushL( outSession1 );
	EUNIT_ASSERT( outSession1->Profile() == event->ProfileId() );
	EUNIT_ASSERT( outSession1->DialogId() == event->DialogId() );
	EUNIT_ASSERT( outSession1->Recipient() == event->Recipient() );
	EUNIT_ASSERT( outSession1->Originator() == event->Originator() );
	
	// with refer
	CMceSecureOutSession* outSession2= CMceSecureOutSession::NewL( *refer );
	CleanupStack::PushL( outSession2 );
	EUNIT_ASSERT( outSession2->Profile() == refer->ProfileId() );
	EUNIT_ASSERT( outSession2->DialogId() == refer->DialogId() );
	EUNIT_ASSERT( outSession2->Recipient() == refer->Recipient() );
	EUNIT_ASSERT( outSession2->Originator() == refer->Originator() );
	
	// leave with not assigned dialog id
	TUint32 id = refer->DialogId();
	refer->iDialogId = KMceNotAssigned;
	CMceOutSession* outSession3 = NULL;
	TRAPD( err, outSession3 = CMceOutSession::NewL( *refer ) );
	MCE_TEST_HANDLE_ALLOC_FAILURE( err )
	EUNIT_ASSERT_EQUALS( err, KErrArgument );
	EUNIT_ASSERT( !outSession3 );
	
	// set refer id back
	refer->iDialogId = id;
	// clean
	CleanupStack::Pop( outSession2 );
	CleanupStack::Pop( outSession1 );
	CleanupStack::Pop( refer );
	CleanupStack::Pop( event );
	event->iState = CMceEvent::EActive;
	MCE_TEST_DELETE( event );
	MCE_TEST_DELETE( refer );
	MCE_TEST_DELETE( outSession1 );
	MCE_TEST_DELETE( outSession2 );
	
    MCE_DELETE_PROFILE;    
    }
开发者ID:piashishi,项目名称:mce,代码行数:57,代码来源:mcesecureoutsessiontest.cpp


示例7: EUNIT_ASSERT

void UT_CG711PayloadFormatWrite::UT_CG711PayloadFormatWrite_ConfigurePayloadFormatLL(  )
{
    if ( iAlloc )
    {
        EUNIT_ASSERT( ETrue );
    }
    else
    {
        TMccCodecInfo codec;
        codec.iAlgoUsed         = ENoAlgoUsed;
        codec.iBitrate          = 6400;
        codec.iCNFrameSize      = 0;
        codec.iCodecMode        = 3;
        codec.iEnableDTX        = 1;
        codec.iFourCC           = 31313747;
        codec.iFrameSize        = 0;
        codec.iHwFrameTime      = 20;
        codec.iMaxPtime         = 200;
        codec.iPayloadType      = 8;
        codec.iPtime            = 20;
        codec.iRedundancyCount  = 0;
        codec.iRedundantPayload = 0;
        codec.iComfortNoiseGenerationPt = KPayloadTypeUndefined;

        TMccCodecInfoBuffer buffer( codec );
        EUNIT_ASSERT_NO_LEAVE( iWrite->ConfigurePayloadFormatL( buffer, *iRtpMediaClock ) );

        // test updating of values
        codec.iIsUpdate         = ETrue;
        codec.iPtime            = 40;
        codec.iPayloadType      = 0;
        codec.iComfortNoiseGenerationPt = 13;
        buffer = codec;
        iWrite->ConfigurePayloadFormatL( buffer, *iRtpMediaClock );
        EUNIT_ASSERT( iWrite->iCInfo.iPtime == 40 );
        EUNIT_ASSERT( iWrite->iCInfo.iPayloadType == 0 );
        EUNIT_ASSERT( iWrite->iCInfo.iComfortNoiseGenerationPt == 13 );

        // test redundancy payload format usage
        codec.iIsUpdate         = EFalse;
        codec.iAlgoUsed         = EGenRedUsed;
        codec.iRedundancyCount  = 1;
        buffer = codec;
        CMccRtpDataSink* rtpDataSinkStub = static_cast<CMccRtpDataSink*>(MDataSink::NewSinkL( KRtpDataSink, KNullDesC8 ));
        CleanupStack::PushL( rtpDataSinkStub );
        CMccRedPayloadWrite* redEncoder = CMccRedPayloadWrite::NewL( rtpDataSinkStub );
        CleanupStack::PushL( redEncoder );
        CG711PayloadFormatWrite* write = CG711PayloadFormatWrite::NewL( redEncoder );
        CleanupStack::PushL( write );
        EUNIT_ASSERT_NO_LEAVE( write->ConfigurePayloadFormatL( buffer, *iRtpMediaClock ) );
        CleanupStack::PopAndDestroy( 3 );
    }
}
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:53,代码来源:UT_CG711PayloadFormatWrite.cpp


示例8: EUNIT_ASSERT

void T_CSPSettingsEngine::T_CSPSettingsEngine_IsFeatureSupportedLL(  )
    {
    EUNIT_ASSERT( !iCSPSettingsEngine->IsFeatureSupportedL( ESupportInternetCallFeature, EFalse ) );
    EUNIT_ASSERT_LEAVE( iCSPSettingsEngine->IsFeatureSupportedL( ESupportInternetCallFeature, ETrue ) );
    
    EUNIT_ASSERT( !iCSPSettingsEngine->IsFeatureSupportedL( ESupportCallOutFeature, EFalse ) );
    EUNIT_ASSERT_LEAVE( iCSPSettingsEngine->IsFeatureSupportedL( ESupportCallOutFeature, ETrue ) );
    
    EUNIT_ASSERT( !iCSPSettingsEngine->IsFeatureSupportedL( ESupportVoIPSSFeature, EFalse ) );
    EUNIT_ASSERT_LEAVE( iCSPSettingsEngine->IsFeatureSupportedL( ESupportVoIPSSFeature, ETrue ) );
    
    EUNIT_ASSERT( iCSPSettingsEngine->IsFeatureSupportedL( ESupportVoIPFeature, EFalse ) );
    }
开发者ID:kuailexs,项目名称:symbiandump-mw2,代码行数:13,代码来源:T_CSPSettingsEngine.cpp


示例9: EUNIT_ASSERT

void UT_CNSPPluginStub::UT_CNSPPluginStub_NewSessionLL(  )
    {
    EUNIT_ASSERT( iInitializedReceived == 0 );
    iNatSessionId = iPlugin->NewSessionL(*this, 6, _L8("stun.nokia.com"), KProtocolInetUdp);
    if ( iPlugin->iRequestType != CNSPPluginStub::EResolve )
    	{
    	CActiveScheduler::Start();		
    	}
    EUNIT_ASSERT( iNatSessionId == iPlugin->iSessionId );
    EUNIT_ASSERT( iPlugin->iReservStatus  == 0 );
    EUNIT_ASSERT( iPlugin->iReservStatus == KDefaultReserveStatus );
    EUNIT_ASSERT( iPlugin->iDelay == KDefaultDelay );
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:13,代码来源:UT_CNSPPluginStub.cpp


示例10: _L

void T_CSPSettings::T_CSPSettings_DeleteEntryLL(  )
    {
    CSPEntry* entry = CSPEntry::NewLC();
    User::LeaveIfError( entry->SetServiceName( _L("Nimi") ) );
    TInt id = entry->GetServiceId();
    
    EUNIT_ASSERT( KErrNotFound == iCSPSettings->DeleteEntryL( id ) );
    
    iCSPSettings->AddEntryL( *entry );
    id = entry->GetServiceId();
    EUNIT_ASSERT( KErrNone == iCSPSettings->DeleteEntryL( id ) );
    CleanupStack::PopAndDestroy( entry );
    }
开发者ID:kuailexs,项目名称:symbiandump-mw2,代码行数:13,代码来源:T_CSPSettings.cpp


示例11: EUNIT_ASSERT_SPECIFIC_LEAVE

void UT_CMccResourceItem::UT_CMccResourceItem_GetMultiplexerLL(  )
    {
    CMccMultiplexer* multiplexer = NULL; 
    EUNIT_ASSERT_SPECIFIC_LEAVE( multiplexer = iItem->GetMultiplexerL(), KErrNotReady );
    EUNIT_ASSERT( multiplexer == NULL );

    delete iItem;
    iItem = NULL;
    iItem = CMccResourceItem::NewL( 0, NULL, iSourceStub, 1, ETrue );  
    EUNIT_ASSERT_NO_LEAVE(multiplexer = iItem->GetMultiplexerL());
    EUNIT_ASSERT( multiplexer != NULL );

    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:13,代码来源:UT_CMccResourceItem.cpp


示例12: param

void UT_CMccResourceItem::UT_CMccResourceItem_UserMatchL(  )
    {
    TMccResourceParams param(0,0,0,0,EFalse,0);

    TMccResourceParams param2(0,0,0,0,EFalse,0);
    
    EUNIT_ASSERT(iItem->UserMatch(param, param2));
    
    param.iStreamId = 2;
    param2.iStreamId = 3;
    EUNIT_ASSERT(!iItem->UserMatch(param, param2));

    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:13,代码来源:UT_CMccResourceItem.cpp


示例13: EUNIT_ASSERT

void MT_MProEngAlertToneSeeker::FetchAlertToneListTestL()
    {
    iSeeker->FetchAlertToneListL( *iObserver );
    MT_CSchedulerUtility::InstanceL()->Start();
    EUNIT_ASSERT( iObserver->iNotified );
    EUNIT_ASSERT( iObserver->iToneList );
    TInt count( iObserver->iToneList->MdcaCount() );
    EUNIT_PRINT( _L( "*** Tones: ***" ) );
    for( TInt i(0); i<count; ++i )
        {
        TPtrC tone( iObserver->iToneList->MdcaPoint( i ) );
        EUNIT_PRINT( _L( "%S" ), &tone );
        }
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:14,代码来源:MT_MProEngAlertToneSeeker.cpp


示例14: isSilent

void T_MProfile::IsSilentTestL()
    {
    __UHEAP_MARK;
    TBool isSilent( iProfile->IsSilent() );
    __UHEAP_MARKEND;
    if( iActiveId == 1 || iActiveId == 4 )
        {
        EUNIT_ASSERT( isSilent );
        }
    else
        {
        EUNIT_ASSERT( !isSilent );
        }
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:14,代码来源:T_MProfile.cpp


示例15: RMessage2

void UT_CMceCsReceiverBase::UT_CMceCsReceiverBase_CancelClientReceiveLL()
    {


    iReceiver->ClientReadyToReceiveL( RMessage2() );
    EUNIT_ASSERT( iReceiver->iClientReadyToReceive );
    iReceiver->CancelClientReceiveL();
    EUNIT_ASSERT( !iReceiver->iClientReadyToReceive );

    iReceiver->iClientReadyToReceive = EFalse;
    EUNIT_ASSERT_LEAVE( iReceiver->CancelClientReceiveL() );
    EUNIT_ASSERT( !iReceiver->iClientReadyToReceive );

    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:14,代码来源:UT_CMCECSReceiverBase.cpp


示例16: request1

void UT_CNATTraversalPendingRequest::TestL()
    {
    TUint32 requestId1 = 1;

    TNATTraversalPendingRequest request1(requestId1,this,*this);
    EUNIT_ASSERT(requestId1 == request1.RequestId());

    request1.CompleteRequest();
    EUNIT_ASSERT(iLastRequestId == request1.RequestId());

    iLastRequestId = 0;
    TNATTraversalPendingRequest::TimerExpired(&request1);
    EUNIT_ASSERT(iLastRequestId == request1.RequestId());
    EUNIT_ASSERT(iRequestCompletedCalled);

    TUint32 requestId2 = 2;
    TNATTraversalPendingRequest request2(requestId2,NULL,*this);
    // observer NULL
    iLastRequestId = 0;
    request2.CompleteRequest();
    EUNIT_ASSERT(0 == iLastRequestId);
    // compare
    EUNIT_ASSERT(-1 ==
        TNATTraversalPendingRequest::RequestOrder(request1,request2));
    EUNIT_ASSERT(1 ==
        TNATTraversalPendingRequest::RequestOrder(request2,request1));
    EUNIT_ASSERT(0 ==
        TNATTraversalPendingRequest::RequestOrder(request1,request1));
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:29,代码来源:ut_cnattraversalpendingrequest.cpp


示例17: KSDPMessage

void UT_CFCSession::UT_CFCSession_UpdateSDPLL(  )
    {
    // update offer
    iFCSession->SetPort( KTBCPLocalPort );
	
	HBufC8* aSdptest = KSDPMessage().AllocLC();
	CSdpDocument* sdpDocument = CSdpDocument::DecodeL(*aSdptest);
	CleanupStack::PushL(sdpDocument);


	RPointerArray<CSdpFmtAttributeField>* atts = new (ELeave) RPointerArray<CSdpFmtAttributeField>(1);
    CleanupStack::PushL(atts);
	CSdpFmtAttributeField* fmtatt = CSdpFmtAttributeField::DecodeLC(KFmtAttribute);
	atts->AppendL(fmtatt);
	
	iFCSession->SetFormatAttributeFieldsL(atts);
	CleanupStack::Pop(fmtatt);//fmtatt
	CleanupStack::Pop(atts);//atts

	
	iFCSession->UpdateSDPL(*sdpDocument);

   	EUNIT_ASSERT(iFCSession->Port()==KTBCPLocalPort);
   	EUNIT_ASSERT(iErr==KTBCPLocalPort);
   
   	
   	RPointerArray<CSdpMediaField>& mediaDescriptions = sdpDocument->MediaFields();
      	
    EUNIT_ASSERT( mediaDescriptions.Count() == 4 )
    CSdpMediaField* mediaAnnouncement = NULL;
    TInt attrCount = 0;
    for (TInt i=0; !mediaAnnouncement && i < mediaDescriptions.Count(); i++)
    	{
    	mediaAnnouncement = mediaDescriptions[ i ];
    	if ( mediaAnnouncement->FormatList().Compare( KTBCP ) == 0 )
    	    {
    	    attrCount = mediaAnnouncement->FormatAttributeFields().Count();
    	    }
    	else
    	    {
    	    mediaAnnouncement = NULL;
    	    }
    	}
    EUNIT_ASSERT( mediaAnnouncement );
    EUNIT_ASSERT( attrCount == 1 );
    
    CleanupStack::PopAndDestroy(sdpDocument);
	CleanupStack::PopAndDestroy(aSdptest);//aSdptest
   	}
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:49,代码来源:UT_CFCSession.cpp


示例18: err

void UT_CRtpComm::UT_CRtpComm_SetAcceptedFromAddressL(  )
    {
    TCreateSessionParams params;
    TInt err( KErrNone );
    TInetAddr rtpAddr;
    TInetAddr rtcpAddr;
    iLocalPort = 7777; // this should be changed to an even number by CRtpComm
    
    /////////////////////////////////////////////////
    // This object will be destroyed below
    // It is used for testing construction without RTCP on an odd port
    TRAP( err, iRtpComm = CRtpComm::NewL( iLocalPort,
                               iSocketServ,
                               iConnection,
                               params,
                               *this,
                               ETrue ) );
                               
    RTP_EUNIT_ASSERT_EQUALS ( err, KErrNone );
        
    // Check some initial values
    if ( iLocalPort != 7776 ||
         iRtpComm->iSender[ERTPPort] != NULL ||
         iRtpComm->iSender[ERTCPPort] != NULL ||
         iRtpComm->iReceiver[ERTPPort] != NULL ||
         iRtpComm->iReceiver[ERTCPPort] != NULL )
        {
        EUNIT_ASSERT ( EFalse );
    
        }
    
    iLocalPort = 5000; // use default port 5000
  
    TInt result( KErrNone );
    TBuf8<5> sendBuf;
    TBuf8<5> recvBuf;

    // Test setting a port to an address
    
    // Run the method
    TInetAddr dummyAddr( INET_ADDR( 127, 0, 0, 1 ), 5000 );
     iRtpComm->RegisterReceivedNotify( this );
    
    iRtpComm->ConstructReceiverL(EFalse);    
   	iRtpComm->SetAcceptedFromAddress( dummyAddr );
    EUNIT_ASSERT ( iRtpComm->iReceiver[ERTPPort] ->iRemoteAddr==dummyAddr );
    
    iRtpComm->SetNonRtpObserverFlag(ETrue);
    }
开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:49,代码来源:UT_CRtpComm.cpp


示例19: profId

void T_CSPSettings::T_CSPSettings_FindPropertyLL(  )
    {
    CSPProperty* property = CSPProperty::NewLC();
    property->SetName( EPropertyVoIPSubServicePluginId );
    TInt profId( 15 );
    User::LeaveIfError( property->SetValue( profId ));

    EUNIT_ASSERT( KErrNotFound == iCSPSettings->FindPropertyL(
        0, EPropertyVoIPSubServicePluginId, *property ) );
    
    EUNIT_ASSERT( KErrNone == iCSPSettings->FindPropertyL(
        profId, EPropertyVoIPSubServicePluginId, *property ) );
    
    CleanupStack::PopAndDestroy( property );
    }
开发者ID:kuailexs,项目名称:symbiandump-mw2,代码行数:15,代码来源:T_CSPSettings.cpp


示例20: CleanupClosePushL

void T_CSPSettings::T_CSPSettings_FindServiceNamesLL(  )
    {
    RIdArray ids;
    CleanupClosePushL( ids );
    iCSPSettings->FindServiceIdsL( ids );
    
    CDesCArrayFlat* names = new ( ELeave ) CDesCArrayFlat( 10 );
    CleanupStack::PushL( names );
    EUNIT_ASSERT( KErrNone == iCSPSettings->FindServiceNamesL( ids, *names ) );
    TInt count = names->MdcaCount();
    EUNIT_ASSERT( count );
    
    CleanupStack::PopAndDestroy( names );
    CleanupStack::PopAndDestroy( &ids );
    }
开发者ID:kuailexs,项目名称:symbiandump-mw2,代码行数:15,代码来源:T_CSPSettings.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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