|
1 /* |
|
2 * Copyright (c) 2009 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <e32svr.h> |
|
23 #include <StifParser.h> |
|
24 #include <Stiftestinterface.h> |
|
25 #include "stlport_repcpif.h" |
|
26 |
|
27 // EXTERNAL DATA STRUCTURES |
|
28 //extern ?external_data; |
|
29 |
|
30 // EXTERNAL FUNCTION PROTOTYPES |
|
31 //extern ?external_function( ?arg_type,?arg_type ); |
|
32 |
|
33 // CONSTANTS |
|
34 //const ?type ?constant_var = ?constant; |
|
35 |
|
36 // MACROS |
|
37 //#define ?macro ?macro_def |
|
38 |
|
39 // LOCAL CONSTANTS AND MACROS |
|
40 //const ?type ?constant_var = ?constant; |
|
41 //#define ?macro_name ?macro_def |
|
42 |
|
43 // MODULE DATA STRUCTURES |
|
44 //enum ?declaration |
|
45 //typedef ?declaration |
|
46 |
|
47 // LOCAL FUNCTION PROTOTYPES |
|
48 //?type ?function_name( ?arg_type, ?arg_type ); |
|
49 |
|
50 // FORWARD DECLARATIONS |
|
51 //class ?FORWARD_CLASSNAME; |
|
52 |
|
53 // ============================= LOCAL FUNCTIONS =============================== |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // ?function_name ?description. |
|
57 // ?description |
|
58 // Returns: ?value_1: ?description |
|
59 // ?value_n: ?description_line1 |
|
60 // ?description_line2 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 /* |
|
64 ?type ?function_name( |
|
65 ?arg_type arg, // ?description |
|
66 ?arg_type arg) // ?description |
|
67 { |
|
68 |
|
69 ?code // ?comment |
|
70 |
|
71 // ?comment |
|
72 ?code |
|
73 } |
|
74 */ |
|
75 |
|
76 // ============================ MEMBER FUNCTIONS =============================== |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // Cstlport_repcpif::Delete |
|
80 // Delete here all resources allocated and opened from test methods. |
|
81 // Called from destructor. |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 void Cstlport_repcpif::Delete() |
|
85 { |
|
86 |
|
87 } |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // Cstlport_repcpif::RunMethodL |
|
91 // Run specified method. Contains also table of test mothods and their names. |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 TInt Cstlport_repcpif::RunMethodL( |
|
95 CStifItemParser& aItem ) |
|
96 { |
|
97 |
|
98 static TStifFunctionInfo const KFunctions[] = |
|
99 { |
|
100 // Copy this line for every implemented function. |
|
101 // First string is the function name used in TestScripter script file. |
|
102 // Second is the actual implementation member function. |
|
103 ENTRY( "repcpif1_test", Cstlport_repcpif::repcpif1_testL ), |
|
104 |
|
105 }; |
|
106 |
|
107 const TInt count = sizeof( KFunctions ) / |
|
108 sizeof( TStifFunctionInfo ); |
|
109 |
|
110 return RunInternalL( KFunctions, count, aItem ); |
|
111 |
|
112 } |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // Cstlport_repcpif::repcpif1_testL |
|
116 // Example test method function. |
|
117 // (other items were commented in a header). |
|
118 // ----------------------------------------------------------------------------- |
|
119 // |
|
120 TInt Cstlport_repcpif::repcpif1_testL( CStifItemParser& /*aItem*/ ) |
|
121 { |
|
122 |
|
123 int ret=0; |
|
124 ret = repcpif1_test(0, NULL); |
|
125 |
|
126 if(ret==0) |
|
127 return KErrNone; |
|
128 else |
|
129 return KErrGeneral; |
|
130 |
|
131 } |
|
132 |
|
133 // ----------------------------------------------------------------------------- |
|
134 // Cstlport_repcpif::?member_function |
|
135 // ?implementation_description |
|
136 // (other items were commented in a header). |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 /* |
|
140 TInt Cstlport_repcpif::?member_function( |
|
141 CItemParser& aItem ) |
|
142 { |
|
143 |
|
144 ?code |
|
145 |
|
146 } |
|
147 */ |
|
148 |
|
149 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
150 // None |
|
151 |
|
152 // End of File |