LOCAL_C void DoTestsL()
{
    CleanupClosePushL(test);
    test.Start(_L("Test image field processing"));
    User::LeaveIfError(RFbsSession::Connect());

    // Generate a test image
    GenerateTestImageL();

    TestCreateContactL();
    TestUpdateContactL();
    TestDeleteContactL();

    // Test this as the last since it removes the images folder
    TestCreateContactWithoutImagesFoldeL();

    test.End();
    // Pause the test in eshell
    test.Getch();
    RFbsSession::Disconnect();
    CleanupStack::PopAndDestroy(); // test.Close
}
예제 #2
0
/** 
* The function to empty the database and close the database session.
*/
void CMainThread::CloseDatabaseSessionL()
	{
		TestDeleteContactL();
		delete database;
		database = NULL;
	}