コード例 #1
0
void CPopsTestHarness::TestOfflineCopyL(const TDesC& aPassText, const TDesC& aFailText)
// ------------------------------------------------------------------
// Test Offline Copy - Populate some Messages & then try to create 
// Offline Ops to copy them locally
// ------------------------------------------------------------------
	{
	iTestError = 0;
	iTestNumber++;

	// Connect & Populate all the messages first
	SetUpTestL(K_SCRIPT_POPULATE_ALL);
	TRAPD(test2Error, StartTestL(*iConnectAndPopulateAll));
	
	// Now reset, but DONT delete the Mail directory. 
	iRemoveMailFolder = EFalse;
	SetUpTestL(K_SCRIPT_OFFLINE_COPY);

	// Fill the Disk & attempt to do an Offline Copy
	FillDiskL();
	TRAPD(error, StartTestL(*iOfflineCopy));
			
	// Check if the Test Failed
	CheckIfTestFailedL(error, *iOfflineCopy, aPassText, aFailText);
	EndTestL();
	}
コード例 #2
0
void CIpuTestHarness::ResourceLeakTest()
//
// Creates a new test that fails if any there are any leaked resource handles
	{
	// Start new test
	_LIT(KResourceTestName, "Resource Handle Leak Test");
	TRAPD(testError, StartTestL(KResourceTestName));
	if(testError==KErrNone)
		{
		//	Find number of opened handles
		TInt processHandleCount=0;
		TInt threadHandleCount=0;
		RThread().HandleCount(processHandleCount,threadHandleCount);
		TInt openHandleCount = iStartHandleCount-threadHandleCount;
		TInt err = KErrNone;
		if ( openHandleCount !=0 )
			{
			err = KErrGeneral;
			LogIt(_L("Number leaked handles is %D"), openHandleCount);
			}
		EndTest(err);
		}
	else
		{
		_LIT(KTxtResourceTestRunError, "Unable to complete Resource Leak Test, error: %d");
		LogIt(KTxtResourceTestRunError, testError);
		EndTest(testError);
		}
	}
コード例 #3
0
ファイル: pygame_app.cpp プロジェクト: Anugrahaa/anagrammatic
void CSdlAppUi::ConstructL()
{
	BaseConstructL(CAknAppUi::EAknEnableSkin /* | ENoScreenFurniture*/);

	iSDLWin = new (ELeave) CSDLWin;
	iSDLWin->ConstructL(ApplicationRect());

	iWait = new (ELeave) CExitWait(*this);

	StartTestL(0);
}
コード例 #4
0
ファイル: TlsTest.cpp プロジェクト: cdaffara/symbiandump-os2
LOCAL_C void InitializeL() // initialize and call test code
    {
	console=Console::NewL(KTxtConsoleTitle,TSize(KConsFullScreen,KConsFullScreen));
	CleanupStack::PushL(console);
	TRAPD(error,StartTestL()); 
	if (error)
		console->Printf(KTestFailed, error);
	else
		console->Printf(KTxtOK);

	CleanupStack::PopAndDestroy(); // close console
    }
コード例 #5
0
void CPopsTestHarness::TestCopyToLocalL(const TDesC& aPassText, const TDesC& aFailText)
// ------------------------------------
// Test Copying To Local
// ------------------------------------
	{
	iTestError = 0;
	iTestNumber++;
	SetUpTestL(K_SCRIPT_COPY_ALL);
	FillDiskL();
	TRAPD(testError, StartTestL(*iConnectAndCopyAll));

	// Check if the Test Failed
	CheckIfTestFailedL(testError, *iConnectAndCopyAll, aPassText, aFailText);
	EndTestL();
	}
コード例 #6
0
void CPopsTestHarness::TestCopyWithinServiceL(const TDesC& aPassText, const TDesC& aFailText)
// ------------------------------------
// Test Copy Within Service
// ------------------------------------
	{
	iTestError = 0;
	iTestNumber++;
	SetUpTestL(K_SCRIPT_POPULATE_ALL);
	FillDiskL();

	TRAPD(testError, StartTestL(*iConnectAndPopulateAll));
			
	// Check if the Test Failed
	CheckIfTestFailedL(testError, *iConnectAndPopulateAll, aPassText, aFailText);
	EndTestL();
	}
コード例 #7
0
ファイル: TMng.cpp プロジェクト: cdaffara/symbiandump-mw1
/**
@SYMTestCaseID UIF-ANIMATION-0001
@SYMDEF DEF084519
@SYMTestCaseDesc This test verifies that CICLAnimationDataLoader manages to extract frames from image files encoded as multi image network graphics.
@SYMTestPriority High
@SYMTestStatus Implemented
@SYMTestActions The test verifies that we receive EBitmapAnimationComplete and that the number of extracted frames at that point equals the expected number of frames.
@SYMTestExpectedResults Test should complete without any leave, panic or error.
 */
TVerdict CMng::doActiveTestStepL()
	{
	SetTestStepID(_L("UIF-ANIMATION-0001"));

	StartTestL();
			
	const TInt KTimeOut = 5*1000000;
	iWaiter->Wait(KTimeOut); // continue on timeout or EImageConvertComplete

	TEST(iConvertionComplete);
	TEST(iDecodedFrames == KExpectedNumberOfFrames);
	
	RecordTestResultL();
	CloseTMSGraphicsStep();

	return TestStepResult();
	}
コード例 #8
0
GLDEF_C TInt E32Main()
	{
	RDebug::Print(_L("appfwk_sysstart_test_app8::E32Main - entry"));
	__UHEAP_MARK; // mark heap state
	CTrapCleanup* TheTrapCleanup = CTrapCleanup::New();
	
	TRAPD(err, StartTestL());
	if (err)
		{
		User::Panic(KSysStartTestApp8Panic,err);
		}
		
    delete TheTrapCleanup;

	__UHEAP_MARKEND; // check no memory leak

	RDebug::Print(_L("appfwk_sysstart_test_app8::E32Main - exit"));
	return KErrNone;
	}