fontservices/fontstore/tfs/TFntStoreServer.cpp
branchRCL_3
changeset 1 e96e8a131979
parent 0 1fb32624e06b
child 2 6971d1c87c9a
equal deleted inserted replaced
0:1fb32624e06b 1:e96e8a131979
    42 #include "t_linkedfontsmemory.h"
    42 #include "t_linkedfontsmemory.h"
    43 #include "t_linkedfontscomparison.h"
    43 #include "t_linkedfontscomparison.h"
    44 #include "t_linkedfontscapability.h"
    44 #include "t_linkedfontscapability.h"
    45 #include "T_LinkedFontUpdateTests.h"
    45 #include "T_LinkedFontUpdateTests.h"
    46 #include "T_CACHE.H" 
    46 #include "T_CACHE.H" 
       
    47 #include "T_FontSessionCache.h"
    47 
    48 
    48 CTFntStoreServer* CTFntStoreServer::NewL()
    49 CTFntStoreServer* CTFntStoreServer::NewL()
    49 /**
    50 /**
    50    @return - Instance of the test server
    51    @return - Instance of the test server
    51    Same code for Secure and non-secure variants
    52    Same code for Secure and non-secure variants
   120    @return - A CTestStep derived instance
   121    @return - A CTestStep derived instance
   121    Secure and non-secure variants
   122    Secure and non-secure variants
   122    Implementation of CTestServer pure virtual
   123    Implementation of CTestServer pure virtual
   123  */
   124  */
   124 	{
   125 	{
   125 	if(aStepName == KTFntStep)
   126 	if (aStepName == KTFntStep)
   126 		{
   127         {
   127 		return new CTFntStep();
   128         return new CTFntStep();
   128 		}
   129         }
   129 	else if(aStepName == KTCacheStep)
       
   130 	    	{
       
   131 	    	return new CTCacheStep();
       
   132 	    	}
       
   133 	else if(aStepName == KTFntMemStep)
   130 	else if(aStepName == KTFntMemStep)
   134 		{
   131 		{
   135 		return new CTFntMemStep();
   132 		return new CTFntMemStep();
   136 		}
   133 		}
   137 	else if(aStepName == KTFsOpenStep)
   134 	else if(aStepName == KTFsOpenStep)
   186 		{
   183 		{
   187 		return new CTLinkedFonts2Step();
   184 		return new CTLinkedFonts2Step();
   188 		}
   185 		}
   189 	else if (aStepName == KTLinkedFontsMemoryStep)
   186 	else if (aStepName == KTLinkedFontsMemoryStep)
   190 		{
   187 		{
   191 		return new CTLinkedFontsMemoryStep();
   188         return new CTLinkedFontsMemoryStep();
   192 		}
   189         }
   193 	else if (aStepName == KTLinkedFontsComparisonStep)
   190     else if (aStepName == KTLinkedFontsComparisonStep)
   194 		{
   191         {
   195 		return new CTLinkedFontsComparisonStep();
   192         return new CTLinkedFontsComparisonStep();
   196 		}
   193         }
   197 	else if (aStepName == KTLinkedFontsCapabilityStep)
   194     else if (aStepName == KTLinkedFontsCapabilityStep)
   198 		{
   195         {
   199 		return new CTLinkedFontsCapabilityStep();
   196         return new CTLinkedFontsCapabilityStep();
   200 		}
   197         }
   201 		else if (aStepName == KTLinkedFontsUpdateStage1Step)
   198     else if (aStepName == KTLinkedFontsUpdateStage1Step)
   202 		{
   199         {
   203 		return new CTLinkedFontsUpdateStage1Step();
   200         return new CTLinkedFontsUpdateStage1Step();
   204 		}
   201         }
   205 		else if (aStepName == KTLinkedFontsUpdateStage2Step)
   202     else if (aStepName == KTLinkedFontsUpdateStage2Step)
   206 		{
   203         {
   207 		return new CTLinkedFontsUpdateStage2Step();
   204         return new CTLinkedFontsUpdateStage2Step();
   208 		}
   205         }
       
   206     else if (aStepName == KTCacheStep)
       
   207         {
       
   208         return new CTCacheStep();
       
   209         }
       
   210     else if (aStepName == KTFontSessionCacheStep)
       
   211         {
       
   212         return new CTFontSessionCacheStep();
       
   213         }
   209 	RDebug::Printf("Test Step is either mis-spelt or doesn't exist - see CTFntStoreServer::CreateTestStep");
   214 	RDebug::Printf("Test Step is either mis-spelt or doesn't exist - see CTFntStoreServer::CreateTestStep");
   210 	return NULL;
   215 	return NULL;
   211 	}
   216 	}
   212 
   217