mmsharing/mmshavailability/tsrc/ut_availability/inc/ut_cmusavaclientresolverutil.h
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     1 /*
       
     2 * Copyright (c) 2007 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:  Unit test class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __UT_CMUSAVACLIENTRESOLVERUTIL_H__
       
    21 #define __UT_CMUSAVACLIENTRESOLVERUTIL_H__
       
    22 
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 #include <digia/eunit/eunitmacros.h>
       
    27 
       
    28 //  FORWARD DECLARATIONS
       
    29 class CMusAvaClientResolverUtil;
       
    30 
       
    31 #ifndef NONSHARABLE_CLASS
       
    32     #define NONSHARABLE_CLASS(x) class x
       
    33 #endif
       
    34 
       
    35 //  CLASS DEFINITION
       
    36 /**
       
    37  * Tester class for CMusAvaClientResolverUtil. 
       
    38  * 
       
    39  */
       
    40 NONSHARABLE_CLASS( UT_CMusAvaClientResolverUtil ): public CEUnitTestSuiteClass
       
    41     {
       
    42     public:     // Constructors and destructors
       
    43 
       
    44         /**
       
    45          * Two phase construction
       
    46          */
       
    47         static UT_CMusAvaClientResolverUtil* NewL();
       
    48         static UT_CMusAvaClientResolverUtil* NewLC();
       
    49                 
       
    50         /**
       
    51          * Destructor
       
    52          */
       
    53         ~UT_CMusAvaClientResolverUtil();
       
    54 
       
    55     private: // Constructors and destructors
       
    56 
       
    57         UT_CMusAvaClientResolverUtil();
       
    58         void ConstructL();
       
    59         
       
    60         
       
    61     private: // Test case setup and teardown
       
    62 
       
    63         // Setup and teardown 
       
    64         void SetupL();
       
    65         void Teardown();
       
    66 
       
    67         // Setup and teardown for a test to be run using Sawfish
       
    68         void Setup_SawfishL();
       
    69         void Teardown_Sawfish();
       
    70 
       
    71 
       
    72     private: // Test methods
       
    73     
       
    74         void UT_NewL_SucceedsInSawfishL();
       
    75         void UT_NewL_FailsInOthersThanSawfishL();
       
    76         
       
    77     private:    // Data
       
    78 
       
    79         CMusAvaClientResolverUtil* iResolver;
       
    80 
       
    81         EUNIT_DECLARE_TEST_TABLE;
       
    82 
       
    83     };
       
    84 
       
    85 #endif      //  __UT_CMUSAVACLIENTRESOLVERUTIL_H__
       
    86 
       
    87 // End of file