|
1 // Copyright (c) 2006-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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent - Internal Symbian test code |
|
19 */ |
|
20 |
|
21 #ifndef __T_FILE3_STEP_H__ |
|
22 #define __T_FILE3_STEP_H__ |
|
23 |
|
24 #include "apparctestserver.h" |
|
25 |
|
26 #include "testableapalssession.h" |
|
27 #include <ecom/ecom.h> |
|
28 #include "appfwk_test_utils.h" |
|
29 |
|
30 class CTestSidChecker; |
|
31 |
|
32 //! A CT_File3Step test class. |
|
33 |
|
34 /** Test the CAppSidChecker Interface. */ |
|
35 |
|
36 class CT_File3Step : public CTestStep |
|
37 { |
|
38 public: |
|
39 CT_File3Step(); |
|
40 ~CT_File3Step(); |
|
41 virtual TVerdict doTestStepPreambleL(); |
|
42 virtual TVerdict doTestStepPostambleL(); |
|
43 virtual TVerdict doTestStepL(); |
|
44 void TestAppPresenceL(); |
|
45 void TestRescanCallBackL(); |
|
46 void TestForceRegistrationL(); |
|
47 void TestCorruptedRegFileL(); |
|
48 void TestMultipleRegistrationFilesForSameAppL(); |
|
49 private: |
|
50 void PrepareRegFileL(const TUid& aUid, const TDesC& aRscFile, const TDesC& aLogicalExecutable); |
|
51 void CleanupRegFilesL(); |
|
52 void FindRemovableDriveAndSetPathL(); |
|
53 private: |
|
54 RTestableApaLsSession iSession; |
|
55 REComSession iEComSession; |
|
56 CTestSidChecker* iTestSidChecker; |
|
57 RSmlTestUtils iUtils; |
|
58 TBuf<128> iCallBackAppRsc; |
|
59 TBuf<64> iCallBackAppIst; |
|
60 TBuf<128> iBadAppRsc; |
|
61 TBuf<64> iBadAppIst; |
|
62 TBuf<128> iGoodAppRsc; |
|
63 TBuf<64> iGoodAppIst; |
|
64 TBuf<128> iForcedAppRsc; |
|
65 TBuf<64> iForcedAppIst; |
|
66 TBuf<128> iTriggerRescanRsc; |
|
67 TBuf<64> iTriggerRescanIst; |
|
68 TBuf<64> iMmcPrivateDir; |
|
69 TBuf<128> iAppRsc1; |
|
70 TBuf<128> iAppRsc2; |
|
71 TBuf<128> iAppRsc3; |
|
72 TBuf<128> iAppIst; |
|
73 TDriveUnit iDrive; |
|
74 }; |
|
75 |
|
76 _LIT(KT_File3Step,"T_File3"); |
|
77 #endif |
|
78 |