mmsharing/mmshengine/tsrc/ut_engine/inc/ut_muspropertywatch.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     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 
       
    19 #ifndef __UT_MUSPROPERYWATCH_H__
       
    20 #define __UT_MUSPROPERYWATCH_H__
       
    21 
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <ceunittestsuiteclass.h>
       
    25 #include <eunitmacros.h>
       
    26 
       
    27 #include "musengstubs.h"
       
    28 
       
    29 //  FORWARD DECLARATIONS
       
    30 class CMusPropertyWatch;
       
    31 class TMusUiPropertyObserverStub;
       
    32 
       
    33 //  CLASS DEFINITION
       
    34 /**
       
    35  * Tester class for CMusEngSession.
       
    36  * Since CMusEngSession is abstract, it is tested via object of its'
       
    37  * concrete descendant class CMusEngLiveSession. Only concrete
       
    38  * implementations are tested in this tester class.
       
    39  *
       
    40  */
       
    41 NONSHARABLE_CLASS( UT_CMusPropertyWatch ): public CEUnitTestSuiteClass
       
    42     {
       
    43     public:     // Constructors and destructors
       
    44 
       
    45         /**
       
    46          * Two phase construction
       
    47          */
       
    48         static UT_CMusPropertyWatch* NewL();
       
    49         static UT_CMusPropertyWatch* NewLC();
       
    50 
       
    51         /**
       
    52          * Destructor
       
    53          */
       
    54         ~UT_CMusPropertyWatch();
       
    55 
       
    56     private: // Constructors and destructors
       
    57 
       
    58         UT_CMusPropertyWatch();
       
    59         void ConstructL();
       
    60 
       
    61     private: // Test case setup and teardown
       
    62 
       
    63         void SetupL();
       
    64 
       
    65         void Teardown();
       
    66 
       
    67     private: // Test methods
       
    68 
       
    69 	    void UT_CMusPropertyWatch_ReadIntPropertyLL();
       
    70 	    void UT_CMusPropertyWatch_ReadDescPropertyLL();
       
    71 	    void UT_CMusPropertyWatch_DoCancelL();
       
    72 	    void UT_CMusPropertyWatch_RunLL();
       
    73 	    void UT_CMusPropertyWatch_RunErrorL();
       
    74 
       
    75 
       
    76     private:    // Data
       
    77 
       
    78 
       
    79 	    TMusPropertyObserverStub iPropertyObserver;
       
    80         CMusPropertyWatch* iPropertyWatch;
       
    81 
       
    82         EUNIT_DECLARE_TEST_TABLE;
       
    83 
       
    84     };
       
    85 
       
    86 #endif      //  __UT_MUSPROPERYWATCH_H__
       
    87 
       
    88 // End of file