os/graphics/windowing/windowserver/test/tauto/TBACKUPW.H
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 
     2 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // All rights reserved.
     4 // This component and the accompanying materials are made available
     5 // under the terms of "Eclipse Public License v1.0"
     6 // which accompanies this distribution, and is available
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 //
     9 // Initial Contributors:
    10 // Nokia Corporation - initial contribution.
    11 //
    12 // Contributors:
    13 //
    14 // Description:
    15 //
    16 
    17 /**
    18  @file
    19  @test
    20  @internalComponent - Internal Symbian test code
    21 */
    22 
    23 #ifndef __TBACKUPW_H__
    24 #define __TBACKUPW_H__
    25 
    26 #include <e32std.h>
    27 #include <w32std.h>
    28 #include "../tlib/testbase.h"
    29 #include <bitstd.h>
    30 #include "AUTO.H"
    31 #include "TGraphicsHarness.h"
    32 
    33 const TInt KLastSubtest = 13;
    34 
    35 class CTBackedUpWindow : public CTWsGraphicsBase
    36 	{
    37 public:
    38 	CTBackedUpWindow(CTestStep* aStep);
    39 	~CTBackedUpWindow();
    40 	void DoTestL();
    41 	void DoSubTestL(TInt iState);
    42 	void CheckWindow();
    43 	void CheckWindow(CFbsBitmap *aBitmap);
    44 	void Draw(TInt aDrawFunc, TAny *aParam);
    45 	void Draw(TInt aDrawFunc, TAny *aParam, CBitmapContext *aGc1, CBitmapContext *aGc2);
    46 	void DrawWithTwoGcsL();
    47 	void ConstructL();
    48 	void InvisVis();
    49 	void WindowOnTop();
    50 	void Resize();
    51 	void ChildWindows();
    52 	void DupBitmapTestL();
    53 	void UpdateBitmapTestL();
    54 	void OOML();
    55 	void TestPanicsL();
    56 	void doGraphicFunctionsL(CBitmapContext *gc,TBool aExtraDrawBitMap);
    57 	void AllGraphicFunctionsL(RBlankWindow &aBlank,TBool aExtraDrawBitMap=ETrue);
    58 	void AllGraphicFunctionsTestsL();
    59 protected:
    60 //from 	CTGraphicsStep
    61 	virtual void RunTestCaseL(TInt aCurTestCase);
    62 private:
    63 	TInt iSupState;
    64 	TSize iSize;
    65 	TPoint iCheckPos;
    66 	TPoint iWinPos;
    67 	RWindow iCheckWindow;
    68 	RBackedUpWindow iBackedUpWindow;
    69 	RBlankWindow iOomFrontWindow;
    70 	CFbsBitmap iBitmap;
    71 	CFbsBitGc *iBitGc;
    72 	CFbsDevice *iBitmapDevice;
    73 	CFbsBitmap* iTestBitmap;
    74 	CFbsBitmap* iMaskBitmap;
    75 	};
    76 
    77 LOCAL_D const TPoint moveList[]={TPoint(1,0),TPoint(10,20),TPoint(-50,0),TPoint(30,-1),TPoint(-1000,20)};
    78 
    79 
    80 
    81 class CTBackedUpWindowStep : public CTGraphicsStep
    82 	{
    83 public:
    84 	CTBackedUpWindowStep();
    85 protected:	
    86 	//from CTGraphicsStep
    87 	virtual CTGraphicsBase* CreateTestL();
    88 	};
    89 
    90 _LIT(KTBackedUpWindowStep,"TBackedUpWindow");
    91 
    92 
    93 #endif