|
1 /* |
|
2 * Copyright (c) 2005 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 * ?description_line |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPOSTp29_H |
|
21 #define CPOSTp29_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "FT_CLandmarkTestProcedureBase.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Test procedure 29 |
|
30 */ |
|
31 class CPosTp29 :public CLandmarkTestProcedureBase |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * C++ default constructor. |
|
37 */ |
|
38 CPosTp29() : CLandmarkTestProcedureBase(29) {iGlobalErr = KErrGeneral;}; |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 ~CPosTp29() {}; |
|
44 |
|
45 public: // Functions from base classes |
|
46 |
|
47 /** |
|
48 * From CUtfwTestBase |
|
49 * Retrieves the test module name |
|
50 * @param aName The name of the test module. |
|
51 */ |
|
52 void GetName( |
|
53 TDes& aName |
|
54 ) const; |
|
55 |
|
56 /** |
|
57 * From CUtfwTestBase |
|
58 */ |
|
59 void CloseTest(); |
|
60 |
|
61 /** |
|
62 * From CUtfwTestBase |
|
63 */ |
|
64 void InitTestL(); |
|
65 |
|
66 /** |
|
67 * From CPosTestProcedureBase |
|
68 * Runs the test in the module |
|
69 */ |
|
70 void StartL(); |
|
71 |
|
72 private: // New functions |
|
73 |
|
74 void ReInitTestL(); |
|
75 |
|
76 void TestCriticalLevelL(); |
|
77 |
|
78 void ConsumeDiscSpace1L(TInt aSizeLimit); |
|
79 |
|
80 void ConsumeDiscSpace2L(TInt aSizeLimit); |
|
81 |
|
82 void DeleteFile2L(); |
|
83 |
|
84 void RemoveAllLandmarksL(); |
|
85 |
|
86 void DoOutOfDiskTestL(TBool aSync); |
|
87 |
|
88 void InitiateCriticalLevelL(); |
|
89 |
|
90 void CopyResourceFileL(const TDesC& aResourceFile = KNullDesC); |
|
91 |
|
92 void TryRestoreResourceFile(); |
|
93 |
|
94 private: // Data |
|
95 |
|
96 RFs iFileServer; |
|
97 RFile iFile1; |
|
98 RFile iFile2; |
|
99 TInt iGlobalErr; |
|
100 TInt iCriticalLevel; |
|
101 TInt iCriticalThreshold; |
|
102 |
|
103 CPosLandmarkDatabase* iLandmarksDb; |
|
104 CPosLmCategoryManager* iCategoryManager; |
|
105 |
|
106 }; |
|
107 |
|
108 #endif // CPOSTp29_H |
|
109 |
|
110 // End of File |