|
1 // Copyright (c) 2005-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 @internalComponent - Internal Symbian test code |
|
19 */ |
|
20 |
|
21 #ifndef __T_FOREGROUND_H |
|
22 #define __T_FOREGROUND_H |
|
23 |
|
24 |
|
25 #include <test/testexecutestepbase.h> |
|
26 #include "apparctestserver.h" |
|
27 #include "appfwk_test_appui.h" |
|
28 |
|
29 |
|
30 const TInt KTVwaStandardAppUiId=0; |
|
31 |
|
32 // |
|
33 // A CBase Derived Class |
|
34 // |
|
35 class CTestDriver : public CBase |
|
36 { |
|
37 public: |
|
38 CTestDriver(CCoeAppUi& aAppUi); |
|
39 ~CTestDriver(); |
|
40 public: |
|
41 void LoadAppL(); |
|
42 void CloseAppL(); |
|
43 void BringToForegroundL(); |
|
44 TInt SwitchCreate(); |
|
45 TInt SwitchOpen(); |
|
46 void CloseNonExistantWindowGroupTask(); |
|
47 private: |
|
48 inline CTestAppUi& AppUi(TInt aAppUiId=KTVwaStandardAppUiId); |
|
49 private: |
|
50 TInt iTestNum; |
|
51 TInt iState; |
|
52 CCoeAppUi& iAppUi; |
|
53 }; |
|
54 |
|
55 |
|
56 // |
|
57 // A CTmsTestStep Derived Class |
|
58 // |
|
59 class CTestForegroundStep : public CTmsTestStep |
|
60 { |
|
61 public: |
|
62 CTestForegroundStep(); |
|
63 ~CTestForegroundStep(); |
|
64 virtual TVerdict doTestStepL(); |
|
65 void ConstructAppL(CCoeEnv* aCoe); |
|
66 private: |
|
67 }; |
|
68 |
|
69 |
|
70 // |
|
71 // A CTestCoeAppUi derived Class |
|
72 // |
|
73 class CTestForegroundAppUi : public CTestCoeAppUi |
|
74 { |
|
75 public: // from CCoeAppUi |
|
76 CTestForegroundAppUi(CTmsTestStep* aStep); |
|
77 ~CTestForegroundAppUi(); |
|
78 void ConstructL(); |
|
79 void RunTestStepL(TInt aNumStep); |
|
80 private: |
|
81 CTestDriver* iDriver; |
|
82 }; |
|
83 |
|
84 |
|
85 // |
|
86 // Test Step Name |
|
87 // |
|
88 _LIT(KTestForegroundStep, "T_Foreground"); |
|
89 |
|
90 |
|
91 #endif |
|
92 |
|
93 |