TEST(PackedArray, HeapAlloc)
        {
            RunTest1(1, false);
            RunTest1(2, false);

            // Try one run with mmap/VirtualAlloc().
            RunTest1(3, true);
        }
//*******************************************************************************
// 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':
            RunTest1();
            break;
        case '2':
            //RunTest2();
            break;
        case '9':
            CActiveScheduler::Stop();
			Stop();
            break;
        default:
			_LIT(KTxtWrongOption, "Wrong Option! Try Again.");
            DisplayMsg(KTxtWrongOption);
            break;		
        }

	// Ready to get next input option.
   	DoRead();
	}
Beispiel #3
0
void main()
{
   Aggregator aggregator;
   RunTest1( aggregator );
   RunTest2( aggregator );
   RunTest3( aggregator );
   ProcessCSV( aggregator );
}
Beispiel #4
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;
    }
}
//*******************************************************************************
// 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();
	}
Beispiel #6
0
 void MsWaveTest()
 {
     RunTest1("c:\\temp2\\pcm_8k_16bit_2xgen_stereo.wav");
     RunTest2("c:\\temp2\\");
 }
 TEST(PackedArray, VirtualAlloc)
 {
     RunTest1(4, true);
 }