usbengines/usbotgwatcher/tsrc/UsbOtgWatcherTest/inc/tassertbase.h
branchRCL_3
changeset 92 dde4619868dc
parent 86 703a2b94c06c
child 95 55a3258355ea
equal deleted inserted replaced
86:703a2b94c06c 92:dde4619868dc
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TASSERTBASE_H
       
    20 #define TASSERTBASE_H
       
    21 
       
    22 #include <StifTestModule.h>
       
    23 #include <StifLogger.h>
       
    24 
       
    25 class TAssertBase
       
    26     {
       
    27 public:
       
    28     // Pointer to logger
       
    29     // Not own
       
    30     CStifLogger * iLog;
       
    31 
       
    32     // Test result
       
    33     TTestResult iResult;
       
    34     
       
    35     void SetStifLogger(CStifLogger* aLog)
       
    36         {
       
    37         iLog = aLog;
       
    38         }
       
    39     
       
    40     TBool IsTestResultNoneError()
       
    41         {
       
    42         return iResult.iResult == KErrNone;
       
    43         }
       
    44     };
       
    45 
       
    46 #endif //ASSERTBASE_H