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