1 /* |
|
2 * Copyright (c) 2005-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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file CTestSuiteD.cpp |
|
22 */ |
|
23 |
|
24 #include "ctestsuited.h" |
|
25 #include "ctestasyncsuitea.h" |
|
26 |
|
27 void CTestSuiteD::SetupL() |
|
28 /** |
|
29 * SetupL |
|
30 */ |
|
31 { |
|
32 } |
|
33 |
|
34 void CTestSuiteD::TearDownL() |
|
35 /** |
|
36 * TearDownL |
|
37 */ |
|
38 { |
|
39 } |
|
40 |
|
41 void CTestSuiteD::TestOne() |
|
42 /** |
|
43 * TestOne |
|
44 */ |
|
45 { |
|
46 INFO_PRINTF1(_L("Running SuiteD:One")); |
|
47 TInt theInt = 0; |
|
48 TBool res = iConfig.GetInt(_L("TheInt"),theInt); |
|
49 ASSERT_TRUE( res ); |
|
50 TBool theBool = EFalse; |
|
51 res = iConfig.GetBool(_L("TheBool"), theBool); |
|
52 ASSERT_TRUE( res ); |
|
53 INFO_PRINTF3(_L("TheInt = %d The Bool = %d"),theInt,theBool); |
|
54 } |
|
55 |
|
56 void CTestSuiteD::TestTwo() |
|
57 /** |
|
58 * TestTwo |
|
59 */ |
|
60 { |
|
61 INFO_PRINTF1(_L("Running SuiteD:Two")); |
|
62 TInt theInt = 0; |
|
63 TBool res = iConfig.GetInt(_L("TheInt"),theInt); |
|
64 ASSERT_TRUE( res ); |
|
65 TBool theBool = EFalse; |
|
66 res = iConfig.GetBool(_L("TheBool"), theBool); |
|
67 ASSERT_TRUE( res ); |
|
68 INFO_PRINTF3(_L("TheInt = %d The Bool = %d"),theInt,theBool); |
|
69 } |
|
70 |
|
71 CTestSuite* CTestSuiteD::CreateSuiteL( const TDesC& aName ) |
|
72 /** |
|
73 * CreateSuiteL |
|
74 * |
|
75 * @param aName - Suite name |
|
76 * @return - Suite |
|
77 */ |
|
78 { |
|
79 SUB_SUITE; |
|
80 #ifndef __GCCXML__ |
|
81 ADD_TEST_STEP( TestOne ); |
|
82 ADD_TEST_STEP( TestTwo ); |
|
83 #endif |
|
84 #ifdef __GCCXML__ |
|
85 ADD_TEST_STEP_CLASS( CTestSuiteD, TestOne ); |
|
86 ADD_TEST_STEP_CLASS( CTestSuiteD, TestTwo ); |
|
87 #endif |
|
88 ADD_TEST_SUITE( CTestAsyncSuiteA ) |
|
89 END_SUITE; |
|
90 } |
|