First public contribution.
1 // Copyright (c) 1996-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
22 #ifndef __TOOMDRAW_H__
23 #define __TOOMDRAW_H__
27 #include "../tlib/testbase.h"
29 #include "TGraphicsHarness.h"
31 #define LOGGING yes //Log only failures
33 #define FULLLOGGING yes
36 class CTestWin : public CTWin
43 class CBaseTestWin : public CTBackedUpWin
47 void Resized(const TSize &aNewSize);
50 class CToomDraw : public CTWsGraphicsBase
53 enum {EMaxOOMState=150};
55 CToomDraw(CTestStep* aStep);
58 void CreateTestWinL();
59 void TriggerOomDrawsL(TInt aCount);
60 TBool CheckWindowsL();
64 virtual void RunTestCaseL(TInt aCurTestCase);
68 CTBlankWindow* iBlankWin;
70 CBaseTestWin *iBaseWin;
78 class CToomDrawStep : public CTGraphicsStep
84 virtual CTGraphicsBase* CreateTestL();
87 _LIT(KToomDrawStep,"TOOMDRAW");