Ejemplo n.º 1
0
GLDEF_C TInt E32Main()
    {
	test.Title();

	test.Start(_L("Test V1 notifier"));
	if(UserSvr::IpcV1Available())
		DoTests(KUidTestTextNotifier1,EFalse);
	else
		test.Printf(_L("IPC V1 not supported"));

	test.Next(_L("Test V2 notifier"));
	DoTests(KUidTestTextNotifier2,EFalse);

	test.Next(_L("Test V1 notifier using MNotifierManager"));
	if(UserSvr::IpcV1Available())
		DoTests(KUidTestTextNotifier1,ETrue);
	else
		test.Printf(_L("IPC V1 not supported"));

	test.Next(_L("Test V2 notifier using MNotifierManager"));
	if(UserSvr::IpcV1Available())
		DoTests(KUidTestTextNotifier2,ETrue);
	else
		test.Printf(_L("FIX ME! - Can't run because IPC V1 not supported\n"));

	
	test.Next(_L("TestNotify"));
	TestNotify();
	
	test.Next(_L("TestNotifyCancel"));
	TestNotifyCancel();

	test.Next(_L("Test removed methods"));
	TestRemovedMethods();

	test.Next(_L("Interactive Tests"));
	test.Printf(_L("  Do you want to test notifiers interactively? y/n\n"));
	test.Printf(_L("  Waiting 10 seconds for answer...\n"));
	TRequestStatus keyStat;
	test.Console()->Read(keyStat);
	RTimer timer;
	test(timer.CreateLocal()==KErrNone);
	TRequestStatus timerStat;
	timer.After(timerStat,10*1000000);
	User::WaitForRequest(timerStat,keyStat);
	TInt key = 0;
	if(keyStat!=KRequestPending)
		key = test.Console()->KeyCode();
	timer.Cancel();
	test.Console()->ReadCancel();
	User::WaitForAnyRequest();
	if(key=='y' || key=='Y')
		DoInteractiveTests();
	else
		test.Printf(_L("  Interactive Tests Not Run\n"));

	test.End();
	return(0);
	}
Ejemplo n.º 2
0
EFI_STATUS UefiMain(
        IN EFI_HANDLE           ImageHandle,
        IN EFI_SYSTEM_TABLE     *SystemTable
		)
{
    EFI_STATUS Status;
    Status = testTimeOut();
    Status = TestTimer(); 
    Status = TestNotify();
    Status = TestEventSingal();
    Status = testMouseSimple();
	return Status;
}
Ejemplo n.º 3
0
int
#if _WIN32_WCE
_cdecl
#endif
main()
{
    //  afxMemDF |= allocMemDF | checkAlwaysMemDF;

    // The M4STRING package sometimes keeps a spare empty string around.
    // By allocating it here, we avoid a few bogus memory leak reports.
    c4_String empty;

#if q4_MAC_LEAK_CHECK
    DebugNewForgetLeaks();
#endif

#if q4_MWCW_PROFILER
    if(!ProfilerInit(collectDetailed, bestTimeBase, 20, 5))
    {
#endif
        TestBasics1();
        TestBasics2();
        TestNotify();
        TestCustom1();
        TestCustom2();
        TestResize();
        TestStores1();
        TestStores2();
        TestStores3();
        TestStores4();
        TestStores5();
        TestDiffer();
        TestExtend();
        TestFormat();
        TestMapped();
        TestLimits();

#if q4_MWCW_PROFILER
        ProfilerDump("\pRegress.prof");
        ProfilerTerm();
    }