|
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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-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 CPOSTp51_H |
|
21 #define CPOSTp51_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "EPos_LandmarksErrors.h" |
|
25 |
|
26 #include "FT_CLandmarkTestProcedureBase.h" |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Test procedure 51 |
|
32 */ |
|
33 class CPosTp51 : public CLandmarkTestProcedureBase |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * C++ default constructor. |
|
39 */ |
|
40 |
|
41 CPosTp51(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {}; |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 ~CPosTp51() {}; |
|
46 |
|
47 public: |
|
48 |
|
49 /** |
|
50 * Includes both Panic testing and testing of correct leave codes |
|
51 */ |
|
52 static void RunPanicTestL(TAny* aData); |
|
53 |
|
54 public: // Functions from base classes |
|
55 |
|
56 |
|
57 /** |
|
58 * From CLandmarkTestProcedureBase |
|
59 * Runs the test in the module |
|
60 */ |
|
61 void StartL(); |
|
62 |
|
63 /** |
|
64 * From CLandmarkTestProcedureBase |
|
65 * Always called, even if the test leaves |
|
66 */ |
|
67 void CloseTest(); |
|
68 |
|
69 private: |
|
70 |
|
71 void CreateThreadL(); |
|
72 |
|
73 void ResumeThreadAndVerifyExitL(); |
|
74 |
|
75 void RunLeaveTestL(); |
|
76 |
|
77 void ListAllServers(); |
|
78 |
|
79 public: |
|
80 // Use this enum to define if the thread should exit with panic or leave |
|
81 enum ExitType {ExitPanic, ExitLeave}; |
|
82 |
|
83 private: |
|
84 |
|
85 RThread iThread; |
|
86 TInt iExpectedErrorCode; |
|
87 ExitType iExpectedExitType; |
|
88 TInt iTestCase; |
|
89 |
|
90 TPtrC8 iMimeType; |
|
91 TInt iThreadCounter; |
|
92 TInt iErrorsFound; |
|
93 }; |
|
94 |
|
95 #endif // CPOSTp51_H |
|
96 |
|
97 // End of File |