|
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 the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent - Internal Symbian test code |
|
21 */ |
|
22 |
|
23 //#if (!defined __T_CONTROLPANEL_STEP_H) |
|
24 //#define __T_CONTROLPANEL_STEP_H |
|
25 |
|
26 #ifndef __T_CONTROLPANEL_STEP_H |
|
27 #define __T_CONTROLPANEL_STEP_H |
|
28 |
|
29 #include "ApparcTestServer.h" |
|
30 |
|
31 #include <apaid.h> |
|
32 #include "..\apparc\apadll.h" |
|
33 #include <apgaplst.h> |
|
34 #include <apgicnfl.h> |
|
35 #include <apgdoor.h> |
|
36 #include <apfrec.h> |
|
37 #include <apfctlf.h> |
|
38 #include <apgctl.h> |
|
39 #include <apgaplst.h> |
|
40 #include <apaflrec.h> |
|
41 #include <apgcli.h> |
|
42 #include <apacmdln.h> |
|
43 #include <apsserv.h> |
|
44 #include "appfwk_test_utils.h" |
|
45 #include "..\apserv\apsclsv.h" // so I can start the server |
|
46 |
|
47 |
|
48 _LIT(KT_ControlPanelTest, "T_ControlPanelTest"); |
|
49 |
|
50 //! A CT_ControlPanelTestStep test class. |
|
51 /*! |
|
52 Tests Application Apparc base classes and utility functions.\n |
|
53 */ |
|
54 |
|
55 class CT_ControlPanelTestStep : public CTestStep |
|
56 { |
|
57 public: |
|
58 CT_ControlPanelTestStep(); |
|
59 ~CT_ControlPanelTestStep(); |
|
60 virtual TVerdict doTestStepPreambleL(); |
|
61 virtual TVerdict doTestStepPostambleL(); |
|
62 virtual TVerdict doTestStepL(); |
|
63 void DoStepTests(); |
|
64 void DoStepTestsInCallbackL(); |
|
65 void testControlsL(); |
|
66 void loadDllL(); |
|
67 void RemoveFilesFromCDrive(); |
|
68 TInt ControlIndexInList(CApaSystemControlList* aList, TBool aIsNewPath); |
|
69 void testControls1L(); |
|
70 void testControls2L(); |
|
71 void testControls3L(); |
|
72 private: |
|
73 RFs iFs; |
|
74 CApaSystemControlList* iControlList; |
|
75 CApaSystemControl* iControl; |
|
76 TInt iControlCount; |
|
77 TInt iControlCount1; |
|
78 TInt iControlCount2; |
|
79 TInt iControlCount3; |
|
80 TInt iIndex; |
|
81 RSmlTestUtils iTestServ; |
|
82 }; |
|
83 |
|
84 |
|
85 class CT_ControlPanelTestCallBack : public CBase |
|
86 { |
|
87 public: |
|
88 CT_ControlPanelTestCallBack(CT_ControlPanelTestStep* aTestStep); |
|
89 ~CT_ControlPanelTestCallBack(); |
|
90 static TInt CallBack(TAny* /*aThis*/); |
|
91 CT_ControlPanelTestStep* iTestStep; |
|
92 |
|
93 private: |
|
94 }; |
|
95 |
|
96 #endif |