os/graphics/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalsecondprocessenums.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalsecondprocessenums.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,51 @@
1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +#ifndef TGRAPHICSRESOURCEINTERNALSECONDPROCESSENUMS_H
1.19 +#define TGRAPHICSRESOURCEINTERNALSECONDPROCESSENUMS_H
1.20 +
1.21 +#include <e32base.h>
1.22 +#include <sgresource/sgresource.h>
1.23 +
1.24 +//The name of the executable being used to run the second process tests
1.25 +_LIT(KInternalTestsSecondProcess, "tgraphicsresourceinternalsecondprocess2.exe");
1.26 +
1.27 +//The expected panic type for Memory leaks within Graphics Resource
1.28 +_LIT(KSgAllocPanic, "SGALLOC:????????");
1.29 +
1.30 +/**
1.31 +Enum representing the current test case. Passed to the second process via TSgResInTestInfo.
1.32 +*/
1.33 +enum TSgResInternalTestCase
1.34 + {
1.35 + ESgResIntDriverMemoryLeak,
1.36 + ESgResIntDrawableOOM,
1.37 + ESgResIntImageOOM,
1.38 + ESgResIntInitializeAndShutdown,
1.39 + ESgResIntInitializeAndShutdownManyTimes,
1.40 + ESgResIntResourceProfiling,
1.41 + };
1.42 +
1.43 +/**
1.44 +Container to send the current test case to the second process.
1.45 + */
1.46 +struct TSgResIntTestInfo
1.47 + {
1.48 + TSgResInternalTestCase iTestCase;
1.49 + TInt iGlobalGraphicsMemory;
1.50 + TInt iGlobalResourceCount;
1.51 + TSgDrawableId iDrawableId;
1.52 + };
1.53 +
1.54 +#endif /* TGRAPHICSRESOURCEINTERNALSECONDPROCESSENUMS_H */