graphicsresourceservices/graphicsresourceimplementation/test/src/tgraphicsresourceinternalsecondprocesstesthandler.cpp
branchGCC_SURGE
changeset 125 0fecfaa711d2
parent 111 29ddb8a72f0e
equal deleted inserted replaced
101:8b609b439da2 125:0fecfaa711d2
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    34 /**
    34 /**
    35 Runs the specified test
    35 Runs the specified test
    36 
    36 
    37 @param TInt The test case to be run
    37 @param TInt The test case to be run
    38  */
    38  */
    39 TInt CTSgResInternalSecondProcessTestHandler::RunTestCaseL(TInt aTestCase, TSgResIntTestInfo& aInfo)
    39 TInt CTSgResInternalSecondProcessTestHandler::RunTestCaseL(const TSgResIntTestInfo& aInfo)
    40 	{
    40 	{
    41 	RDebug::Printf("CTSgResSecondProcessTestHandler::RunTestCaseL(%i)", aTestCase);
    41 	RDebug::Printf("CTSgResSecondProcessTestHandler::RunTestCaseL(%i)", aInfo.iTestCase);
    42 	TInt result = 0;
    42 	TInt result = 0;
    43 	switch (aTestCase)
    43 	switch (aInfo.iTestCase)
    44 		{
    44 		{
    45 		case ESgResIntDriverMemoryLeak:
    45 		case ESgResIntDriverMemoryLeak:
    46 			TestDriverMemoryLeakL();
    46 			TestDriverMemoryLeakL();
    47 			break;
    47 			break;
    48 		case ESgResIntDrawableOOM:
    48 		case ESgResIntDrawableOOM:
   371 /**
   371 /**
   372 Test the SgDriver extension MSgDriver_Profiling is reporting the correct local and 
   372 Test the SgDriver extension MSgDriver_Profiling is reporting the correct local and 
   373 global memory usage and resource counts, when another process has created images 
   373 global memory usage and resource counts, when another process has created images 
   374 and then called into this process.
   374 and then called into this process.
   375  */
   375  */
   376 TInt CTSgResInternalSecondProcessTestHandler::TestResourceProfiling(TSgResIntTestInfo& aInfo)
   376 TInt CTSgResInternalSecondProcessTestHandler::TestResourceProfiling(const TSgResIntTestInfo& aInfo)
   377 	{
   377 	{
   378 	__UHEAP_MARK;
   378 	__UHEAP_MARK;
   379 	TInt result = 0;
   379 	TInt result = 0;
   380 	const TSize KImageSize(8, 8);
   380 	const TSize KImageSize(8, 8);
   381 	
   381