|
1 /* |
|
2 * Copyright (c) 2008-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 @file |
|
21 @test |
|
22 */ |
|
23 |
|
24 #include <captestframework/aprcaptestutility.h> |
|
25 #include "scrcomponentspecific.h" |
|
26 #include "scrreaduserdata.h" |
|
27 #include "scrallfiles.h" |
|
28 #include "scrwritedevicedata.h" |
|
29 #include "scrnonrestricted.h" |
|
30 #include "scrfilepathprotection.h" |
|
31 #include "stsfilepathprotection.h" |
|
32 #include "stsrollbackalltest.h" |
|
33 #include "scrpluginmanagement.h" |
|
34 |
|
35 #include <s32file.h> |
|
36 |
|
37 // Factory function |
|
38 MCapabilityTestFactory* CapabilityTestFactoryL() |
|
39 { |
|
40 CDefaultCapabilityTestFactory* factory=new(ELeave) CDefaultCapabilityTestFactory(); |
|
41 |
|
42 factory->AddTestL(CScrComponentSpecificSecTest::NewL()); |
|
43 factory->AddTestL(CScrReadUserDataSecTest::NewL()); |
|
44 factory->AddTestL(CScrNonRestrictedSecTest::NewL()); |
|
45 factory->AddTestL(CScrPrivatePathProtectionSecTest::NewL()); |
|
46 factory->AddTestL(CScrTCBPathProtectionSecTest::NewL()); |
|
47 factory->AddTestL(CScrAllFilesSecTest::NewL()); |
|
48 factory->AddTestL(CScrWriteDeviceDataSecTest::NewL()); |
|
49 factory->AddTestL(CStsTCBPathProtectionSecTest::NewL()); |
|
50 factory->AddTestL(CStsPrivatePathProtectionSecTest::NewL()); |
|
51 factory->AddTestL(CStsPublicPathSecTest::NewL()); |
|
52 factory->AddTestL(CStsRollbackAllSecTest::NewL()); |
|
53 factory->AddTestL(CScrPluginManagementSecTest::NewL()); |
|
54 |
|
55 return factory; |
|
56 } |
|
57 |
|
58 EXPORT_C MCapabilityTestFactory* CapabilityTestFactory() |
|
59 { |
|
60 MCapabilityTestFactory* factory=NULL; |
|
61 TRAP_IGNORE(factory = CapabilityTestFactoryL()); |
|
62 return factory; |
|
63 } |
|
64 |
|
65 |