os/graphics/windowing/windowserver/test/tauto/TBITMAP.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 __TBITMAP_H__
    24 #define __TBITMAP_H__
    25 
    26 #include <e32std.h>
    27 #include <w32std.h>
    28 #include "../tlib/testbase.h"
    29 #include "AUTO.H"
    30 #include "TGraphicsHarness.h"
    31 
    32 #define SAVE_BITMAP_NAME _L("C:\\WSTEST\\SAVE.PBM")
    33 
    34 class CTBitmap : public CTWsGraphicsBase
    35 	{
    36 public:
    37 	CTBitmap(CTestStep* aStep);
    38 	~CTBitmap();
    39 	void ConstructL();
    40 	void BasicTestsL();
    41 	void TestFixForPDEF098889L();
    42 private:
    43 	struct TThreadParams
    44 		{
    45 		TInt iScreenNr;
    46 		void (*iFunction)(RWsSession& aSession, CWsScreenDevice& aDevice);
    47 		};
    48 	static TInt ThreadFunction(TAny* aParams);
    49 	static void Function1PDEF098889L(RWsSession& aSession, CWsScreenDevice& aDevice);
    50 	static void Function2PDEF098889L(RWsSession& aSession, CWsScreenDevice& aDevice); 
    51 protected:
    52 //from 	CTGraphicsStep
    53 	virtual void RunTestCaseL(TInt aCurTestCase);
    54 private:
    55 	CWsBitmap *iBitmap1;
    56 	CWsBitmap *iBitmap2;
    57 	};
    58 
    59 class CTBitmapStep : public CTGraphicsStep
    60 	{
    61 public:
    62 	CTBitmapStep();
    63 protected:	
    64 	//from CTGraphicsStep
    65 	virtual CTGraphicsBase* CreateTestL();
    66 	};
    67 
    68 _LIT(KTBitmapStep,"TBitmap");
    69 
    70 
    71 #endif