1 /* |
|
2 * Copyright (c) 2007 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: Test Class which has the list of test cases for CLcLocationAppInfo |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CTestLocationAppInfoArray_H |
|
20 #define CTestLocationAppInfoArray_H |
|
21 |
|
22 // System Includes |
|
23 #include <StifLogger.h> |
|
24 #include <StifParser.h> |
|
25 #include <StifTestModule.h> |
|
26 #include <e32base.h> |
|
27 #include <e32std.h> |
|
28 #include <bautils.h> |
|
29 #include <f32file.h> |
|
30 |
|
31 //Forward Declarations |
|
32 class CLcLocationAppInfoArray; |
|
33 |
|
34 // Constants |
|
35 |
|
36 // CLASS DECLARATION |
|
37 /** |
|
38 * Test Class For CLcLocationAppInfo |
|
39 * |
|
40 * This has CLcLocationAppInfo object which invokes CLcLocationAppInfo methods |
|
41 * |
|
42 * @lib testlc.lib |
|
43 * @since S60 v5.0 |
|
44 */ |
|
45 |
|
46 class CTestLocationAppInfoArray : public CBase |
|
47 { |
|
48 public: |
|
49 |
|
50 // Constructors and destructor |
|
51 /** |
|
52 * C++ default constructor. |
|
53 */ |
|
54 CTestLocationAppInfoArray(CStifLogger* aLog); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 ~CTestLocationAppInfoArray(); |
|
60 |
|
61 public: |
|
62 |
|
63 // New functions |
|
64 /** |
|
65 * Method to Check the Creation of AppInfo Array using NewL |
|
66 * @since S60 5.0 |
|
67 * Returns KErrNone if successful. |
|
68 * |
|
69 */ |
|
70 TInt CheckArrayNewL( ); |
|
71 |
|
72 /** |
|
73 * Method to Check the Creation of AppInfo Array using NewLC |
|
74 * @since S60 5.0 |
|
75 * Returns KErrNone if successful. |
|
76 * |
|
77 */ |
|
78 TInt CheckArrayNewLC( ); |
|
79 |
|
80 /** |
|
81 * Method to Check the Count of AppInfo Array |
|
82 * @since S60 5.0 |
|
83 * Returns KErrNone if successful. |
|
84 * |
|
85 */ |
|
86 TInt CheckCount( ); |
|
87 |
|
88 /** |
|
89 * Method to Check the append to AppInfo Array |
|
90 * @since S60 5.0 |
|
91 * Returns KErrNone if successful. |
|
92 * |
|
93 */ |
|
94 TInt CheckAppendL( ); |
|
95 |
|
96 /** |
|
97 * Method to Check the Remove from AppInfo Array |
|
98 * @since S60 5.0 |
|
99 * Returns KErrNone if successful. |
|
100 * |
|
101 */ |
|
102 TInt CheckRemoveL( ); |
|
103 |
|
104 /** |
|
105 * Method to Check the Reset of AppInfo Array |
|
106 * @since S60 5.0 |
|
107 * Returns KErrNone if successful. |
|
108 * |
|
109 */ |
|
110 TInt CheckResetL( ); |
|
111 |
|
112 /** |
|
113 * Method to Check the [] Operator of AppInfo Array |
|
114 * @since S60 5.0 |
|
115 * Returns KErrNone if successful. |
|
116 * |
|
117 */ |
|
118 TInt CheckOperatorL( ); |
|
119 |
|
120 private: //data |
|
121 /** |
|
122 * CLcLocationAppInfo Instance |
|
123 */ |
|
124 CLcLocationAppInfoArray* iLcLocationAppInfoArray; |
|
125 |
|
126 /** |
|
127 * Pointer to Stif Logger - Does not Own |
|
128 */ |
|
129 CStifLogger* iLog; |
|
130 |
|
131 }; |
|
132 |
|
133 #endif // CTestLocationAppInfoArray_H |
|
134 |
|
135 // End of File |
|