symbianunittestfw/symbianunittestfw_pub/symbian_unit_test_api/inc/symbianunittestlddif.h
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     1 // Copyright (c) 2008-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 the License "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 #ifndef __SYMBIANUNITTESTLDDIF_H
       
    17 #define __SYMBIANUNITTESTLDDIF_H
       
    18 
       
    19 #include <e32cmn.h>
       
    20 
       
    21 class RSymbianUnitTest : public RBusLogicalChannel
       
    22 {
       
    23 public:
       
    24 	enum TControl
       
    25          {
       
    26          ETESTCOUNT=1,
       
    27          EEXECUTETESTCASE=2,
       
    28          ETESTCASENAME=3
       
    29          };
       
    30 	
       
    31 	TInt GetTestCaseCount(TInt* a1);
       
    32 	TInt ExecTestCase(TInt* a1, TAny* a2);
       
    33 	TInt GetTestCaseName(TInt* a1, TAny* a2);
       
    34 	TInt Open(const TDesC& aName);
       
    35 };
       
    36 
       
    37 typedef TBuf8<80> TTestName;
       
    38 typedef TBuf8<256> TFAILUREMESSAGE;
       
    39 typedef TBuf8<256> TFILENAME;
       
    40 
       
    41 class TSUTTestCaseResult
       
    42     {
       
    43     public: TSUTTestCaseResult() : iRetCode (0), iLineNumber (0)
       
    44         {
       
    45         iTestName.Zero();
       
    46         iFailureMessage.Zero();
       
    47         iFileName.Zero();
       
    48         }
       
    49     public:
       
    50         TInt iRetCode;
       
    51         TInt iLineNumber;
       
    52         TTestName iTestName;
       
    53         TFAILUREMESSAGE iFailureMessage;
       
    54         TFILENAME iFileName;
       
    55     };
       
    56 
       
    57 
       
    58 #endif __SYMBIANUNITTESTLDDIF_H