installationservices/swcomponentregistry/test/tscr/inc/componentquerysteps.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
       
     2 * Copyright (c) 2008-2010 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 the License "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 * Defines the basic test step for the Software Component Registry test harness
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file 
       
    22  @internalComponent
       
    23  @test
       
    24 */
       
    25 
       
    26 #ifndef COMPONENTQUERYSTEPS_H
       
    27 #define COMPONENTQUERYSTEPS_H
       
    28 
       
    29 #include "tscrstep.h"
       
    30 
       
    31 class CScrTestServer;
       
    32 
       
    33 _LIT(KScrGetComponentStep, "SCRGetComponent");
       
    34 _LIT(KScrGetComponentLocalizedStep, "SCRGetComponentLocalizedInfo");
       
    35 _LIT(KScrGetFilePropertiesStep, "SCRGetFileProperties");
       
    36 _LIT(KScrGetFilePropertyStep, "SCRGetFileProperty");
       
    37 _LIT(KScrGetFileComponentsStep, "SCRGetFileComponents");
       
    38 _LIT(KScrGetComponentPropertyStep, "SCRGetComponentProperty");
       
    39 _LIT(KScrGetComponentPropertiesStep, "SCRGetComponentProperties");
       
    40 _LIT(KScrGetComponentIdsStep, "SCRGetComponentIds");
       
    41 _LIT(KScrGetComponentFilesCountStep, "SCRGetComponentFilesCount");
       
    42 _LIT(KScrGetComponentWithGlobalIdStep, "SCRGetComponentWithGlobalId");
       
    43 _LIT(KScrGetComponentIdStep, "SCRGetComponentId");
       
    44 _LIT(KScrGetGlobalIdList, "SCRGetGlobalIdList");
       
    45 _LIT(KScrValuesNegativeStep, "SCRValuesNegative");
       
    46 _LIT(KScrOutOfMemoryStep, "SCROutOfMemory");
       
    47 
       
    48 class CScrGetComponentStep : public CScrTestStep
       
    49 /**
       
    50  	TEF test step which exercises the SCR GetComponent interface
       
    51  */
       
    52 	{
       
    53 public:
       
    54 	CScrGetComponentStep(CScrTestServer& aParent);
       
    55 	
       
    56 protected:
       
    57 	// From CScrTestStep
       
    58 	void ImplTestStepPreambleL();
       
    59 	void ImplTestStepL();
       
    60 	void ImplTestStepPostambleL();
       
    61 	};
       
    62 
       
    63 class CScrGetComponentLocalizedStep : public CScrTestStep
       
    64 /**
       
    65     TEF test step which exercises the SCR GetComponentLocalized interface
       
    66  */
       
    67     {
       
    68 public:
       
    69     CScrGetComponentLocalizedStep(CScrTestServer& aParent);
       
    70     
       
    71 protected:
       
    72     // From CScrTestStep
       
    73     void ImplTestStepPreambleL();
       
    74     void ImplTestStepL();
       
    75     void ImplTestStepPostambleL();
       
    76     };
       
    77 
       
    78 class CScrGetFilePropertiesStep : public CScrTestStep
       
    79 /**
       
    80  	TEF test step which exercises the SCR GetFileProperties interface
       
    81  */
       
    82 	{
       
    83 public:
       
    84 	CScrGetFilePropertiesStep(CScrTestServer& aParent);
       
    85 	
       
    86 protected:
       
    87 	// From CScrTestStep
       
    88 	void ImplTestStepPreambleL();
       
    89 	void ImplTestStepL();
       
    90 	void ImplTestStepPostambleL();		
       
    91 	};
       
    92 
       
    93 class CScrGetFilePropertyStep : public CScrTestStep
       
    94 /**
       
    95  	TEF test step which exercises the SCR GetFileProperties interface
       
    96  */
       
    97 	{
       
    98 public:
       
    99 	CScrGetFilePropertyStep(CScrTestServer& aParent);
       
   100 	
       
   101 protected:
       
   102 	// From CScrTestStep
       
   103 	void ImplTestStepPreambleL();
       
   104 	void ImplTestStepL();
       
   105 	void ImplTestStepPostambleL();		
       
   106 	};
       
   107 		
       
   108 class CScrGetFileComponentsStep : public CScrTestStep
       
   109 /**
       
   110  	TEF test step which exercises the SCR GetFileComponents interface
       
   111  */
       
   112 	{
       
   113 public:
       
   114 	CScrGetFileComponentsStep(CScrTestServer& aParent);
       
   115 	
       
   116 protected:
       
   117 	// From CScrTestStep
       
   118 	void ImplTestStepPreambleL();
       
   119 	void ImplTestStepL();
       
   120 	void ImplTestStepPostambleL();		
       
   121 	};
       
   122 
       
   123 class CScrGetComponentPropertyStep : public CScrTestStep
       
   124 /**
       
   125  	TEF test step which exercises the SCR GetComponentPropertyL interface
       
   126  */
       
   127 	{
       
   128 public:
       
   129 	CScrGetComponentPropertyStep(CScrTestServer& aParent);
       
   130 	
       
   131 protected:
       
   132 	// From CScrTestStep
       
   133 	void ImplTestStepPreambleL();
       
   134 	void ImplTestStepL();
       
   135 	void ImplTestStepPostambleL();		
       
   136 	};
       
   137 
       
   138 class CScrGetComponentPropertiesStep : public CScrTestStep
       
   139 /**
       
   140  	TEF test step which exercises the SCR GetComponentProperties interface
       
   141  */
       
   142 	{
       
   143 public:
       
   144 	CScrGetComponentPropertiesStep(CScrTestServer& aParent);
       
   145 	
       
   146 protected:
       
   147 	// From CScrTestStep
       
   148 	void ImplTestStepPreambleL();
       
   149 	void ImplTestStepL();
       
   150 	void ImplTestStepPostambleL();		
       
   151 	};
       
   152 
       
   153 class CScrGetComponentIdsStep : public CScrTestStep
       
   154 /**
       
   155  	TEF test step which exercises the SCR GetComponentIdsL interface
       
   156  */
       
   157 	{
       
   158 public:
       
   159 	CScrGetComponentIdsStep(CScrTestServer& aParent);
       
   160 	
       
   161 protected:
       
   162 	// From CScrTestStep
       
   163 	void ImplTestStepPreambleL();
       
   164 	void ImplTestStepL();
       
   165 	void ImplTestStepPostambleL();
       
   166 	};
       
   167 
       
   168 class CScrGetComponentFilesCountStep : public CScrTestStep
       
   169 /**
       
   170  	TEF test step which exercises the SCR GetComponentFilesCountL interface
       
   171  */
       
   172 	{
       
   173 public:
       
   174 	CScrGetComponentFilesCountStep(CScrTestServer& aParent);
       
   175 	
       
   176 protected:
       
   177 	// From CScrTestStep
       
   178 	void ImplTestStepPreambleL();
       
   179 	void ImplTestStepL();
       
   180 	void ImplTestStepPostambleL();
       
   181 	};
       
   182 
       
   183 class CScrGetComponentWithGlobalIdStep : public CScrTestStep
       
   184 /**
       
   185  	TEF test step which exercises the SCR GetComponentL interface
       
   186  */
       
   187 	{
       
   188 public:
       
   189 	CScrGetComponentWithGlobalIdStep(CScrTestServer& aParent);
       
   190 	
       
   191 protected:
       
   192 	// From CScrTestStep
       
   193 	void ImplTestStepPreambleL();
       
   194 	void ImplTestStepL();
       
   195 	void ImplTestStepPostambleL();
       
   196 	};
       
   197 
       
   198 class CScrGetComponentIdStep : public CScrTestStep
       
   199 /**
       
   200  	TEF test step which exercises the SCR GetComponentIdL interface
       
   201  */
       
   202 	{
       
   203 public:
       
   204 	CScrGetComponentIdStep(CScrTestServer& aParent);
       
   205 	
       
   206 protected:
       
   207 	// From CScrTestStep
       
   208 	void ImplTestStepPreambleL();
       
   209 	void ImplTestStepL();
       
   210 	void ImplTestStepPostambleL();
       
   211 	};
       
   212 
       
   213 class CScrGetGlobalIdListStep : public CScrTestStep
       
   214 /**
       
   215  	TEF test step which exercises the SCR GetSupplierComponentsL and GetDependantComponentsL interfaces
       
   216  */
       
   217 	{
       
   218 public:
       
   219 	CScrGetGlobalIdListStep(CScrTestServer& aParent);
       
   220 	
       
   221 protected:
       
   222 	// From CScrTestStep
       
   223 	void ImplTestStepPreambleL();
       
   224 	void ImplTestStepL();
       
   225 	void ImplTestStepPostambleL();
       
   226 	};
       
   227 
       
   228 class CScrValuesNegativeStep : public CScrTestStep
       
   229 /**
       
   230  	TEF test step which checks boundaries for values in SCR.
       
   231  */
       
   232 	{
       
   233 public:
       
   234 	CScrValuesNegativeStep(CScrTestServer& aParent);
       
   235 			
       
   236 protected:
       
   237 	// From CScrTestStep
       
   238 	void ImplTestStepPreambleL();
       
   239 	void ImplTestStepL();
       
   240 	void ImplTestStepPostambleL();			
       
   241 	};	
       
   242 
       
   243 class SCROufOfMemory : public CScrTestStep
       
   244 /**
       
   245  	TEF test step which checks OOM conditions in SCR.
       
   246  */
       
   247 	{
       
   248 public:
       
   249 	SCROufOfMemory(CScrTestServer& aParent);
       
   250 	SCROufOfMemory();
       
   251 			
       
   252 protected:
       
   253 	// From CScrTestStep
       
   254 	void ImplTestStepPreambleL();
       
   255 	void ImplTestStepL();
       
   256 	void ImplTestStepPostambleL();
       
   257 	
       
   258 private:
       
   259 	void ExecuteL();
       
   260 	void ApplicationRegistrationOperationsL(Usif::RSoftwareComponentRegistry& scrSession);
       
   261 	TInt iFailRate;	
       
   262 	};	
       
   263 
       
   264 #endif //COMPONENTQUERYSTEPS_H