imagingandcamerafws/imaginginttest/src/TestStepConversion.cpp
changeset 41 f7bf1ed8db72
parent 29 eb1e5d7cc688
equal deleted inserted replaced
32:ae690a8c4a18 41:f7bf1ed8db72
  2089 
  2089 
  2090 // dummy Hal call for heap balance on target
  2090 // dummy Hal call for heap balance on target
  2091 // Need to do this BEFORE doing any allocation testing !
  2091 // Need to do this BEFORE doing any allocation testing !
  2092 TInt CTestStepConversion::DummyHalCall()
  2092 TInt CTestStepConversion::DummyHalCall()
  2093 	{
  2093 	{
  2094 	TInt err = RFbsSession::Connect();
  2094     TInt err1 = FbsStartup();
  2095 	if (err != KErrNone)
  2095     if (err1 != KErrNone)
  2096 		{
  2096         {
  2097 		INFO_PRINTF2(_L("RFbsSession::Connect() failed, err = %d"), err);
  2097         INFO_PRINTF2(_L("FbsStartup failed, err = %d"), err1);
  2098 		return err;
  2098         return EInconclusive;
  2099 		}
  2099         }
       
  2100 
       
  2101     err1 = RFbsSession::Connect();
       
  2102     if (err1 != KErrNone)
       
  2103         {
       
  2104         INFO_PRINTF2(_L("RFbsSession::Connect() failed, err = %d"), err1);
       
  2105         return EInconclusive;
       
  2106         }
  2100 		
  2107 		
  2101 	TInt displayMode = EColor256;
  2108 	TInt displayMode = EColor256;
  2102 	CFbsScreenDevice* screenDevice = NULL;	
  2109 	CFbsScreenDevice* screenDevice = NULL;	
       
  2110 	TInt err;
  2103 	while(displayMode < EColorLast) 
  2111 	while(displayMode < EColorLast) 
  2104 		{
  2112 		{
  2105 		TRAP(err, screenDevice = CFbsScreenDevice::NewL(_L("NotUsed"),(TDisplayMode)displayMode));
  2113 		TRAP(err, screenDevice = CFbsScreenDevice::NewL(_L("NotUsed"),(TDisplayMode)displayMode));
  2106 		delete screenDevice;
  2114 		delete screenDevice;
  2107 		screenDevice = NULL;	
  2115 		screenDevice = NULL;