egl/egltest/endpointtestsuite/automated/inc/log.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 15:45:57 +0300
changeset 111 29ddb8a72f0e
parent 98 bf7481649c98
permissions -rw-r--r--
Revision: 201027 Kit: 2010127

// Copyright (c) 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:
//

/**
 @file
 @test
 @internalComponent - Internal Symbian test code
*/

#ifndef __LOG_H__
#define __LOG_H__


//Enumeration used in TRemoteTestResult
//to describe the outcome of the test.
enum TRemoteTestVerdict
    {
    ERtvPass,
    ERtvFail,
    ERtvInconclusive,
    ERtvAbort,
    ERtvPanic,
    ERtvTimeout,
    ERtvUnknownTestUid
    };


//This is the base class for all remote test steps. Derived classes should implement
//DoRemoteTestStepL(), and return the result of the test as a TVerdict.
//Logging is provided with Log(), Logging messages are limitted to 86 chars and
//any longer messages are silently truncated. Log will only work when in the actual
//test step. Use the Logger Macros instead of using Log() directly.
class MLog
    {
public:
    virtual void Log(const TText8* aFile, TInt aLine, TInt aSeverity, TRefByValue<const TDesC> aFmt, ...)=0;
    };

#endif // __LOG_H__