commsconfig/commsdatabaseshim/TE_commdb/te_connpref/src/TE_ConnPrefStep.cpp
changeset 72 ae47d0499bee
equal deleted inserted replaced
68:5da8188e392b 72:ae47d0499bee
       
     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  * @file TE_ConnPrefStep.cpp
       
    20  *
       
    21  * This contains CTE_ConnPrefStep class which is
       
    22  * the base class for all the ConnPref test steps
       
    23  *
       
    24  */
       
    25 #include "TE_ConnPrefStep.h"
       
    26 
       
    27 
       
    28 // Constructor
       
    29 CTE_ConnPrefStep::CTE_ConnPrefStep() 
       
    30 	{			
       
    31 	}
       
    32 
       
    33 // Destructor
       
    34 CTE_ConnPrefStep::~CTE_ConnPrefStep()
       
    35 	{ 
       
    36 	}	
       
    37 
       
    38 void CTE_ConnPrefStep::ExpLogExtra(const TText8* aFile, TInt aLine, TInt aSeverity,
       
    39 		TRefByValue<const TDesC> aFmt,...)
       
    40 	{
       
    41 	//VA_LIST aList;
       
    42 	//VA_START( aList, aFmt );
       
    43 
       
    44 
       
    45 	// Log to the suite's logger
       
    46 	INFO_PRINTF5(_L("File: %S, line: %d, severity: %d, message: $S"), 
       
    47 		aFile, aLine, aSeverity, aFmt);
       
    48 
       
    49 	//VA_END( aList ); 
       
    50 
       
    51 	}
       
    52 
       
    53 enum TVerdict CTE_ConnPrefStep::Test(TInt aResult)
       
    54 	{	
       
    55 	if (!aResult)
       
    56 		{
       
    57 			INFO_PRINTF1(KEGeneric);
       
    58          	SetTestStepResult(EFail);
       
    59 
       
    60 			return TestStepResult();
       
    61 		}
       
    62         SetTestStepResult(EPass);
       
    63 
       
    64 	return TestStepResult();
       
    65 	}
       
    66 
       
    67 
       
    68