telephonyserverplugins/multimodetsy/test/Te_Echo/Te_EchoMacros.h
author William Roberts <williamr@symbian.org>
Mon, 08 Mar 2010 21:44:33 +0000
branchCompilerCompatibility
changeset 11 77f7846f839d
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
permissions -rw-r--r--
Create CompilerCompatibility branch

// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// Te_EchoSingleTestStep.h
// 
//

#ifndef __TE_ECHO_MACROS__
#define __TE_ECHO_MACROS__

#include <test/testexecutestepbase.h>

_LIT(KTestIfErrorFailText, "Failed: return code is %d");

#define TEST_FOR_ERROR_L(a) \
    { \
    if((a)!=(KErrNone)) \
	    { \
	    INFO_PRINTF2(KTestIfErrorFailText,a); \
        SetTestStepResult(EFail); \
        User::Leave(a); \
        } \
    }

#define FAIL_WITH_ERROR_L(a) \
    { \
	INFO_PRINTF2(KTestIfErrorFailText,a); \
    SetTestStepResult(EFail); \
    User::Leave(a); \
    }

#endif