symbianunittestfw/sutfw/sutfwcore/sutfwframework/inc/symbianunittestfailure.h
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     1 /*
       
     2 * Copyright (c) 2009 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 #ifndef SYMBIANUNITTESTFAILURE_H
       
    19 #define SYMBIANUNITTESTFAILURE_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class MSymbianUnitTestInterface;
       
    26 
       
    27 // CLASS DECLARATION
       
    28 class CSymbianUnitTestFailure : public CBase
       
    29     {
       
    30     public: // Constructors and destructor
       
    31     
       
    32         static CSymbianUnitTestFailure* NewL(
       
    33             const TDesC& aTestName,
       
    34             const TDesC8& aFailureMessage,
       
    35             TInt aLineNumber,
       
    36             const TDesC8& aFileName );
       
    37 
       
    38         static CSymbianUnitTestFailure* NewLC(
       
    39             const TDesC& aTestName,
       
    40             const TDesC8& aFailureMessage,
       
    41             TInt aLineNumber,
       
    42             const TDesC8& aFileName ); 
       
    43         
       
    44         ~CSymbianUnitTestFailure();
       
    45     
       
    46     public: // New functions
       
    47         
       
    48         const TDesC8& TestName();
       
    49         const TDesC8& FailureMessage();
       
    50         TInt LineNumber();
       
    51         const TDesC8& FileName();
       
    52     
       
    53     private: // Constructors
       
    54         
       
    55         CSymbianUnitTestFailure( TInt aLineNumber );
       
    56         
       
    57         void ConstructL( 
       
    58             const TDesC& aTestName,
       
    59             const TDesC8& aFailureMessage,
       
    60             const TDesC8& aFileName );
       
    61         
       
    62     private: // Data
       
    63     
       
    64         TInt iLineNumber;
       
    65         HBufC8* iTestName;
       
    66         HBufC8* iFailureMessage;
       
    67         HBufC8* iFileName;  
       
    68     };
       
    69 
       
    70 #endif // SYMBIANUNITTESTFAILURE_H