os/mm/mmlibs/mmfw/tsrc/mmfunittest/subtitlegraphic/inc/subtitlegraphicteststep.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 #ifndef SUBTITLEGRAPHICTESTSTEP_H
    17 #define SUBTITLEGRAPHICTESTSTEP_H
    18 
    19 #include <testframework.h>
    20 #include <w32std.h>
    21 
    22 #include "mmfsubtitlegraphic.h"
    23 
    24 /* 
    25 Basic test for subtitle graphic client API
    26 */
    27 class RSubtitleGraphicTestStep : public RTestStep
    28 	{
    29 protected:   
    30 	RSubtitleGraphicTestStep(const TDesC& aStepName);
    31 	
    32 	void InitWservL();
    33 	void DeInitWserv();
    34 	
    35 	// from RTestStep
    36     TVerdict DoTestStepPreambleL();
    37     TVerdict DoTestStepPostambleL();
    38     TVerdict StartCrpDrawL();
    39     
    40 	void PrepGc();
    41 	void RetireGc();
    42 	void InitCrpL();
    43 	void DestroyCrp();
    44 	TBool CreateBitmap1L();
    45 	TBool CreateBitmap2L();
    46 	TBool CreateBitmap3L();
    47 	void DestroyBitmap1();
    48 	void DestroyBitmap2();
    49 	void DestroyBitmap3();
    50 	
    51 protected:
    52 	CActiveScheduler* iActiveScheduler;
    53 	TBool iActiveSchedulerStarted;
    54 	RFs iFs;
    55 
    56     // Window server related objects
    57     RWsSession iWs;
    58     CWsScreenDevice* iScreen;
    59     RWindow* iWindow;
    60     RWindowGroup iRootWindow;
    61     CWindowGc *iGc;
    62     CMMFSubtitleGraphic* iCRPGraphic;
    63     CFbsBitmap* iBitmap1;
    64 	CFbsBitmap* iBitmap2;
    65 	CFbsBitmap* iBitmap3;
    66     
    67 private:
    68     TWsGraphicId iCRPId;
    69 	};
    70 
    71 #endif // SUBTITLEGRAPHICTESTSTEP_H