Пример #1
0
void main()
{
   Aggregator aggregator;
   RunTest1( aggregator );
   RunTest2( aggregator );
   RunTest3( aggregator );
   ProcessCSV( aggregator );
}
Пример #2
0
void Test::Run(int num)
{
    switch(num)
    {
	case 1: RunTest1(); break;
	case 2: RunTest2(); break;
	case 3: RunTest3(); break;

	case 9: TestMonsterSprite(); break;

	default: DEBUG(DBG_ENGINE, DBG_WARN, "unknown test"); break;
    }
}
Пример #3
0
//*******************************************************************************
// Method      : CTestAppConsole::ProcessMainInput()
// Purpose     : Obtain user's option and decide which test case to run next.
// Parameters  : 
// Return Value: 
//*******************************************************************************
void CTestAppConsole::ProcessMainInput()
	{
	TChar inputChar = iConsole->KeyCode();

	switch(inputChar)
        {
        case '1':
            __UHEAP_MARK;
            RunTest1();
            __UHEAP_MARKEND;
            break;
        case '3':
            __UHEAP_MARK;
            RunTest3();
            __UHEAP_MARKEND;
            break;
        case '4':
            __UHEAP_MARK;
            RunTest4();
            __UHEAP_MARKEND;
            break;
        case '5':
            __UHEAP_MARK;
            RunTest5();
            __UHEAP_MARKEND;
            break;
        case '6':
            RunTest6();
            break;
        case '9':
            CActiveScheduler::Stop();
            break;
        default:
			_LIT(KTxtWrongOption, "Wrong Option! Try Again.");
            DisplayMsg(KTxtWrongOption);
            break;		
        }

	// Ready to get next input option.
   	DoRead();
	}