|
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_rapalssessionstep.h |
|
15 // |
|
16 |
|
17 /** |
|
18 @file t_rapalssessionstep.h |
|
19 @test |
|
20 @internalComponent - Internal Symbian test code |
|
21 */ |
|
22 |
|
23 #if (!defined __T_RAPALSSESSION_STEP_H__) |
|
24 #define __T_RAPALSSESSION_STEP_H__ |
|
25 |
|
26 _LIT(KT_RApaLsSessionStep,"T_RApaLsSession"); |
|
27 |
|
28 #include "apparctestserver.h" |
|
29 |
|
30 #include <coecntrl.h> |
|
31 #include <coeccntx.h> |
|
32 #include <coemain.h> |
|
33 #include <coeview.h> |
|
34 #include <techview/eikdialg.h> |
|
35 #include <eikdoc.h> |
|
36 #include <eikapp.h> |
|
37 #include <eiksrvc.h> |
|
38 #include <techview/eikconso.h> |
|
39 #include <eikenv.h> |
|
40 |
|
41 #include <apaid.h> |
|
42 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
43 #include <apaidpartner.h> |
|
44 #include <apgicnflpartner.h> |
|
45 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
46 #include "../apparc/apadll.h" |
|
47 #include <apgaplst.h> |
|
48 #include <apgicnfl.h> |
|
49 #include <apgdoor.h> |
|
50 #include <apfrec.h> |
|
51 #include <apfctlf.h> |
|
52 #include <apgctl.h> |
|
53 #include <apgaplst.h> |
|
54 #include <apaflrec.h> |
|
55 #include "testableapalssession.h" |
|
56 #include <apacmdln.h> |
|
57 #include <datastor.h> |
|
58 #include "appfwk_test_appui.h" |
|
59 #include "TAppEmbedUids.h" |
|
60 #include "appfwk_test_utils.h" |
|
61 |
|
62 |
|
63 class CT_RApaLsSessionTestStep : public CTestStep |
|
64 { |
|
65 public: |
|
66 CT_RApaLsSessionTestStep(); |
|
67 ~CT_RApaLsSessionTestStep(); |
|
68 virtual TVerdict doTestStepPreambleL(); |
|
69 virtual TVerdict doTestStepPostambleL(); |
|
70 virtual TVerdict doTestStepL(); |
|
71 void RunTestCases(); |
|
72 |
|
73 private: |
|
74 void ConstructL(); |
|
75 void setup(); |
|
76 void RunTestCasesL(); |
|
77 void TestAppListInvalidSetupL(); |
|
78 TBool ComparePaths(const TDesC& aFilename, const TDesC& aPath); |
|
79 |
|
80 void TestAppListInvalidL(); |
|
81 |
|
82 void IconLoadingTestCasesL(); |
|
83 void TestServerIconLoadingBySizeSetupL(); |
|
84 void TestServerIconSizeCountL(CArrayFixFlat<TSize>& aTestIconSizeArray); |
|
85 void TestServerIconLoadingBySize1L(CArrayFixFlat<TSize>& aTestIconSizeArray); |
|
86 void TestServerIconLoadingBySize2L(CArrayFixFlat<TSize>& aTestIconSizeArray); |
|
87 void TestServerIconLoadingBySize3L(CArrayFixFlat<TSize>& aTestIconSizeArray); |
|
88 |
|
89 void AppInfoTestCasesL(); |
|
90 void TestGetAppCapabilityL(); |
|
91 void TestRecognizeSpecificData(); |
|
92 void TestSetGetAcceptedConfidenceL(); |
|
93 void TestSetGetMaxDataBufSizeL(); |
|
94 void TestGetSupportedDataTypesL(); |
|
95 void TestGetAppIconL(); |
|
96 void TestGetAppIcon1L(); |
|
97 void TestGetAppIcon2L(); |
|
98 void TestGetAppIconForMBMIconsL(); |
|
99 void TestGetAppIconForSVGIconsL(); |
|
100 |
|
101 void TestGetAppViewsL(); |
|
102 void TestGetAppViewsFailureL(); |
|
103 |
|
104 void TestAppListInfoDataInterrogationSetupL(); |
|
105 void TestAppInfo1(); |
|
106 void TestAppInfo2(); |
|
107 void TestAppInfo3(); |
|
108 void TestAppInfo4(); |
|
109 |
|
110 void TestAppListRecognizeDataL(); |
|
111 void TestAppListRecognizeDataBufferOnlyL(); |
|
112 void TestAppListRecognizeDataPassedByBufferL(); |
|
113 void TestAppListInstallationL(); |
|
114 void TestAppListInstallation1L(); |
|
115 void TestAppFolderNonRomDrivesL(); |
|
116 void TestZeroSizedIconFileL(); |
|
117 |
|
118 void EmbeddedAppsTestCases(); |
|
119 void DoGetAllApps(); |
|
120 void DoGetEmbeddableApps(); |
|
121 void DoEmbeddableAppCount(); |
|
122 void DoGetAppCapability(); |
|
123 void DoGetFilteredApps1(); |
|
124 void DoGetFilteredApps2(); |
|
125 void DoGetFilteredApps3(); |
|
126 void DoGetFilteredApps4(); |
|
127 void DoGetFilteredApps5(); |
|
128 void DoGetFilteredApps6(); |
|
129 void DoTestEmbeddabilityFilter1(); |
|
130 void DoTestEmbeddabilityFilter2(); |
|
131 void DoTestEmbeddabilityFilter3(); |
|
132 void DoTestEmbeddabilityFilter4(); |
|
133 void DoTestEmbeddabilityFilter5(); |
|
134 void DoNumDefIconsTestL(); |
|
135 void TestMatchesSecurityPolicy(); |
|
136 void TestNotifyOnDataMappingChangeL(); |
|
137 void TestDataPriorityForUnTrustedApps(); |
|
138 void TestDataPriorityForUnTrustedAppsRegFile(); |
|
139 void TestIconLoaderAndIconArrayMemoryLeaksL(); |
|
140 TInt DeleteFileL(RSmlTestUtils &aFs, const TDesC &aFileName); |
|
141 private: |
|
142 RFs iFs; |
|
143 RTestableApaLsSession iLs; |
|
144 }; |
|
145 |
|
146 #endif |
|
147 |
|
148 |
|
149 |
|
150 |