int FAR PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { InitTotalStatistics(); InitEmptyString(); FastFunctionsInit(); TestStackPointers(); TestClass(); TestClassStorage(); TestUnknowns(); TestArrayUnknown(); TestSetUnknown(); TestArrayType(); TestSetType(); TestMapStringUnknown(); TestEvent(); TestActionEvent(); TestExternalChannels(); TestExternalChannelPadder(); TestChannels(); TestChannelsAccessor(); TestSingleChannelAccessor(); TestChunkFileNames(); TestParameters(); TestDistToRoot(); TestDistToStack(); TestObjectsSimple(); TestRoot(); TestObject(); TestPointer(); TestArrayCommonObject(); TestNamedObject(); TestObjectAllocator(); TestObjectWriterChunked(); TestObjectGraphSerialiser(); TestObjectReaderSimple(); TestObjectReaderChunked(); TestObjectStackPointers(); TestNamedIndexes(); TestObjectGraphDeserialiser(); TestObjectConverter(); TestObjects(); TestDehollowfication(); TestUsage(); TestArray(); TestSet(); TestKill(); TestEmbedded(); TestEmbeddedObjectRemapTos(); FastFunctionsKill(); KillEmptyString(); return TestTotalStatistics(); }
//******************************************************************************* // Method : CTestAppConsole::RunTest1() // Purpose : // Parameters : // Return Value: //******************************************************************************* void CTestAppConsole::RunTest1() { SetUpRtpStack(); TInt cells = User::CountAllocCells(); iConsole->Printf( _L("Allocated cells: %d\n"), cells); iKeepgoingUL = ETrue; CMccSymSubthreadClient* ul_client = CMccSymSubthreadClient::NewL(this); iKeepgoingDL = ETrue; CMccSymSubthreadClient* dl_client = CMccSymSubthreadClient::NewL(this); if(!ul_client) { iKeepgoingUL = EFalse; } if(!dl_client) { iKeepgoingDL = EFalse; } iUlError = KErrNone; iDlError = KErrNone; if(iKeepgoingUL && iKeepgoingDL) { iConsole->Printf( _L("Allocations OK for UL & DL, going on...\n") ); } else { if(!iKeepgoingDL) { iConsole->Printf( _L("DL Allocations failed...\n") ); } else if(!iKeepgoingDL) { iConsole->Printf( _L("UL Allocations failed...\n") ); } else { iConsole->Printf( _L("DL & UL Allocations failed!!!\n") ); } } for(TInt k = 0; k < 1; k++) { TestOpen( ul_client, dl_client ); TestParameters( ul_client, dl_client ); TestPrepare( ul_client, dl_client ); TestControls( ul_client, dl_client ); } if(iKeepgoingDL && iKeepgoingDL) { iConsole->Printf( _L("All tests ran OK\n") ); } else { iConsole->Printf( _L("Not all tests done\n") ); } delete ul_client; delete dl_client; cells = User::CountAllocCells(); iConsole->Printf( _L("Allocated cells: %d\n"), cells); iConsole->Getch(); };