os/graphics/fbs/fontandbitmapserver/trasterizer/test/trasterizer.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 // Copyright (c) 2008-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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18  @test
    19  @internalComponent - Internal Symbian test code 
    20 */
    21 
    22 #ifndef TRASTERIZER_H
    23 #define TRASTERIZER_H
    24 
    25 #include "trasterizerbase.h"
    26 
    27 _LIT(KTRasterizerStep, "TRasterizer");
    28 
    29 
    30 /** Class for testing how the example rasterizer performs when passed
    31 valid data.
    32  */
    33 class CTRasterizer : public CTRasterizerBase
    34 	{
    35 public:
    36 	CTRasterizer();	
    37 	
    38 	// From CStepStep	
    39 	virtual TVerdict doTestStepL();	
    40 	
    41 private:	
    42 	// Positive tests
    43 	void TestLoadRasterizerDllL();
    44 	void TestScanLineL();		
    45 	void TestMultipleScanLinesL();
    46 	void TestRegionOfInterestL();
    47 	
    48 	// Helper functions	
    49 	TRgb ExtractRgb(const TUint8* aBuffer, TInt aPixelOffset, TDisplayMode aDispMode);
    50 	CFbsBitmap* CreateExtendedBitmapLC(const TRgb* aColours, TBool aHorizontalStripe, TSize aSizeInPixels);
    51 	
    52 private:
    53 	TDisplayMode iDisplayMode;	
    54 	};
    55 
    56 #endif // TRASTERIZER_H