telephonyserverplugins/multimodetsy/test/Te_Echo/Te_EchoMacros.h
author hgs
Wed, 21 Jul 2010 17:41:03 +0100
changeset 53 12b52b1a573e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
permissions -rw-r--r--
201027_09

// 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