|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent - Internal Symbian test code |
|
19 */ |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32uid.h> |
|
23 #include <e32base.h> |
|
24 #include <e32test.h> |
|
25 #include <apadef.h> |
|
26 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
27 #include "apainternal.h" |
|
28 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
29 |
|
30 //const TInt KTexeUidValue=0x10004c6b; |
|
31 //const TUid KUidTExe={KTexeUidValue}; |
|
32 |
|
33 // Global functions |
|
34 |
|
35 |
|
36 void DoThings(const TApaCommandLine& aCommandLine) |
|
37 { |
|
38 RTest test(_L("TEXE")); |
|
39 test.Title(); |
|
40 test.Start(_L(" @SYMTestCaseID API-APPFWK-APPARC-TEXE-0001 The test dxe has been loaded.")); |
|
41 test.Printf(_L("\n")); |
|
42 test.Printf(aCommandLine); |
|
43 test.Printf(_L("\n")); |
|
44 test.End(); |
|
45 test.Close(); |
|
46 } |
|
47 |
|
48 |
|
49 // dll/exe bits |
|
50 |
|
51 |
|
52 /** |
|
53 #if defined(__WINS__) |
|
54 |
|
55 EXPORT_C TInt EntryPoint(TAny* aParam) |
|
56 { |
|
57 __UHEAP_MARK; |
|
58 CTrapCleanup *cleanup=CTrapCleanup::New(); |
|
59 // |
|
60 TApaCommandLine& docName=*(TApaCommandLine*)aParam; |
|
61 DoThings(docName); |
|
62 // |
|
63 delete(cleanup); |
|
64 __UHEAP_MARKEND; |
|
65 return(0); |
|
66 } |
|
67 |
|
68 |
|
69 GLDEF_C TInt E32Dll(TDllReason) |
|
70 { |
|
71 return(KErrNone); |
|
72 } |
|
73 |
|
74 #else |
|
75 */ |
|
76 |
|
77 GLDEF_C TInt E32Main() |
|
78 { |
|
79 __UHEAP_MARK; |
|
80 CTrapCleanup *cleanup=CTrapCleanup::New(); |
|
81 // |
|
82 TApaCommandLine commandline; |
|
83 User::CommandLine(commandline); |
|
84 |
|
85 DoThings(commandline); |
|
86 // |
|
87 delete(cleanup); |
|
88 __UHEAP_MARKEND; |
|
89 return(0); |
|
90 } |
|
91 |
|
92 // #endif |