multimediacommscontroller/tsrc/TestConsoles/RtpSourceSink/Src/TestConsoleMain.cpp
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 "TestConsole.h" |
|
22 |
|
23 |
|
24 // ActiveScheduler trap harness |
|
25 void startSchedulerL() |
|
26 { |
|
27 CActiveScheduler* testScheduler = new(ELeave)CActiveScheduler; |
|
28 |
|
29 CleanupStack::PushL(testScheduler); |
|
30 CActiveScheduler::Install(testScheduler); |
|
31 |
|
32 //Enter Active Object |
|
33 CTestAppConsole* appConsole = CTestAppConsole::NewL(); |
|
34 CleanupStack::PushL(appConsole); |
|
35 |
|
36 appConsole->StartTesting(); |
|
37 CActiveScheduler::Start(); |
|
38 |
|
39 CleanupStack::PopAndDestroy(); // appConsole*/ |
|
40 CleanupStack::PopAndDestroy(); // testScheduler |
|
41 } |
|
42 |
|
43 |
|
44 // Prog entry point |
|
45 GLDEF_C TInt E32Main() |
|
46 { |
|
47 __UHEAP_MARK; |
|
48 |
|
49 CTrapCleanup* stack = CTrapCleanup::New(); |
|
50 TRAPD(err, startSchedulerL()); |
|
51 delete stack; |
|
52 |
|
53 __UHEAP_MARKEND; |
|
54 return 0; |
|
55 } |