|
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 CPOSTp126_H |
|
21 #define CPOSTp126_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "FT_CLandmarkTestProcedureBase.h" |
|
25 #include <EPos_CPosLMCategoryManager.h> |
|
26 #include <EPos_CPosLmMultiDbSearch.h> |
|
27 #include "EPos_LandmarksErrors.h" |
|
28 |
|
29 enum TEnumStep |
|
30 { |
|
31 EStepZeroMaxMatches = 0, |
|
32 EStepNegativeMaxMatches, |
|
33 EStepUnlimitedMaxMatches, |
|
34 EStepOutOfBoundsDatabaseUriPtr, |
|
35 EStepOutOfBoundsGetSearchError, |
|
36 EStepTooBigValueMatchIteratorL, |
|
37 EStepTooBigValueNumOfMatches, |
|
38 EStepIllegalSortPrefLMa, |
|
39 EStepIllegalSortPrefLMb, |
|
40 EStepIllegalSortPrefLMc, |
|
41 EStepIllegalSortPrefLMd, |
|
42 EStepIllegalSortPrefCat, |
|
43 EStepNULLSearch1, |
|
44 EStepNULLSearch2, |
|
45 EStepNULLSearch3, |
|
46 EStepNULLSearch4 |
|
47 }; |
|
48 |
|
49 // CLASS DECLARATION |
|
50 |
|
51 /** |
|
52 * Test procedure 126 |
|
53 */ |
|
54 class CPosTp126 : public CLandmarkTestProcedureBase |
|
55 { |
|
56 public: // Constructors and destructor |
|
57 |
|
58 /** |
|
59 * C++ default constructor. |
|
60 */ |
|
61 |
|
62 CPosTp126(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
63 /** |
|
64 * Destructor. |
|
65 */ |
|
66 ~CPosTp126() {delete iLandmarksMultiDbSearch; |
|
67 iThread.Close();}; |
|
68 |
|
69 static void RunPanicTestL(TAny* aData); |
|
70 |
|
71 public: // Functions from base classes |
|
72 |
|
73 |
|
74 |
|
75 void CloseTest(); |
|
76 |
|
77 /** |
|
78 * From CLandmarkTestProcedureBase |
|
79 * Runs the test in the module |
|
80 */ |
|
81 void StartL(); |
|
82 |
|
83 private: |
|
84 void CreateThreadL(); |
|
85 void ResumeThreadAndVerifyExitL(); |
|
86 void ResourceFilePanicTestL(); |
|
87 |
|
88 // data members |
|
89 private: |
|
90 |
|
91 CPosLmMultiDbSearch* iLandmarksMultiDbSearch; |
|
92 RThread iThread; |
|
93 TPositionLandmarksClientPanic iExpectedPanicCode; |
|
94 |
|
95 TEnumStep iStep; |
|
96 }; |
|
97 |
|
98 #endif // CPOSTp126_H |
|
99 |
|
100 // End of File |