equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 ** |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #include <e32svr.h> |
|
22 #include "testconsole.h" |
|
23 |
|
24 |
|
25 // ActiveScheduler trap harness |
|
26 void startSchedulerL() |
|
27 { |
|
28 CActiveScheduler* testScheduler = new (ELeave)CActiveScheduler; |
|
29 CleanupStack::PushL( testScheduler ); |
|
30 CActiveScheduler::Install( testScheduler ); |
|
31 |
|
32 //Enter Active Object |
|
33 CTestAppConsole* appConsole = CTestAppConsole::NewLC(); |
|
34 |
|
35 appConsole->StartTesting(); |
|
36 CActiveScheduler::Start(); |
|
37 |
|
38 |
|
39 CleanupStack::PopAndDestroy( appConsole ); |
|
40 CleanupStack::PopAndDestroy( testScheduler ); |
|
41 |
|
42 } |
|
43 |
|
44 |
|
45 // Prog entry point |
|
46 GLDEF_C TInt E32Main() |
|
47 { |
|
48 __UHEAP_MARK; |
|
49 RDebug::Print( _L("E32Main START Cells: %d"), User::CountAllocCells() ); |
|
50 |
|
51 CTrapCleanup* stack = CTrapCleanup::New(); |
|
52 TRAPD( err, startSchedulerL() ); |
|
53 delete stack; |
|
54 |
|
55 RDebug::Print( _L("E32Main END Cells: %d"), User::CountAllocCells() ); |
|
56 __UHEAP_MARKEND; |
|
57 |
|
58 return err; |
|
59 } |