equal
deleted
inserted
replaced
|
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 CPOSTP12_H |
|
21 #define CPOSTP12_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "EPos_LandmarksErrors.h" |
|
25 |
|
26 #include "FT_CLandmarkTestProcedureBase.h" |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Test procedure 12 |
|
32 */ |
|
33 class CPosTp12 : public CLandmarkTestProcedureBase |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * C++ default constructor. |
|
39 */ |
|
40 |
|
41 CPosTp12(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 ~CPosTp12() {}; |
|
46 |
|
47 public: |
|
48 |
|
49 static void RunPanicTestL(TAny* aData); |
|
50 |
|
51 public: // Functions from base classes |
|
52 |
|
53 |
|
54 /** |
|
55 * From CLandmarkTestProcedureBase |
|
56 * Runs the test in the module |
|
57 */ |
|
58 void StartL(); |
|
59 |
|
60 /** |
|
61 * From CLandmarkTestProcedureBase |
|
62 * Always called, even if the test leaves |
|
63 */ |
|
64 void CloseTest(); |
|
65 |
|
66 private: |
|
67 |
|
68 void CreateThreadL(); |
|
69 |
|
70 void ResumeThreadAndVerifyExit(); |
|
71 |
|
72 void ResourceFilePanicTestL(); |
|
73 |
|
74 CPosLandmarkDatabase* UseInvalidResourceFileL(); |
|
75 |
|
76 void RestoreResourceFileL(); |
|
77 |
|
78 |
|
79 |
|
80 private: |
|
81 |
|
82 RThread iThread; |
|
83 TPositionLandmarksClientPanic iExpectedPanicCode; |
|
84 TInt iTestCase; |
|
85 TInt iTreadCounter; |
|
86 }; |
|
87 |
|
88 #endif // CPOSTP12_H |
|
89 |
|
90 // End of File |