kerneltest/e32test/hcr/d_hcrut.h
changeset 47 46fffbe7b5a7
parent 43 96e5fb8b040d
child 291 206a6eaaeb71
equal deleted inserted replaced
46:0bf4040442f9 47:46fffbe7b5a7
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 // Hardware Configuration Respoitory Tests
    14 // Hardware Configuration Respoitory Tests
    15 //
    15 //
    16 
    16 
    17 #ifndef D_HCR_H
    17 #ifndef D_HCRUT_H
    18 #define D_HCR_H
    18 #define D_HCRUT_H
    19 
    19 
    20 #include <e32cmn.h>
    20 #include <e32cmn.h>
    21 #include <e32ver.h>
    21 #include <e32ver.h>
    22 #include <drivers/hcr.h>
    22 #include <drivers/hcr.h>
    23 
    23 
    29 /**
    29 /**
    30 Interface to the fast-trace memory buffer.
    30 Interface to the fast-trace memory buffer.
    31 */
    31 */
    32 class RHcrTest : public RBusLogicalChannel
    32 class RHcrTest : public RBusLogicalChannel
    33 	{
    33 	{
       
    34 	
    34 public:
    35 public:
    35 		
    36 		
    36 #ifndef __KERNEL_MODE__
    37 #ifndef __KERNEL_MODE__
    37 	inline TInt Open()
    38 	inline TInt Open()
    38 		{
    39 		{
    46 
    47 
    47 	inline TUint Test_SanityTestLargeSettings()
    48 	inline TUint Test_SanityTestLargeSettings()
    48 		{
    49 		{
    49 		return DoControl(ECtrlSanityTestLargeSettings);
    50 		return DoControl(ECtrlSanityTestLargeSettings);
    50 		}
    51 		}
    51 
       
    52 	inline TUint Test_ReleaseSDRs()
       
    53 		{
       
    54 		return DoControl(ECtrlFreePhyscialRam);
       
    55 		}
       
    56 		
    52 		
    57 	inline TUint Test_SwitchRepository()
    53 	inline TUint Test_SwitchRepository()
    58 		{
    54 		{
    59 		return DoControl(ECtrlSwitchRepository);
    55 		return DoControl(ECtrlSwitchRepository);
    60 		}
    56 		}
       
    57 	
       
    58 	inline TUint Test_FindCompiledSettingsInCategory(HCR::TCategoryUid aCatUid,
       
    59 	        TInt32* aFirst, TInt32* aLast)
       
    60 	    {
       
    61 	    TAny* args[3];
       
    62 	    args[0] = (TAny*) aCatUid;
       
    63 	    args[1] = (TAny*) aFirst;
       
    64 	    args[2] = (TAny*) aLast;
       
    65 
       
    66 	    return DoControl(ECtrlCompiledFindSettingsInCategory, (TAny*)args);
       
    67 	    }
       
    68 	
       
    69 	inline TUint Test_FindFileSettingsInCategory(HCR::TCategoryUid aCatUid,
       
    70 	        TInt32* aFirst, TInt32* aLast)
       
    71 	    {
       
    72 	    TAny* args[3];
       
    73 	    args[0] = (TAny*) aCatUid;
       
    74 	    args[1] = (TAny*) aFirst;
       
    75 	    args[2] = (TAny*) aLast;
       
    76 	    
       
    77 	    return DoControl(ECtrlFileFindSettingsInCategory, (TAny*)args);
       
    78 	    }
       
    79 	
       
    80 	inline TUint Test_SwitchFileRepository(const TText* aRepName)
       
    81 	    {
       
    82 	    TAny* args[1];
       
    83 	    args[0] = (TAny*) aRepName;
       
    84 	    return DoControl(ECtrlSwitchFileRepository, (TAny*)args);
       
    85 	    }
    61 		
    86 		
       
    87 
       
    88 	inline TUint Test_CheckIntegrity()
       
    89 		{
       
    90 		return DoControl(ECtrlCheckOverrideReposIntegrity);
       
    91 		}
       
    92 		
       
    93 	inline TUint Test_CheckContent()
       
    94 		{
       
    95 		return DoControl(ECtrlCheckOverrideRepos102400Content);
       
    96 		}
       
    97 
       
    98 	inline TUint Test_NegativeTestsLargeValues(TInt& aExpectedError)
       
    99   		{
       
   100   		TAny* args[1];
       
   101   		args[0] = (TAny*) aExpectedError;
       
   102   		return DoControl(ECtrlNegativeTestsLargeValues, (TAny*) args);
       
   103   		}
       
   104   	inline TUint Test_TRepositoryGetWordValue(HCR::TCategoryUid& aCategory, HCR::TElementId& aKey,TInt& type)
       
   105   		{
       
   106   		TAny* args[3];
       
   107   		args[0] = (TAny*) aCategory;
       
   108   		args[1] = (TAny*) aKey;
       
   109   		args[2] = (TAny*) type;
       
   110   		return DoControl(ECtrlGetWordSetting, (TAny*) args);
       
   111   		}
       
   112 
       
   113 
    62 
   114 
    63 #endif
   115 #endif
    64 
   116 
    65 	inline static const TDesC& Name();
   117 	inline static const TDesC& Name();
    66 
   118 
    76 		ECtrlGetLargeSetting,
   128 		ECtrlGetLargeSetting,
    77 		ECtrlGetManyWordSettings,
   129 		ECtrlGetManyWordSettings,
    78 		ECtrlGetManyLargeSettings,
   130 		ECtrlGetManyLargeSettings,
    79 		
   131 		
    80 		ECtrlSwitchRepository,
   132 		ECtrlSwitchRepository,
       
   133 
       
   134 		ECtrlNegativeTestsLargeValues, 
    81 		
   135 		
    82 		ECtrlFreePhyscialRam
   136 		ECtrlFreePhyscialRam,
       
   137         ECtrlCheckOverrideReposIntegrity,
       
   138 		ECtrlCheckOverrideRepos102400Content,
       
   139 
       
   140 		ECtrlSwitchFileRepository,
       
   141 		ECtrlFileFindSettingsInCategory,
       
   142 		ECtrlCompiledFindSettingsInCategory
    83 		};
   143 		};
    84 		
   144 		
    85 	friend class DHcrTestChannel;
   145 	friend class DHcrTestChannel;
    86 	friend class DHcrTestFactory;
   146 	friend class DHcrTestFactory;
    87 	};
   147 	};
    88 
   148 
    89 inline const TDesC& RHcrTest::Name()
   149 inline const TDesC& RHcrTest::Name()
    90 	{
   150 	{
    91 	_LIT(KTestDriver,"d_hcr");
   151 	_LIT(KTestDriver,"d_hcrut");
    92 	return KTestDriver;
   152 	return KTestDriver;
    93 	}
   153 	}
    94 
   154 
    95 
   155 #endif // D_HCRUT_H
    96 
       
    97 #endif // D_HCR_H