stvariants/montblanc/src/soc/core/genepi/test/t_genepi_st_08/src/t_genepi_st_08blocks.cpp
changeset 14 cf4c5641c6dd
parent 12 a80bfc23ff0e
child 15 ac35e54b1f85
child 17 ce191d16bb9a
child 19 703c56cf2669
equal deleted inserted replaced
12:a80bfc23ff0e 14:cf4c5641c6dd
     1 /*
       
     2 * Copyright (c) 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 /**
       
    19 *  © ST-Ericsson, 2009 - All rights reserved
       
    20 *  Reproduction and Communication of this document is strictly prohibited
       
    21 *  unless specifically authorized in writing by ST-Ericsson
       
    22 *
       
    23 *  File Name:t_genepi_st_08blocks.cpp Test application file
       
    24 * author  ST-Ericsson
       
    25 */
       
    26 /*****************************************************************************/ 
       
    27 
       
    28 /****************************************************************************
       
    29  * Includes
       
    30  ****************************************************************************/
       
    31 #include "t_genepi_st_08blocks.h"
       
    32 #include <e32test.h>
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // Ct_genepi_st_08blocks::Ct_genepi_st_08blocks
       
    36 // C++ default constructor
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 Ct_genepi_st_08blocks::Ct_genepi_st_08blocks( ) : iRTestgenepi(_L("t_genepi_st_08"))
       
    40 {
       
    41 }
       
    42 
       
    43 // -----------------------------------------------------------------------------
       
    44 // Ct_genepi_st_08blocks::~Ct_genepi_st_08blocks
       
    45 // C++ default destructor
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 Ct_genepi_st_08blocks::~Ct_genepi_st_08blocks( )
       
    49 {
       
    50 }
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 // Ct_genepi_st_08blocks::NewL
       
    54 // Two-phased constructor.
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 Ct_genepi_st_08blocks* Ct_genepi_st_08blocks::NewL()
       
    58 {
       
    59 	Ct_genepi_st_08blocks* self = new (ELeave) Ct_genepi_st_08blocks( );
       
    60 	return self;
       
    61 }	
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // Ct_genepi_st_08blocks::RunAllTest05
       
    65 // Run all tests in sequence
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 void Ct_genepi_st_08blocks::RunAllTest05()
       
    69 {
       
    70 	TInt ret = KErrNone;
       
    71 
       
    72 	iRTestgenepi.Start(_L("Testing Genepi  Driver"));
       
    73 	Printf(0, _L("t_genepi_st_08"), _L("Executing Test Class ID: t_genepi_st_08.\n"));
       
    74 
       
    75 	iRTestgenepi.Next(_L("Test Case no. t_genepi_st_08_01 Started"));
       
    76 	ret = t_genepi_core_08_01();
       
    77 	iRTestgenepi(ret == KErrNone);
       
    78 	Printf(0, _L("t_genepi_st_08"), _L("Test Case no. t_genepi_st_08_01 Completed\n"));
       
    79 
       
    80 
       
    81 	Printf(0, _L("t_genepi_st_08"), _L("Ending test.\n"));
       
    82 	iRTestgenepi.End();
       
    83 	iRTestgenepi.Close();
       
    84 }	
       
    85 
       
    86 
       
    87 void Ct_genepi_st_08blocks::Printf( const TInt aPriority, 
       
    88 		const TDesC& aDefinition, 
       
    89 		TRefByValue<const TDesC> aFmt,... )
       
    90 {
       
    91 	VA_LIST list;
       
    92 	VA_START(list,aFmt);
       
    93 	TName aBuf;
       
    94 
       
    95 	// Parse parameters
       
    96 	aBuf.AppendFormatList(aFmt,list);        
       
    97 
       
    98 	iRTestgenepi.Printf(aBuf); 
       
    99 }
       
   100 
       
   101