1 /* |
1 /* |
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
2 * ============================================================================ |
3 * All rights reserved. |
3 * Name: FavouritesWapApTestCases.cpp |
4 * This component and the accompanying materials are made available |
4 * Part of: FavouritesEngineTest class member functions |
5 * under the terms of the License "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 * |
5 * |
9 * Initial Contributors: |
6 * Description: |
10 * Nokia Corporation - initial contribution. |
|
11 * |
7 * |
12 * Contributors: |
8 * Version: 0.5 |
13 * |
9 * |
14 * Description: |
10 * Copyright (C) 2002 Nokia Corporation. |
|
11 * This material, including documentation and any related |
|
12 * computer programs, is protected by copyright controlled by |
|
13 * Nokia Corporation. All rights are reserved. Copying, |
|
14 * including reproducing, storing, adapting or translating, any |
|
15 * or all of this material requires the prior written consent of |
|
16 * Nokia Corporation. This material also contains confidential |
|
17 * information which may not be disclosed to others without the |
|
18 * prior written consent of Nokia Corporation. |
15 * |
19 * |
16 * |
20 * ============================================================================ |
17 */ |
21 */ |
18 |
|
19 |
22 |
20 |
23 |
21 // INCLUDE FILES |
24 // INCLUDE FILES |
22 #include <e32math.h> |
25 #include <e32math.h> |
23 #include "FavouritesEngineTest.h" |
26 #include "FavouritesEngineTest.h" |
149 |
152 |
150 // Case was executed |
153 // Case was executed |
151 return KErrNone; |
154 return KErrNone; |
152 } |
155 } |
153 |
156 |
|
157 |
|
158 /* |
|
159 ------------------------------------------------------------------------------- |
|
160 |
|
161 Class: CFavouritesEngineTest |
|
162 |
|
163 Method: WapApAssignSelfWithApTest |
|
164 |
|
165 Description: Test the WapAp assign(=) operater using a WapAp as the argument. |
|
166 |
|
167 Parameters: TTestResult& aErrorDescription: out: |
|
168 Test result and on error case a short description of error |
|
169 |
|
170 Return Values: TInt: Always KErrNone to indicate that test was valid |
|
171 |
|
172 Errors/Exceptions: None |
|
173 |
|
174 Status: Approved |
|
175 |
|
176 ------------------------------------------------------------------------------- |
|
177 */ |
|
178 TInt CFavouritesEngineTest::WapApAssignSelfWithApTest( TTestResult& aResult ) |
|
179 { |
|
180 /* Simple server connect */ |
|
181 _LIT( KDefinition ,"State"); |
|
182 _LIT( KData ,"Test the WapAp assign(=) operater using the same WapAp as the argument"); |
|
183 TestModuleIf().Printf( 0, KDefinition, KData ); |
|
184 |
|
185 TFavouritesWapAp accessPoint1, accessPoint2; |
|
186 |
|
187 accessPoint1 = 222; |
|
188 |
|
189 accessPoint1 = accessPoint1; |
|
190 |
|
191 _LIT( KData2 ,"Finished" ); |
|
192 TestModuleIf().Printf( 0, KDefinition, KData2 ); |
|
193 |
|
194 if(accessPoint1.ApId() == 222) |
|
195 { |
|
196 _LIT( KDescription , "Test case passed"); |
|
197 aResult.SetResult( KErrNone, KDescription ); |
|
198 } |
|
199 else |
|
200 { |
|
201 _LIT( KDescription , "Test case failed"); |
|
202 aResult.SetResult( KErrGeneral, KDescription ); |
|
203 } |
|
204 |
|
205 // Case was executed |
|
206 return KErrNone; |
|
207 } |
|
208 |
154 /* |
209 /* |
155 ------------------------------------------------------------------------------- |
210 ------------------------------------------------------------------------------- |
156 |
211 |
157 Class: CFavouritesEngineTest |
212 Class: CFavouritesEngineTest |
158 |
213 |