Esempio n. 1
0
TVerdict CT_ServicesTestStep::doTestStepL()
	{
	INFO_PRINTF1(_L("Testing Apparc...T_Services Test Cases Running..."));

	TInt ret;
	TRAP(ret,RunTestCasesL())
		TEST(ret==KErrNone);
	
	INFO_PRINTF1(_L("...T_Services Test Cases Completed."));

	return TestStepResult();
	}
TVerdict CT_StartAppTestStep::doTestStepL()
	{
	INFO_PRINTF1(_L("Testing Apparc...T_StartApp Test Cases Running..."));
	TRAPD(ret,RunTestCasesL());
	TEST(ret==KErrNone);

	TRAP(ret,TestIpcFuzzL());
	TEST(ret==KErrNone);

	INFO_PRINTF1(_L("...T_StartApp Test Cases Completed."));
	return TestStepResult();
	}
/**
Connect to the Apparc server and call RunTestCasesL() inside a
trap harness. Panic if an error is returned
*/
void CSysStartApparcTestCase::doTestCasesL()
	{
	RDebug::Print(_L("CSysStartApparcTestCase: Test Cases Running..."));

	TInt error = iApaLsSession.Connect();
	if(error!=KErrNone)
		{
		RDebug::Print(_L("CSysStartApparcTestCase: Error connecting to RApaLsSession (err=%d)"), error);
		}

	TRAP(error,RunTestCasesL())
	if(error!=KErrNone)
		{
		RDebug::Print(_L("CSysStartApparcTestCase: Error running test cases (err=%d)"), error);
		}

	RDebug::Print(_L("CSysStartApparcTestCase: Test Cases Completed!"));
	}
TVerdict CT_MimeContentPolicyStep::doTestStepL()
	{
	INFO_PRINTF1(_L("Testing Apparc...T_MimeContentPolicyStep Test Cases Running..."));
	TInt error = iApaLsSession.Connect();
	TEST(error == KErrNone);

	error = iFs.Connect();
	TEST(error == KErrNone);
	
	iCcp = CApfMimeContentPolicy::NewL();
	
	User::LeaveIfError(iFs.ShareProtected());

	TRAPD(ret,RunTestCasesL())
	TEST(ret==KErrNone);
	
	INFO_PRINTF1(_L("...T_MimeContentPolicyStep Test Cases Completed."));
	return TestStepResult();
	}
Esempio n. 5
0
TVerdict CRecogStep::doTestStepL()
	{
	TRAPD(ret,RunTestCasesL())
	TEST(ret==KErrNone);
	return TestStepResult();
	}