egl/egltest/endpointtestsuite/automated/inc/log.h
changeset 98 bf7481649c98
equal deleted inserted replaced
85:cdf2f6e5c390 98:bf7481649c98
       
     1 // Copyright (c) 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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code
       
    20 */
       
    21 
       
    22 #ifndef __LOG_H__
       
    23 #define __LOG_H__
       
    24 
       
    25 
       
    26 //Enumeration used in TRemoteTestResult
       
    27 //to describe the outcome of the test.
       
    28 enum TRemoteTestVerdict
       
    29     {
       
    30     ERtvPass,
       
    31     ERtvFail,
       
    32     ERtvInconclusive,
       
    33     ERtvAbort,
       
    34     ERtvPanic,
       
    35     ERtvTimeout,
       
    36     ERtvUnknownTestUid
       
    37     };
       
    38 
       
    39 
       
    40 //This is the base class for all remote test steps. Derived classes should implement
       
    41 //DoRemoteTestStepL(), and return the result of the test as a TVerdict.
       
    42 //Logging is provided with Log(), Logging messages are limitted to 86 chars and
       
    43 //any longer messages are silently truncated. Log will only work when in the actual
       
    44 //test step. Use the Logger Macros instead of using Log() directly.
       
    45 class MLog
       
    46     {
       
    47 public:
       
    48     virtual void Log(const TText8* aFile, TInt aLine, TInt aSeverity, TRefByValue<const TDesC> aFmt, ...)=0;
       
    49     };
       
    50 
       
    51 #endif // __LOG_H__