1 // Copyright (c) 2001-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 // step_003_01.cpp |
|
15 // This is the header file for CommDb test 003.XX group of scenarios |
|
16 // |
|
17 // |
|
18 |
|
19 |
|
20 #if (!defined __STEP_003_XX_H__) |
|
21 #define __STEP_003_XX_H__ |
|
22 |
|
23 |
|
24 // |
|
25 // Test step 003.01 |
|
26 // |
|
27 |
|
28 NONSHARABLE_CLASS(CCommDbTest003_01) : public CTestStepCommDb |
|
29 { |
|
30 public: |
|
31 CCommDbTest003_01(); |
|
32 ~CCommDbTest003_01(); |
|
33 |
|
34 virtual enum TVerdict doTestStepL( void ); |
|
35 TInt executeStepL(); |
|
36 TInt myOpenTableL(); |
|
37 TVerdict doTestStepPreambleL(); |
|
38 |
|
39 private: |
|
40 |
|
41 |
|
42 }; |
|
43 |
|
44 // |
|
45 // Test step 003.02 |
|
46 // |
|
47 class CCommsDatabase; |
|
48 |
|
49 NONSHARABLE_CLASS(CCommDbTest003_02) : public CTestStepCommDb |
|
50 { |
|
51 public: |
|
52 CCommDbTest003_02(); |
|
53 ~CCommDbTest003_02(); |
|
54 |
|
55 virtual enum TVerdict doTestStepL( void ); |
|
56 TInt executeStepL(); |
|
57 TVerdict doTestStepPreambleL(); |
|
58 |
|
59 private: |
|
60 TInt myOpenTableL(); |
|
61 |
|
62 |
|
63 }; |
|
64 |
|
65 // |
|
66 // Test step 003.03 |
|
67 // |
|
68 |
|
69 NONSHARABLE_CLASS(CCommDbTest003_03) : public CTestStepCommDb |
|
70 { |
|
71 public: |
|
72 CCommDbTest003_03(); |
|
73 ~CCommDbTest003_03(); |
|
74 |
|
75 virtual enum TVerdict doTestStepL( void ); |
|
76 TInt executeStepL(); |
|
77 TVerdict doTestStepPreambleL(); |
|
78 |
|
79 private: |
|
80 TInt myOpenTableL(); |
|
81 |
|
82 |
|
83 }; |
|
84 |
|
85 // |
|
86 // Test step 003.04 |
|
87 // |
|
88 |
|
89 NONSHARABLE_CLASS(CCommDbTest003_04) : public CTestStepCommDb |
|
90 { |
|
91 public: |
|
92 CCommDbTest003_04(); |
|
93 ~CCommDbTest003_04(); |
|
94 |
|
95 virtual enum TVerdict doTestStepL( void ); |
|
96 TVerdict doTestStepPreambleL(); |
|
97 TInt executeStepL(); |
|
98 |
|
99 private: |
|
100 TInt myOpenTableL(); |
|
101 |
|
102 |
|
103 }; |
|
104 |
|
105 // |
|
106 // Test step 003.05 |
|
107 // |
|
108 |
|
109 NONSHARABLE_CLASS(CCommDbTest003_05) : public CTestStepCommDb |
|
110 { |
|
111 public: |
|
112 CCommDbTest003_05(); |
|
113 ~CCommDbTest003_05(); |
|
114 |
|
115 virtual enum TVerdict doTestStepL( void ); |
|
116 TInt executeStepL(); |
|
117 TVerdict doTestStepPreambleL(); |
|
118 |
|
119 private: |
|
120 TInt myOpenTableL(); |
|
121 TBool iLocalObjects; //Flag set when objects of this class have created iTheDb and iTheView |
|
122 |
|
123 }; |
|
124 |
|
125 // |
|
126 // Test step 003.06 |
|
127 // |
|
128 |
|
129 NONSHARABLE_CLASS(CCommDbTest003_06) : public CTestStepCommDb |
|
130 { |
|
131 public: |
|
132 CCommDbTest003_06(); |
|
133 ~CCommDbTest003_06(); |
|
134 |
|
135 virtual enum TVerdict doTestStepL( void ); |
|
136 TInt executeStepL(); |
|
137 TVerdict doTestStepPreambleL(); |
|
138 |
|
139 private: |
|
140 TInt myOpenTableL(); |
|
141 TBool iLocalObjects; //Flag set when objects of this class have created iTheDb and iTheView |
|
142 |
|
143 }; |
|
144 |
|
145 // |
|
146 // Test step 003.07 |
|
147 // |
|
148 |
|
149 NONSHARABLE_CLASS(CCommDbTest003_07) : public CTestStepCommDb |
|
150 { |
|
151 public: |
|
152 CCommDbTest003_07(); |
|
153 ~CCommDbTest003_07(); |
|
154 |
|
155 virtual enum TVerdict doTestStepL( void ); |
|
156 |
|
157 private: |
|
158 TBool iLocalObjects; //Flag set when objects of this class have created iTheDb and iTheView |
|
159 |
|
160 }; |
|
161 |
|
162 // |
|
163 // Test step 003.08 |
|
164 // |
|
165 |
|
166 NONSHARABLE_CLASS(CCommDbTest003_08) : public CTestStepCommDb |
|
167 { |
|
168 public: |
|
169 CCommDbTest003_08(); |
|
170 ~CCommDbTest003_08(); |
|
171 |
|
172 virtual enum TVerdict doTestStepL( void ); |
|
173 |
|
174 private: |
|
175 TBool iLocalObjects; //Flag set when objects of this class have created iTheDb and iTheView |
|
176 |
|
177 }; |
|
178 |
|
179 |
|
180 #endif //(__STEP_003_XX_H__) |
|