|
1 /* |
|
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 */ |
|
24 #ifndef __TSISREGISTRYSTEP_H__ |
|
25 #define __TSISREGISTRYSTEP_H__ |
|
26 |
|
27 #include <test/testexecutestepbase.h> |
|
28 |
|
29 // Step names |
|
30 _LIT(KInstalledUids, "InstalledUids"); |
|
31 _LIT(KInstalledPackages, "InstalledPackages"); |
|
32 _LIT(KRemovablePackages, "RemovablePackages"); |
|
33 _LIT(KInRomNonRemovablePackages, "InRomNonRemovablePackages"); |
|
34 _LIT(KInstalledDrives, "InstalledDrives"); |
|
35 _LIT(KIsUidInstalled, "IsUidInstalled"); |
|
36 _LIT(KIsPackageInstalled, "IsPackageInstalled"); |
|
37 _LIT(KIsControllerInstalled, "IsControllerInstalled"); |
|
38 _LIT(KGetControllers, "GetControllers"); |
|
39 _LIT(KEntryUidOpenClose, "EntryUidOpenClose"); |
|
40 _LIT(KEntryNameOpenClose, "EntryNameOpenClose"); |
|
41 _LIT(KEntryPackageOpenClose, "EntryPackageOpenClose"); |
|
42 _LIT(KEntryMethods, "EntryMethods"); |
|
43 _LIT(KWritableEntryMethods, "WritableEntryMethods"); |
|
44 _LIT(KPoliceSids,"PoliceSids"); |
|
45 _LIT(KEntrySids, "EntrySids"); |
|
46 _LIT(KEntryDelete, "EntryDelete"); |
|
47 _LIT(KBackupRegistry, "BackupRegistry"); |
|
48 _LIT(KCreateTestRegistry, "CreateTestRegistry"); |
|
49 _LIT(KSaveGeneratedRegistry, "SaveGeneratedRegistry"); |
|
50 _LIT(KDeleteRegistry, "DeleteRegistry"); |
|
51 _LIT(KRestoreRegistry, "RestoreRegistry"); |
|
52 _LIT(KSidFileName, "SidToFileName"); |
|
53 _LIT(KModifiableFile, "ModifiableFile"); |
|
54 _LIT(KFileHash, "FileHash"); |
|
55 _LIT(KIsSidPresentStep, "IsSidPresent"); |
|
56 _LIT(KIsPackagePresentStep, "IsPackagePresent"); |
|
57 _LIT(KIntegrityCheckStep, "IntegrityCheck"); |
|
58 _LIT(KDateAndTimeIntegrityCheckStep, "DateAndTimeIntegrityCheck"); |
|
59 _LIT(KLoggingFileInfo, "LoggingFileInfo"); |
|
60 _LIT(KRomStubPerformanceStep, "RomStubPerformanceCheck"); |
|
61 _LIT(KCorruptCacheStep, "CorruptCacheStep"); |
|
62 _LIT(KCorruptCacheRecoverStep, "CorruptCacheRecoverStep"); |
|
63 _LIT(KEmbeddingPackageStep, "EmbeddingPackageStep"); |
|
64 _LIT(KChangeLocale, "ChangeLocale"); |
|
65 |
|
66 // Base class for all steps |
|
67 class CSisRegistryTestStepBase : public CTestStep |
|
68 { |
|
69 protected: |
|
70 // Extension of config parser to allow you to get array of descriptors |
|
71 void GetStringArrayFromConfigL(const TDesC& aSectName, const TDesC& aKeyName, RArray<TPtrC>& aArray); |
|
72 TBool GetUidFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TUid& aUid); |
|
73 void GetUidArrayFromConfigL(const TDesC& aSectName, const TDesC& aKeyName, RArray<TUid>& aArray); |
|
74 void GetIntArrayFromConfigL(const TDesC& aSectName, const TDesC& aKeyName, RArray<TInt>& aArray); |
|
75 }; |
|
76 |
|
77 // Backup Registry Step |
|
78 class CBackupRegistryStep : public CSisRegistryTestStepBase |
|
79 { |
|
80 public: |
|
81 CBackupRegistryStep(); |
|
82 virtual TVerdict doTestStepL(); |
|
83 }; |
|
84 |
|
85 // Create Test Registry Step |
|
86 class CCreateTestRegistryStep : public CSisRegistryTestStepBase |
|
87 { |
|
88 public: |
|
89 CCreateTestRegistryStep(); |
|
90 virtual TVerdict doTestStepL(); |
|
91 }; |
|
92 |
|
93 // Delete Registry Step |
|
94 class CDeleteRegistryStep : public CSisRegistryTestStepBase |
|
95 { |
|
96 public: |
|
97 CDeleteRegistryStep(); |
|
98 virtual TVerdict doTestStepL(); |
|
99 }; |
|
100 |
|
101 // Restore Registry Step |
|
102 class CRestoreRegistryStep : public CSisRegistryTestStepBase |
|
103 { |
|
104 public: |
|
105 CRestoreRegistryStep(); |
|
106 virtual TVerdict doTestStepL(); |
|
107 }; |
|
108 |
|
109 // Save Registry Step |
|
110 class CSaveRegistryStep : public CSisRegistryTestStepBase |
|
111 { |
|
112 public: |
|
113 CSaveRegistryStep(); |
|
114 virtual TVerdict doTestStepL(); |
|
115 }; |
|
116 |
|
117 |
|
118 #endif |
|
119 |