telephonyserverplugins/multimodetsy/test/Te_Echo/Te_EchoMacros.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2005-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 // Te_EchoSingleTestStep.h
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __TE_ECHO_MACROS__
       
    19 #define __TE_ECHO_MACROS__
       
    20 
       
    21 #include <test/testexecutestepbase.h>
       
    22 
       
    23 _LIT(KTestIfErrorFailText, "Failed: return code is %d");
       
    24 
       
    25 #define TEST_FOR_ERROR_L(a) \
       
    26     { \
       
    27     if((a)!=(KErrNone)) \
       
    28 	    { \
       
    29 	    INFO_PRINTF2(KTestIfErrorFailText,a); \
       
    30         SetTestStepResult(EFail); \
       
    31         User::Leave(a); \
       
    32         } \
       
    33     }
       
    34 
       
    35 #define FAIL_WITH_ERROR_L(a) \
       
    36     { \
       
    37 	INFO_PRINTF2(KTestIfErrorFailText,a); \
       
    38     SetTestStepResult(EFail); \
       
    39     User::Leave(a); \
       
    40     }
       
    41 
       
    42 #endif