os/graphics/graphicsresourceservices/graphicsresourceimplementation/test/inc/tgraphicsresourceinternalsecondprocesstesthandler.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
#ifndef TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H
sl@0
    16
#define TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H
sl@0
    17
sl@0
    18
#include <e32base.h>
sl@0
    19
#include <sgresource/sgresource.h>
sl@0
    20
#include <sgresource/sgimage.h>
sl@0
    21
#include "tgraphicsresourceinternalextensions.h"
sl@0
    22
#include "tgraphicsresourceinternalsecondprocessenums.h"
sl@0
    23
sl@0
    24
/**
sl@0
    25
Runs individual tests within the second process for the Graphics Resource
sl@0
    26
internal tests.
sl@0
    27
 */
sl@0
    28
class CTSgResInternalSecondProcessTestHandler : public CBase
sl@0
    29
	{
sl@0
    30
public:
sl@0
    31
	static CTSgResInternalSecondProcessTestHandler* NewLC();
sl@0
    32
	TInt RunTestCaseL(const TSgResIntTestInfo& aInfo);
sl@0
    33
	void OpenDriverL();
sl@0
    34
sl@0
    35
private:
sl@0
    36
	CTSgResInternalSecondProcessTestHandler();
sl@0
    37
	~CTSgResInternalSecondProcessTestHandler();
sl@0
    38
sl@0
    39
	//Test functions that initialise the second process to run their tests.
sl@0
    40
	void TestDriverMemoryLeakL();
sl@0
    41
	void TestDriverShutdownMemoryLeakL();
sl@0
    42
	TInt TestDrawableOOM();
sl@0
    43
	TInt TestImageOOM(const TSgResIntTestInfo& aInfo);
sl@0
    44
	void DoImageMemoryTestsL(const TSgResIntTestInfo& aInfo);
sl@0
    45
	void DoDrawableMemoryTestsL();
sl@0
    46
	TInt TestDriverInitializeAndShutdownL();
sl@0
    47
	TInt TestDriverInitializeAndShutdownManyTimes();
sl@0
    48
	TInt TestResourceProfiling(const TSgResIntTestInfo& aInfo);
sl@0
    49
	
sl@0
    50
	void TestOpenImageL(TSgDrawableId aId);
sl@0
    51
sl@0
    52
private:
sl@0
    53
	RSgDriver iSgDriver;
sl@0
    54
	MSgDriver_Test* iTestExt;
sl@0
    55
	MSgDriver_Profiling* iProfExt;
sl@0
    56
	};
sl@0
    57
sl@0
    58
#endif // TGRAPHICSRESOURCEINTERNALSECONDPROCESSTESTHANDLER_H