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