mmsharing/mmshmanagersrv/tsrc/ut_managersrv/inc/ut_cmusmanagerserverclosetimer.h
changeset 0 f0cf47e981f9
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     1 /*
       
     2 * Copyright (c) 2004-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 CMusAvailabilityManager class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef UT_CMUSMANAGERSERVERCLOSETIMER_H
       
    20 #define UT_CMUSMANAGERSERVERCLOSETIMER_H
       
    21 
       
    22 #include <digia/eunit/ceunittestsuiteclass.h>
       
    23 
       
    24 class CMusManagerServerCloseTimer;
       
    25 
       
    26 #include <e32def.h>
       
    27 #ifndef NONSHARABLE_CLASS
       
    28     #define NONSHARABLE_CLASS(x) class x
       
    29 #endif
       
    30 
       
    31 /**
       
    32  *  Unit test class for CMusManagerServerCloseTimer.
       
    33  *  Implements unit tests for CMusManagerServerCloseTimer.
       
    34  *
       
    35  *  @since S60 v3.2
       
    36  */
       
    37 NONSHARABLE_CLASS( UT_CMusManagerServerCloseTimer )
       
    38     : public CEUnitTestSuiteClass
       
    39     {
       
    40 public:
       
    41 
       
    42     static UT_CMusManagerServerCloseTimer* NewL();
       
    43 
       
    44     static UT_CMusManagerServerCloseTimer* NewLC();
       
    45 
       
    46     /**
       
    47      * Destructor.
       
    48      */
       
    49     ~UT_CMusManagerServerCloseTimer();
       
    50 
       
    51 private:
       
    52 
       
    53     UT_CMusManagerServerCloseTimer();
       
    54 
       
    55     void ConstructL();
       
    56 
       
    57     /**
       
    58     * Sets up a test case.
       
    59     */
       
    60     void SetupL();
       
    61 
       
    62     /**
       
    63     * Tears down a test case.
       
    64     */
       
    65     void Teardown();
       
    66 
       
    67     /**
       
    68     * Invidual unit test methods.
       
    69     */
       
    70     void UT_CMusManagerServerCloseTimer_NewLL();
       
    71     void UT_CMusManagerServerCloseTimer_NewLCL();
       
    72     void UT_CMusManagerServerCloseTimer_StopActiveSchedulerAfterL();
       
    73     void UT_CMusManagerServerCloseTimer_DoCancelL();
       
    74 
       
    75 private: // data
       
    76 
       
    77     /**
       
    78      * Instance of tested class.
       
    79      * Own.
       
    80      */
       
    81     CMusManagerServerCloseTimer* iTimer;
       
    82 
       
    83     EUNIT_DECLARE_TEST_TABLE;
       
    84 
       
    85     };
       
    86 
       
    87 #endif // UT_CMUSMANAGERSERVERCLOSETIMER_H