graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalsecondprocessenums.h
changeset 36 01a6848ebfd7
equal deleted inserted replaced
0:5d03bc08d59c 36:01a6848ebfd7
       
     1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 #ifndef TGRAPHICSRESOURCEINTERNALSECONDPROCESSENUMS_H
       
    16 #define TGRAPHICSRESOURCEINTERNALSECONDPROCESSENUMS_H
       
    17 
       
    18 #include <e32base.h>
       
    19 #include <sgresource/sgresource.h>
       
    20 
       
    21 //The name of the executable being used to run the second process tests
       
    22 _LIT(KInternalTestsSecondProcess, "tgraphicsresourceinternalsecondprocess2.exe");
       
    23 
       
    24 //The expected panic type for Memory leaks within Graphics Resource
       
    25 _LIT(KSgAllocPanic, "SGALLOC:????????");
       
    26 
       
    27 /**
       
    28 Enum representing the current test case. Passed to the second process via TSgResInTestInfo.
       
    29 */
       
    30 enum TSgResInternalTestCase
       
    31 	{
       
    32 	ESgResIntDriverMemoryLeak,
       
    33 	ESgResIntDrawableOOM,
       
    34 	ESgResIntImageOOM,
       
    35 	ESgResIntInitializeAndShutdown,
       
    36 	ESgResIntInitializeAndShutdownManyTimes,
       
    37 	ESgResIntResourceProfiling,
       
    38 	};
       
    39 
       
    40 /**
       
    41 Container to send the current test case to the second process.
       
    42  */
       
    43 struct TSgResIntTestInfo
       
    44 	{
       
    45 	TSgResInternalTestCase iTestCase;
       
    46 	TInt iGlobalGraphicsMemory;
       
    47 	TInt iGlobalResourceCount;
       
    48 	TSgDrawableId iDrawableId;
       
    49 	};
       
    50 
       
    51 #endif /* TGRAPHICSRESOURCEINTERNALSECONDPROCESSENUMS_H */