|
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_APPTIMEOUT_H__ |
|
23 #define __TSS_APPTIMEOUT_H__ |
|
24 |
|
25 |
|
26 #include "tss_step_base.h" |
|
27 #include "testandstopper.h" |
|
28 #include "ssmtestprocgoodsession.h" |
|
29 |
|
30 //APPFWK-SSS-0005 |
|
31 |
|
32 _LIT(KCTestCaseAppTimeout, "AppTimeOut"); |
|
33 |
|
34 |
|
35 class CSsTestStepAppTimeout : public CSsStepBase |
|
36 { |
|
37 |
|
38 public: |
|
39 CSsTestStepAppTimeout(); |
|
40 ~CSsTestStepAppTimeout(); |
|
41 |
|
42 TVerdict doTestStepPreambleL(); |
|
43 TVerdict doTestStepPostambleL(); |
|
44 |
|
45 public: |
|
46 // From CTestStep |
|
47 TVerdict doTestStepL(); |
|
48 |
|
49 void DoTestAppTimeoutAsAppL(); |
|
50 void DoTestAppTimeoutAsProcL(); |
|
51 |
|
52 private: |
|
53 void DoTestWaitForSignalWithLessTimeOutAndNoRetriesL(); |
|
54 void DoTestWaitForSignalWithLessTimeOutAndWithRetriesL(); |
|
55 void DoTestWaitForSignalWithMoreTimeOutAndNoRetriesL(); |
|
56 void DoTestWaitForSignalWithMoreTimeOutAndWithRetriesL(); |
|
57 void DoTestWaitForSignalWithRetriesForFailureAppL(); |
|
58 void DoTestWaitForSignalWithRetriesForSuccessfullAppL(); |
|
59 void DoTestWaitForSignalNoRetriesAndNoTimeOutL(); |
|
60 void DoTestWaitForSignalWithLessTimeOutAndMoreRetriesL(); |
|
61 TInt DoTestAndStopperL(TInt aRetries, TInt aTimeOut, const TDesC& aFileName); |
|
62 |
|
63 private: |
|
64 CActiveScheduler* iActiveScheduler; |
|
65 }; |
|
66 |
|
67 #endif // __TSS_APPTIMEOUT_H__ |