本文整理汇总了C++中STIF_ASSERT_NOT_NULL函数的典型用法代码示例。如果您正苦于以下问题:C++ STIF_ASSERT_NOT_NULL函数的具体用法?C++ STIF_ASSERT_NOT_NULL怎么用?C++ STIF_ASSERT_NOT_NULL使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了STIF_ASSERT_NOT_NULL函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: STIF_ASSERT_NOT_NULL
// -----------------------------------------------------------------------------
// CTestSDKSkins::TestITIDNumberOfImagesL
// -----------------------------------------------------------------------------
TInt CTestSDKSkins::TestITIDNumberOfImagesL( CStifItemParser& /*aItem*/ )
{
CAknsImageTableItemData* itemData = CAknsImageTableItemData::NewL();
CleanupStack::PushL( itemData );
STIF_ASSERT_NOT_NULL( itemData );
TAknsItemID itemID;
itemData->SetImagesL( 1, &itemID );
TInt num = itemData->NumberOfImages();
STIF_ASSERT_TRUE( 1 == num );
CleanupStack::PopAndDestroy( itemData );
return KErrNone;
}
示例2: _LIT
// --------------------------------------------------------------------------
// Ctestpubscalableicons::TestCAknIconNewL
// --------------------------------------------------------------------------
//
TInt Ctestpubscalableicons::TestCAknIconNewL( CStifItemParser& /*aItem*/ )
{
_LIT(Kctestpubscalableicons, "Ctestpubscalableicons");
_LIT(Ktestcakniconnewl, "In TestCAknIconNewL");
TestModuleIf().Printf(0, Kctestpubscalableicons, Ktestcakniconnewl);
iLog->Log(Ktestcakniconnewl);
CAknIcon* temp = CAknIcon::NewL();
CleanupStack::PushL( temp );
STIF_ASSERT_NOT_NULL( temp );
CleanupStack::PopAndDestroy( temp );
return KErrNone;
}
示例3: _LIT
// -----------------------------------------------------------------------------
// CTestDOMStatusPane::TestSgccDrawSynchronizerL
// -----------------------------------------------------------------------------
//
TInt CTestDOMStatusPane::TestSgccDrawSynchronizerL( CStifItemParser& /*aItem*/ )
{
// Print to UI
_LIT( KTestDOMStatusPane, "testdomstatuspane" );
_LIT( KTestSgccDrawSynchronizer, "In SgccDrawSynchronizer" );
TestModuleIf().Printf( 0, KTestDOMStatusPane, KTestSgccDrawSynchronizer );
// Print to log file
iLog->Log( KTestSgccDrawSynchronizer );
CAknDrawSynchronizer* drawSynchronizer = CAknSgcClient::DrawSynchronizer();
STIF_ASSERT_NOT_NULL( drawSynchronizer );
return KErrNone;
}
示例4: new
// -----------------------------------------------------------------------------
// CTestSDKEditors::TestSEConstructFromResourceL
// -----------------------------------------------------------------------------
//
TInt CTestSDKEditors::TestSEConstructFromResourceL( CStifItemParser& /*aItem*/ )
{
CEikSecretEditor* secretEditor = new (ELeave) CEikSecretEditor;
CleanupStack::PushL( secretEditor );
STIF_ASSERT_NOT_NULL( secretEditor );
TResourceReader reader;
CCoeEnv::Static()->CreateResourceReaderLC( reader, R_TESTSDK_SECRETTEXT );
secretEditor->ConstructFromResourceL( reader );
CleanupStack::PopAndDestroy();
CleanupStack::PopAndDestroy( secretEditor );
return KErrNone;
}
示例5: pointTL
// ============================ MEMBER FUNCTIONS ===============================
// -----------------------------------------------------------------------------
// CTestSDKSkins::TestLBCCNewL
// -----------------------------------------------------------------------------
TInt CTestSDKSkins::TestLBCCNewL( CStifItemParser& /*aItem*/ )
{
TAknsItemID itemID;
TPoint pointTL( 0, 0 );
TPoint pointBR( KLength, KLength );
TRect rect( pointTL, pointBR );
CAknsLayeredBackgroundControlContext* context =
CAknsLayeredBackgroundControlContext::NewL( itemID, rect, ETrue, 1 );
CleanupStack::PushL( context );
STIF_ASSERT_NOT_NULL( context );
CleanupStack::PopAndDestroy( context );
return KErrNone;
}
示例6: _LIT
// -----------------------------------------------------------------------------
// CTestPlatAlfVisual::TestAlfGenComponentNewL
// -----------------------------------------------------------------------------
//
TInt CTestPlatAlfVisual::TestAlfGenComponentNewL( CStifItemParser& /*aItem*/ )
{
_LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
_LIT( KTestAlfGenComponentNewL, "TestAlfGenComponentNewL" );
TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestAlfGenComponentNewL );
// Print to log file
iLog->Log( KTestAlfGenComponentNewL );
_LIT8( KTest, "test" );
TBuf8<KBufSize> vBuf( KTest );
CAlfGenComponent* vComponent = CAlfGenComponent::NewL( *iAlfEnv, 0, 0x0DDDDDDE,
vBuf );
CleanupStack::PushL( vComponent );
STIF_ASSERT_NOT_NULL( vComponent );
CleanupStack::PopAndDestroy( vComponent );
return KErrNone;
}
示例7: STIF_ASSERT_NOT_NULL
// -----------------------------------------------------------------------------
// CTestDomCdl::TestCRDeleteWithNameL
// -----------------------------------------------------------------------------
//
TInt CTestDomCdl::TestCRDeleteWithNameL( CStifItemParser& /*aItem*/ )
{
HBufC* nameValue = StringLoader::LoadLC( R_DOMTEST_TEXT ); //push
CCdlRefs* cdlRefs = CCdlRefs::NewL();
CleanupStack::PushL( cdlRefs );//push
STIF_ASSERT_NOT_NULL( cdlRefs );
TUid testUid = { 0x174657FC };
TCdlRef tCdlref;
tCdlref.iId = 0;
tCdlref.iUid = testUid;
tCdlref.iName = nameValue;
cdlRefs->InsertL( cdlRefs->Begin(), tCdlref );
cdlRefs->Delete( *tCdlref.iName );
CleanupStack::PopAndDestroy( 2 );
return KErrNone;
}
示例8: new
// -----------------------------------------------------------------------------
// CTestSDKNotes::TestNPICurrentValueL
// -----------------------------------------------------------------------------
TInt CTestSDKNotes::TestNPICurrentValueL( CStifItemParser& /*aItem*/ )
{
CEikProgressInfo::SInfo sInfo;
CEikProgressInfo* progress = new (ELeave) CEikProgressInfo( sInfo );
CleanupStack::PushL( progress );
STIF_ASSERT_NOT_NULL( progress );
progress->ConstructL();
TInt currentValue = progress->CurrentValue();
STIF_ASSERT_EQUALS( currentValue, 0 );
CleanupStack::PopAndDestroy( progress );
return KErrNone;
}
示例9: new
// -----------------------------------------------------------------------------
// CTestSDKForm::TestFPostLayoutDynInitL
// -----------------------------------------------------------------------------
TInt CTestSDKForm::TestFPostLayoutDynInitL( CStifItemParser& /*aItem*/ )
{
CTestSDKFormControl* form = new (ELeave) CTestSDKFormControl;
CleanupStack::PushL( form );
STIF_ASSERT_NOT_NULL( form );
form->ConstructL();
form->PrepareLC( R_TESTSDK_FORM_DIALOG );
CleanupStack::Pop( form );
form->PostLayoutDynInitL();
STIF_ASSERT_TRUE( form->IsEditable() );
CleanupStack::PopAndDestroy( form );
return KErrNone;
}
示例10: _LIT
// -----------------------------------------------------------------------------
// Ctestsdkgrids::TestGridsGridSetModelL
// -----------------------------------------------------------------------------
//
TInt CTestSDKGrids::TestGridsGridSetModelL( CStifItemParser& /*aItem*/)
{
_LIT( Ktestsdkgrid, "testsdkgrid" );
_LIT( KTestGridsGridSetModelL, "In TestGridsGridSetModelL" );
TestModuleIf().Printf( 0, Ktestsdkgrid, KTestGridsGridSetModelL );
iLog->Log( KTestGridsGridSetModelL );
CAknGridM* model = new( ELeave ) CAknGridM();
CleanupStack::PushL( model );
iGrid->SetModel( model );
CleanupStack::Pop( model );
STIF_ASSERT_NOT_NULL( iGrid );
return KErrNone;
}
示例11: _LIT
// -----------------------------------------------------------------------------
// CTestPlatAlfVisual::TestAlfMeshVisualFullConstructorL
// -----------------------------------------------------------------------------
//
TInt CTestPlatAlfVisual::TestAlfMeshVisualFullConstructorL( CStifItemParser& /*aItem*/ )
{
_LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
_LIT( KTestAlfMeshVisualFullConstructorL, "TestAlfMeshVisualFullConstructorL" );
TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestAlfMeshVisualFullConstructorL );
// Print to log file
iLog->Log( KTestAlfMeshVisualFullConstructorL );
CAlfMeshVisual* vVisual = new ( ELeave ) CAlfMeshVisual;
CleanupStack::PushL( vVisual );
STIF_ASSERT_NOT_NULL( vVisual );
vVisual->ConstructL( *iAlfCtl );
CleanupStack::PopAndDestroy( vVisual );
return KErrNone;
}
示例12: new
// -----------------------------------------------------------------------------
// CTestSDKNotes::TestNWNHandlePointerEventL
// -----------------------------------------------------------------------------
TInt CTestSDKNotes::TestNWNHandlePointerEventL( CStifItemParser& /*aItem*/ )
{
CAknWarningNote* note = new (ELeave) CAknWarningNote;
CleanupStack::PushL( note );
STIF_ASSERT_NOT_NULL( note );
TPointerEvent event;
event.iType = TPointerEvent::EButton2Up;
note->HandlePointerEventL( event );
CleanupStack::PopAndDestroy( note );
return KErrNone;
}
示例13: _LIT
// -----------------------------------------------------------------------------
// CTestSDKMiscControls::TestCGControlArrayL
// -----------------------------------------------------------------------------
//
TInt CTestSDKMiscControls::TestCGControlArrayL( CStifItemParser& /*aItem*/ )
{
// Print to UI
_LIT( Ktestsdkmisccontrols, "testsdkmisccontrols" );
_LIT( KTestCGControlArrayL, "In TestCGControlArrayL" );
TestModuleIf().Printf( 0, Ktestsdkmisccontrols, KTestCGControlArrayL );
// Print to log file
iLog->Log( KTestCGControlArrayL );
TInt cId = 1;
TInt cIndex = iControlGroup->IndexById( cId );
CArrayFix<TEikGroupControl>* ctl = iControlGroup->ControlArray();
STIF_ASSERT_NOT_NULL( ctl );
return KErrNone;
}
示例14: _LIT
// -----------------------------------------------------------------------------
// CTestUiAifCoreToolkit::TestTAknInputLanguageCapabilitiesL
// -----------------------------------------------------------------------------
//
TInt CTestPubInputLanguageInfo::TestTAknInputLanguageCapabilitiesL( CStifItemParser& /*aItem*/ )
{
// Print to UI
_LIT( Ktestinputlanguageinfo, "TestInputLanguageInfo" );
_LIT( KTestTAknInputLanguageCapabilitiesL, "In TestTAknInputLanguageCapabilities" );
TestModuleIf().Printf( 0, Ktestinputlanguageinfo, KTestTAknInputLanguageCapabilitiesL );
// Print to log file
iLog->Log( KTestTAknInputLanguageCapabilitiesL );
TAknInputLanguageCapabilities* inputLanguageCapa = new TAknInputLanguageCapabilities();
CleanupStack::PushL( inputLanguageCapa );
STIF_ASSERT_NOT_NULL( inputLanguageCapa );
CleanupStack::PopAndDestroy( inputLanguageCapa );
return KErrNone;
}
示例15: _LIT
// -----------------------------------------------------------------------------
// CTestDomExtNotifiers::TestCADSNNewLCL
// -----------------------------------------------------------------------------
//
TInt CTestDomExtNotifiers::TestCADSNNewLCL( CStifItemParser& /*aItem*/ )
{
// Print to UI
_LIT( KTestDomExtNotifiers, "TestDomExtNotifiers" );
_LIT( KTestCADSNNewLCL, "TestCADSNNewLCL" );
TestModuleIf().Printf( 0, KTestDomExtNotifiers, KTestCADSNNewLCL );
// Print to log file
iLog->Log( KTestCADSNNewLCL );
CAknDynamicSoftNotifier* softNotifier = CAknDynamicSoftNotifier::NewLC();
STIF_ASSERT_NOT_NULL( softNotifier );
CleanupStack::PopAndDestroy( softNotifier );
return KErrNone;
}