|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef __TSS_ERRORS_H__ |
|
23 #define __TSS_ERRORS_H__ |
|
24 |
|
25 |
|
26 #include "tss_step_base.h" |
|
27 |
|
28 //APPFWK-SSS-009 |
|
29 _LIT( KStartSafeErrors, "StartSafeErrors" ); |
|
30 |
|
31 enum TSsErrorScenario |
|
32 { |
|
33 ESsErrorScenarioNoMonitorFlag, |
|
34 ESsErrorScenarioNullFileNameProcess, |
|
35 ESsErrorScenarioNullFileNameApp, |
|
36 ESsErrorScenarioFictitiousFileNameProcess, |
|
37 ESsErrorScenarioFictitiousFileNameApp, |
|
38 ESsErrorScenarioCommandTypeOutOfRange, |
|
39 ESsErrorScenarioStartMethodOutOfRange, |
|
40 ESsErrorScenarioNegativeTimeout, |
|
41 ESsErrorScenarioNegativeRetries, |
|
42 ESsErrorScenarioNegativeRetriesFails, |
|
43 ESsErrorScenarioFireAndForgetWithNullFilename, |
|
44 ESsErrorScenarioStartAndCancelWithDuffIndex, |
|
45 ESsErrorScenarioStartAppWhichPanicsKErrNoneAsApp, |
|
46 ESsErrorScenarioStartAppWhichPanicsKErrNoneAsProcess, |
|
47 ESsErrorScenarioStartAppWhichPanicsAsApp, |
|
48 ESsErrorScenarioStartAppWhichPanicsAsProcess, |
|
49 ESsErrorScenarioOOM |
|
50 }; |
|
51 |
|
52 |
|
53 |
|
54 class CSsTestStepErrors : public CSsStepBase |
|
55 { |
|
56 |
|
57 public: |
|
58 CSsTestStepErrors(); |
|
59 ~CSsTestStepErrors(); |
|
60 |
|
61 void DoTestNoMonitorFlagL(); |
|
62 void DoTestStartAsProcessWithNullFileNameL(); |
|
63 void DoTestStartAsAppWithNullFileNameL(); |
|
64 void DoTestStartAsProcessWithFictitiousFileNameL(); |
|
65 void DoTestStartAsAppWithFictitiousFileNameL(); |
|
66 void DoTestCommandTypeOutOfRangeL(); |
|
67 void DoTestStartMethodOutOfRangeL(); |
|
68 void DoTestNegativeTimeoutL(); |
|
69 void DoTestNegativeRetriesL(); |
|
70 void DoTestNegativeRetriesStartupFailsL(); |
|
71 void DoTestFireAndForgetWithNullFilenameL(); |
|
72 void DoTestStartandCancelWithBadIndexL(); |
|
73 void DoTestStartAppWhichPanicsKErrNoneAsAppL(); |
|
74 void DoTestStartAppWhichPanicsKErrNoneAsProcessL(); |
|
75 void DoTestStartAppWhichPanicsAsProcessL(); |
|
76 void DoTestStartAppWhichPanicsAsAppL(); |
|
77 void DoTestOOML(); |
|
78 |
|
79 public: |
|
80 // From CTestStep |
|
81 TVerdict doTestStepL(); |
|
82 TVerdict doTestStepPreambleL(); |
|
83 TVerdict doTestStepPostambleL(); |
|
84 |
|
85 private: |
|
86 void SsTestNotify( TInt aNotify ); |
|
87 private: |
|
88 TVerdict iInterimVerdict; // Note: EPass == 0 |
|
89 CActiveScheduler* iActiveScheduler; |
|
90 TSsErrorScenario iScenario; |
|
91 }; |
|
92 |
|
93 |
|
94 #endif // __TSS_ERRORS_H__ |