|
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 // t_controlpaneltest.h |
|
15 // |
|
16 |
|
17 /** |
|
18 @file t_controlpaneltest.h |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 //#if (!defined __T_CONTROLPANEL_STEP_H) |
|
23 //#define __T_CONTROLPANEL_STEP_H |
|
24 |
|
25 #ifndef __T_CONTROLPANEL_STEP_H |
|
26 #define __T_CONTROLPANEL_STEP_H |
|
27 |
|
28 #include "apparctestserver.h" |
|
29 |
|
30 #include <apaid.h> |
|
31 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
32 #include <apaidpartner.h> |
|
33 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
34 #include "../apparc/apadll.h" |
|
35 #include <apgaplst.h> |
|
36 #include <apgicnfl.h> |
|
37 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
38 #include <apgicnflpartner.h> |
|
39 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
40 #include <apgdoor.h> |
|
41 #include <apfrec.h> |
|
42 #include <apfctlf.h> |
|
43 #include <apgctl.h> |
|
44 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
45 #include <apgctllist.h> |
|
46 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
47 #include <apgaplst.h> |
|
48 #include <apaflrec.h> |
|
49 #include <apgcli.h> |
|
50 #include <apacmdln.h> |
|
51 #include "appfwk_test_utils.h" |
|
52 #include "../apserv/apsclsv.h" // so I can start the server |
|
53 |
|
54 |
|
55 _LIT(KT_ControlPanelTest, "T_ControlPanelTest"); |
|
56 |
|
57 //! A CT_ControlPanelTestStep test class. |
|
58 /*! |
|
59 Tests Application Apparc base classes and utility functions.\n |
|
60 */ |
|
61 |
|
62 class CT_ControlPanelTestStep : public CTestStep |
|
63 { |
|
64 public: |
|
65 CT_ControlPanelTestStep(); |
|
66 ~CT_ControlPanelTestStep(); |
|
67 virtual TVerdict doTestStepPreambleL(); |
|
68 virtual TVerdict doTestStepPostambleL(); |
|
69 virtual TVerdict doTestStepL(); |
|
70 void DoStepTests(); |
|
71 void DoStepTestsInCallbackL(); |
|
72 void testControlsL(); |
|
73 void loadDllL(); |
|
74 void RemoveFilesFromCDrive(); |
|
75 TInt ControlIndexInList(CApaSystemControlList* aList, TBool aIsNewPath); |
|
76 void testControls1L(); |
|
77 void testControls2L(); |
|
78 void testControls3L(); |
|
79 private: |
|
80 RFs iFs; |
|
81 CApaSystemControlList* iControlList; |
|
82 CApaSystemControl* iControl; |
|
83 TInt iControlCount; |
|
84 TInt iControlCount1; |
|
85 TInt iControlCount2; |
|
86 TInt iControlCount3; |
|
87 TInt iIndex; |
|
88 RSmlTestUtils iTestServ; |
|
89 }; |
|
90 |
|
91 |
|
92 class CT_ControlPanelTestCallBack : public CBase |
|
93 { |
|
94 public: |
|
95 CT_ControlPanelTestCallBack(CT_ControlPanelTestStep* aTestStep); |
|
96 ~CT_ControlPanelTestCallBack(); |
|
97 static TInt CallBack(TAny* /*aThis*/); |
|
98 CT_ControlPanelTestStep* iTestStep; |
|
99 |
|
100 private: |
|
101 }; |
|
102 |
|
103 #endif |
|
104 |
|
105 |