fbs/fontandbitmapserver/trasterizer/test/trasterizerbase.cpp
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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 // trasterizerbase.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #include "trasterizerbase.h"
       
    19 #include <fbs.h>
       
    20 #include <e32uid.h>
       
    21 
       
    22 
       
    23 CTRasterizerBase::~CTRasterizerBase()
       
    24 	{
       
    25 	}
       
    26 
       
    27 void CTRasterizerBase::GetExampleRasterizerL()
       
    28 	{
       
    29 	iRasterizer = CFbsBitmap::Rasterizer();
       
    30 	TESTL(iRasterizer != NULL);
       
    31 	}
       
    32 
       
    33 /** 
       
    34 Override of base class pure virtual
       
    35 Our implementation only gets called if the base class doTestStepPreambleL() did
       
    36 not leave. That being the case, the current test result value will be EPass.
       
    37 @leave Gets system wide error code
       
    38 @return TVerdict code
       
    39 */
       
    40 TVerdict CTRasterizerBase::doTestStepPreambleL()
       
    41 	{
       
    42 	User::LeaveIfError(RFbsSession::Connect());
       
    43 	return TestStepResult();
       
    44 	}
       
    45 
       
    46 /**
       
    47 Override of base class virtual
       
    48 @leave Gets system wide error code
       
    49 @return - TVerdict code
       
    50 */
       
    51 TVerdict CTRasterizerBase::doTestStepPostambleL()
       
    52 	{
       
    53 	RFbsSession::Disconnect();
       
    54 	return TestStepResult();	
       
    55 	}