persistentstorage/centralrepository/test/testexecute/BUR/src/Te_centrep_BURSuiteStepBase.h
changeset 0 08ec8eefde2f
child 55 44f437012c90
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 /**
       
     2 * Copyright (c) 2005-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 "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  @file
       
    22 */
       
    23 
       
    24 #if (!defined __TE_CENTREP_BUR_STEP_BASE__)
       
    25 #define __TE_CENTREP_BUR_STEP_BASE__
       
    26 #include <test/testexecutestepbase.h>
       
    27 
       
    28 #include <centralrepository.h>
       
    29 
       
    30 _LIT(KIniNumOfSettings, "NumSettings");
       
    31 _LIT(KIniExpectedGetResult, "ExpectedGetResult");
       
    32 _LIT(KIniExpectedGetValue, "ExpectedGetValue");
       
    33 
       
    34 const TUid KUidBURTestRepository = {0xBACBACBA};
       
    35 const TUid KUidBURTestDefaultRepository = {0xBAC2BAC2};
       
    36 const TUid KUidBURDefTestRepository = {0xBAEBAEBA};
       
    37 
       
    38 const TInt KNumBackupSettings = 18;
       
    39 const TInt KNumDefaultBackupSettings = 3;
       
    40 const TInt KNumNonBackupSettings = 16;
       
    41 const TInt KNumDefBackupSettings = 11;
       
    42 
       
    43 // Original Key with no meta
       
    44 const TUint32 KOrigNoMetaInt = 0x01;
       
    45 const TInt KOrigNoMetaIntValue = 1;
       
    46 
       
    47 // Original Key with metadata 0x00000000
       
    48 const TUint32 KOrigZeroMetaInt = 0x02;
       
    49 const TInt KOrigZeroMetaIntValue = 2;
       
    50 
       
    51 // Original Key with metadata 0x01000000
       
    52 const TUint32 KOrigBackupMetaInt = 0x03;
       
    53 const TInt KOrigBackupMetaIntValue = 3;
       
    54 
       
    55 
       
    56 // Keys used to test behaviour of deleted settings
       
    57 
       
    58 // Original Key with metadata 0x00000000 (no backup)
       
    59 const TUint32 KNoBackupDeleteTestInt = 0x04;
       
    60 const TInt KNoBackupDeleteTestIntValue = 4;
       
    61 const TInt KNoBackupDeleteTestIntModifiedValue = 99;
       
    62 
       
    63 // Original Key with metadata 0x01000000 (backup)
       
    64 const TUint32 KBackupDeleteTestInt = 0x05;
       
    65 const TInt KBackupDeleteTestIntValue = 5;
       
    66 const TInt KBackupDeleteTestIntModifiedValue = 66;
       
    67 
       
    68 // Keys to be backed up
       
    69 
       
    70 const TUint32 KNewBackupInt1 = 0x100;
       
    71 const TInt KIntBackupValue1 = 1234;
       
    72 const TUint32 KNewBackupInt2 = 0x101;
       
    73 const TInt KIntBackupValue2 = 4321;
       
    74 const TUint32 KNewBackupInt3 = 0x102;
       
    75 const TInt KIntBackupValue3= 9999;
       
    76 const TUint32 KNewBackupInt4 = 0x103;
       
    77 const TInt KIntBackupValue4 = 8621;
       
    78 
       
    79 const TUint32 KNewBackupReal1 = 0x110;
       
    80 const TReal KRealBackupValue1 = 1234.5;
       
    81 const TUint32 KNewBackupReal2 = 0x111;
       
    82 const TReal KRealBackupValue2 = 5432.1;
       
    83 const TUint32 KNewBackupReal3 = 0x112;
       
    84 const TReal KRealBackupValue3 = 9999.0;
       
    85 const TUint32 KNewBackupReal4 = 0x113;
       
    86 const TReal KRealBackupValue4 = 7864.23;
       
    87 
       
    88 const TUint32 KNewBackupString81 = 0x120;
       
    89 _LIT8(KString8BackupValue1, "ABCDEF");
       
    90 const TUint32 KNewBackupString82 = 0x121;
       
    91 _LIT8(KString8BackupValue2, "abcdef");
       
    92 const TUint32 KNewBackupString83 = 0x122;
       
    93 _LIT8(KString8BackupValue3, "vwxyz");
       
    94 const TUint32 KNewBackupString84 = 0x123;
       
    95 _LIT8(KString8BackupValue4, "A1B2C3D4");
       
    96 
       
    97 const TUint32 KNewBackupString161 = 0x130;
       
    98 _LIT(KString16BackupValue1, "ghijklmn");
       
    99 const TUint32 KNewBackupString162 = 0x131;
       
   100 _LIT(KString16BackupValue2, "GHIJKLMN");
       
   101 const TUint32 KNewBackupString163 = 0x132;
       
   102 _LIT(KString16BackupValue3, "G1H2I3J4");
       
   103 const TUint32 KNewBackupString164 = 0x133;
       
   104 _LIT(KString16BackupValue4, "STUVWXYZ");
       
   105 
       
   106 const TUint32 KDefaultBackupInt1 = 0x2;
       
   107 const TInt KIntDefaultValue1 = 4;
       
   108 const TUint32 KDefaultBackupString1 = 0x3;
       
   109 _LIT(KString16DefaultValue1, "");
       
   110 const TUint32 KModifyBackupString1 = 0x5;
       
   111 const TUint32 KModifyBackupInt1 = 0x6;
       
   112 
       
   113 // Keys not to be backed up
       
   114 
       
   115 const TUint32 KNewInt1 = 0x201;
       
   116 const TInt KIntValue1 = 567;
       
   117 const TUint32 KNewInt2 = 0x202;
       
   118 const TInt KIntValue2 = 765;
       
   119 const TUint32 KNewInt3 = 0x203;
       
   120 const TInt KIntValue3= 555;
       
   121 const TUint32 KNewInt4 = 0x204;
       
   122 const TInt KIntValue4 = 777;
       
   123 
       
   124 const TUint32 KNewReal1 = 0x210;
       
   125 const TReal KRealValue1 = 567.8;
       
   126 const TUint32 KNewReal2 = 0x211;
       
   127 const TReal KRealValue2 = 765.4;
       
   128 const TUint32 KNewReal3 = 0x212;
       
   129 const TReal KRealValue3 = 777.0;
       
   130 const TUint32 KNewReal4 = 0x213;
       
   131 const TReal KRealValue4 = 444.23;
       
   132 
       
   133 const TUint32 KNewString81 = 0x220;
       
   134 _LIT8(KString8Value1, "AAAAA");
       
   135 const TUint32 KNewString82 = 0x221;
       
   136 _LIT8(KString8Value2, "BBBBB");
       
   137 const TUint32 KNewString83 = 0x222;
       
   138 _LIT8(KString8Value3, "CCCCC");
       
   139 const TUint32 KNewString84 = 0x223;
       
   140 _LIT8(KString8Value4, "DDD11");
       
   141 
       
   142 const TUint32 KNewString161 = 0x230;
       
   143 _LIT(KString16Value1, "eeeeeee");
       
   144 const TUint32 KNewString162 = 0x231;
       
   145 _LIT(KString16Value2, "FFFFFFF");
       
   146 const TUint32 KNewString163 = 0x232;
       
   147 _LIT(KString16Value3, "GgGgGgG");
       
   148 const TUint32 KNewString164 = 0x233;
       
   149 _LIT(KString16Value4, "hhhhHHH");
       
   150 
       
   151 /////////////////////////////////////////
       
   152 
       
   153 _LIT(KPersistsFiles, 				"c:\\private\\10202BE9\\persists\\*.txt");
       
   154 
       
   155 
       
   156 /////////////////////////////////////////
       
   157 
       
   158 class CTe_centrep_BURSuiteStepBase : public CTestStep
       
   159 	{
       
   160 public:
       
   161 	CTe_centrep_BURSuiteStepBase(){}
       
   162 	};
       
   163 
       
   164 #endif