|
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 "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 #ifndef T_CENREP_HELPER_H |
|
17 #define T_CENREP_HELPER_H |
|
18 |
|
19 |
|
20 #include <e32def.h> |
|
21 #include <e32cmn.h> |
|
22 #include <f32file.h> |
|
23 #include <centralrepository.h> |
|
24 |
|
25 _LIT(KCPersistsDir, "c:\\private\\10202BE9\\persists\\"); |
|
26 _LIT(KCPersistsFiles, "c:\\private\\10202BE9\\persists\\*.*"); |
|
27 |
|
28 _LIT(KCInstallDir, "c:\\private\\10202BE9\\"); |
|
29 _LIT(KCInstallFiles, "c:\\private\\10202BE9\\*.*"); |
|
30 |
|
31 _LIT(KCRomVersionDir, "c:\\private\\10202BE9\\romversion\\"); |
|
32 _LIT(KCRomVersionFiles, "c:\\private\\10202BE9\\romversion\\*.*"); |
|
33 |
|
34 const TInt KGeneralDelay = 2*1000*1000; |
|
35 |
|
36 _LIT(KTxtFileExt, ".txt"); |
|
37 _LIT(KCreFileExt, ".cre"); |
|
38 |
|
39 class RTest; |
|
40 |
|
41 IMPORT_C void printDirL(const TDesC& aDirName); |
|
42 |
|
43 IMPORT_C TInt KillProcess(const TDesC& aProcessName); |
|
44 |
|
45 IMPORT_C void CleanupCDriveL(TBool aRemoveRomCache = ETrue); |
|
46 IMPORT_C void CleanupFileFromCDriveL(const TUid aRepository); |
|
47 IMPORT_C void CopyTestFilesL(CFileMan& aFm, const TDesC& aSrc, const TDesC& aDest); |
|
48 |
|
49 IMPORT_C void CleanupRepositoryCache(); |
|
50 |
|
51 IMPORT_C void RecordPerformanceTimingL(TUint32 aTime); |
|
52 |
|
53 /** This API is for internal use only and for testing purposes. |
|
54 @internalComponent |
|
55 |
|
56 Retrieves transaction state of the session. |
|
57 */ |
|
58 IMPORT_C TInt TransactionState(CRepository* aRep); |
|
59 |
|
60 /** This API is for internal use only and for testing purposes. |
|
61 @internalComponent |
|
62 |
|
63 Sends EGetSetParameters to server. |
|
64 */ |
|
65 IMPORT_C TInt SetGetParameters(const TIpcArgs& aArgs); |
|
66 |
|
67 #endif // T_CENREP_HELPER_H |