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