os/graphics/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalsecondprocesstesthandler.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalsecondprocesstesthandler.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,58 @@
1.4 +// Copyright (c) 2009-2010 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 TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H
1.19 +#define TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H
1.20 +
1.21 +#include <e32base.h>
1.22 +#include <sgresource/sgresource.h>
1.23 +#include <sgresource/sgimage.h>
1.24 +#include "tgraphicsresourceinternalextensions.h"
1.25 +#include "tgraphicsresourceinternalsecondprocessenums.h"
1.26 +
1.27 +/**
1.28 +Runs individual tests within the second process for the Graphics Resource
1.29 +internal tests.
1.30 + */
1.31 +class CTSgResInternalSecondProcessTestHandler : public CBase
1.32 + {
1.33 +public:
1.34 + static CTSgResInternalSecondProcessTestHandler* NewLC();
1.35 + TInt RunTestCaseL(const TSgResIntTestInfo& aInfo);
1.36 + void OpenDriverL();
1.37 +
1.38 +private:
1.39 + CTSgResInternalSecondProcessTestHandler();
1.40 + ~CTSgResInternalSecondProcessTestHandler();
1.41 +
1.42 + //Test functions that initialise the second process to run their tests.
1.43 + void TestDriverMemoryLeakL();
1.44 + void TestDriverShutdownMemoryLeakL();
1.45 + TInt TestDrawableOOM();
1.46 + TInt TestImageOOM(const TSgResIntTestInfo& aInfo);
1.47 + void DoImageMemoryTestsL(const TSgResIntTestInfo& aInfo);
1.48 + void DoDrawableMemoryTestsL();
1.49 + TInt TestDriverInitializeAndShutdownL();
1.50 + TInt TestDriverInitializeAndShutdownManyTimes();
1.51 + TInt TestResourceProfiling(const TSgResIntTestInfo& aInfo);
1.52 +
1.53 + void TestOpenImageL(TSgDrawableId aId);
1.54 +
1.55 +private:
1.56 + RSgDriver iSgDriver;
1.57 + MSgDriver_Test* iTestExt;
1.58 + MSgDriver_Profiling* iProfExt;
1.59 + };
1.60 +
1.61 +#endif // TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H