|
1 /* |
|
2 * Copyright (c) 2004 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 CPOSTP79_H |
|
21 #define CPOSTP79_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "FT_CLandmarkTestProcedureBase.h" |
|
25 #include <ss_std.h> |
|
26 #include <e32std.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 class CPosLandmarkParser; |
|
30 |
|
31 /** |
|
32 * Test procedure 79 |
|
33 */ |
|
34 class CPosTp79 :public CLandmarkTestProcedureBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * C++ default constructor. |
|
40 */ |
|
41 CPosTp79() : CLandmarkTestProcedureBase(79) {}; |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CPosTp79() {}; |
|
47 |
|
48 public: // Functions from base classes |
|
49 |
|
50 /** |
|
51 * From CUtfwTestBase |
|
52 * Retrieves the test module name |
|
53 * @param aName The name of the test module. |
|
54 */ |
|
55 void GetName( |
|
56 TDes& aName |
|
57 ) const; |
|
58 |
|
59 /** |
|
60 * From CUtfwTestBase |
|
61 * Always called before StartL() |
|
62 */ |
|
63 void InitTestL(); |
|
64 |
|
65 /** |
|
66 * From CUtfwTestBase |
|
67 * Always called, even if test leaves |
|
68 */ |
|
69 void CloseTest(); |
|
70 |
|
71 /** |
|
72 * From CLandmarkTestProcedureBase |
|
73 * Runs the test in the module |
|
74 */ |
|
75 void StartL(); |
|
76 |
|
77 public: // New functions |
|
78 |
|
79 /** |
|
80 * Creates and initializes the default landmark database |
|
81 */ |
|
82 void InitDbL(); |
|
83 |
|
84 /** |
|
85 * Executes the search test thread |
|
86 */ |
|
87 static void RunSearchTestL(TDes* aMessage); |
|
88 |
|
89 /** |
|
90 * Executes the add remove categories test thread |
|
91 */ |
|
92 static void RunAddRemoveCatsTestL(TDes* aMessage); |
|
93 |
|
94 /** |
|
95 * Executes the read and update test thread |
|
96 */ |
|
97 static void RunReadAndUpdateTestL(TDes* aMessage); |
|
98 |
|
99 private: |
|
100 |
|
101 void ResumeThreadsAndVerifyExitL(); |
|
102 |
|
103 private: |
|
104 |
|
105 TBuf<100> iBuf; |
|
106 |
|
107 }; |
|
108 |
|
109 #endif // CPOSTP79_H |
|
110 |
|
111 // End of File |