mmsharing/mmshmanagercli/tsrc/ut_managercli/inc/ut_cmusmanager.h
changeset 22 496ad160a278
parent 0 f0cf47e981f9
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     1 /*
       
     2 * Copyright (c) 2006-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 tests for CMusManager class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef UT_CMUSMANAGER_H
       
    21 #define UT_CMUSMANAGER_H
       
    22 
       
    23 
       
    24 #include "musmanagercommon.h"
       
    25 #include <e32base.h>
       
    26 #include <digia/eunit/ceunittestsuiteclass.h>
       
    27 #include <musavailabilityobserver.h>
       
    28 
       
    29 #pragma warn_illtokenpasting off
       
    30 
       
    31 class CMusManager;
       
    32 
       
    33 
       
    34 /**
       
    35  *  UT_CMusManager implements unit tests for CMusManager class.
       
    36  */
       
    37 class UT_CMusManager : public CEUnitTestSuiteClass,
       
    38                        public MMusAvailabilityObserver
       
    39     {
       
    40 public:
       
    41 
       
    42     static UT_CMusManager* NewL();
       
    43     static UT_CMusManager* NewLC();
       
    44 
       
    45    /**
       
    46     * Destructor.
       
    47     */
       
    48     virtual ~UT_CMusManager();
       
    49 
       
    50     /**
       
    51      * Sets up a test case by instantiating tested class.
       
    52      */
       
    53     void SetupL();
       
    54     void SetupDummyL();
       
    55 
       
    56     /**
       
    57      * Finalizes a test case by freeing resources.
       
    58      */
       
    59     void Teardown();
       
    60     void TeardownDummy();
       
    61 
       
    62     /**
       
    63      * Unit test methods.
       
    64      */
       
    65     void UT_CMusManager_ExamineAvailabilityLL();
       
    66     void UT_CMusManager_AvailabilityLL();
       
    67     void UT_CMusManager_HandleSipRequestLL();
       
    68     void UT_CMusManager_HandleCommandLL();
       
    69     void UT_CMusManager_StartApplicationLL();
       
    70     void UT_CMusManager_StopApplicationLL();
       
    71     void UT_CMusManager_NewLL();
       
    72     
       
    73 public: // from MMusAvailabilityObserver
       
    74     void MusAvailabilityChangedL( 
       
    75                 MultimediaSharing::TMusAvailabilityStatus aAvailabilityStatus );        
       
    76 
       
    77 private:
       
    78 
       
    79     UT_CMusManager();
       
    80     void ConstructL();
       
    81 
       
    82 private: // data
       
    83 
       
    84     /**
       
    85      * Pointer to instance of tested class.
       
    86      * Own.
       
    87      */
       
    88     CMusManager* iImpl;
       
    89 
       
    90     EUNIT_DECLARE_TEST_TABLE;
       
    91 
       
    92     };
       
    93 
       
    94 
       
    95 #endif // UT_CMUSMANAGER_H