|
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 CPOSTP123_H |
|
21 #define CPOSTP123_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "FT_CLandmarkTestProcedureBase.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CPosLmDatabaseManager; |
|
28 class CPosLmMultiDbSearch; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Test procedure 123 |
|
34 */ |
|
35 class CPosTp123 :public CLandmarkTestProcedureBase |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * C++ default constructor. |
|
41 */ |
|
42 |
|
43 CPosTp123(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 ~CPosTp123() {}; |
|
48 |
|
49 public: // Functions from base classes |
|
50 |
|
51 |
|
52 void CloseTest(); |
|
53 |
|
54 void InitTestL(); |
|
55 |
|
56 /** |
|
57 * From CLandmarkTestProcedureBase |
|
58 * Runs the test in the module |
|
59 */ |
|
60 void StartL(); |
|
61 |
|
62 private: |
|
63 |
|
64 enum TSearchCriterion |
|
65 { |
|
66 ENoCriterion, |
|
67 ELocalCategoryId, |
|
68 EGlobalCategoryId, |
|
69 ECategoryName |
|
70 }; |
|
71 |
|
72 void TestSearchL( |
|
73 TBool aExecuteSync, |
|
74 TSearchCriterion aCriterion, |
|
75 TInt aNrOfHits, |
|
76 TBool aSorted); |
|
77 |
|
78 void TestSearchCategoriesL(TBool aExecuteSync); |
|
79 |
|
80 void RemoveCategoriesFromLandmarksL(TInt aNrOfLandmarks); |
|
81 |
|
82 void SearchForUncategorizedLMsL(TInt aNrOfHits, TBool aSorted = EFalse); |
|
83 |
|
84 void RemoveCategoryFromDbL(TPosLmItemId aCategoryId, const TDesC& aDbUri); |
|
85 |
|
86 void VerifySearchResultL(TInt aNrOfHits, TBool aSorted); |
|
87 |
|
88 void VerifySortOrderL(CPosLmItemIterator* aIter, CPosLandmarkDatabase* aDb); |
|
89 |
|
90 private: |
|
91 |
|
92 RArray<RIdArray> iIdArrays; |
|
93 TBuf<200> iBuf; |
|
94 CDesCArray* iDatabases; |
|
95 TInt iNrOfDatabases; |
|
96 CPosLmMultiDbSearch* iLandmarkSearch; |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // CPOSTP123_H |
|
101 |
|
102 // End of File |