multimediacommscontroller/mmccfilesourcesink/tsrc/ut_filesourcesink/Inc/UT_CMccEofTimer.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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 
       
    20 
       
    21 #ifndef __UT_CMCCEOFTIMER_H__
       
    22 #define __UT_CMCCEOFTIMER_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 
       
    27 //  INTERNAL INCLUDES
       
    28 #include "mcceoftimer.h"
       
    29 
       
    30 #include <e32def.h>
       
    31 #ifndef NONSHARABLE_CLASS
       
    32     #define NONSHARABLE_CLASS(x) class x
       
    33 #endif
       
    34 
       
    35       
       
    36 //  CLASS DEFINITION
       
    37 
       
    38 NONSHARABLE_CLASS( UT_CMccEofTimer )
       
    39      : public CEUnitTestSuiteClass, public MMccEofTimerObserver
       
    40     {
       
    41     public:     // Constructors and destructors
       
    42 
       
    43         /**
       
    44          * Two phase construction
       
    45          */
       
    46         static UT_CMccEofTimer* NewL();
       
    47         static UT_CMccEofTimer* NewLC();
       
    48         /**
       
    49          * Destructor
       
    50          */
       
    51         ~UT_CMccEofTimer();
       
    52         
       
    53     public:	// from MCCEorTimerObserver interface
       
    54     	virtual void EofTimerExpiredL();
       
    55 
       
    56     private:    // Constructors and destructors
       
    57 
       
    58         UT_CMccEofTimer();
       
    59         void ConstructL();
       
    60 
       
    61     private:    // New methods
       
    62 
       
    63         void SetupL();
       
    64         
       
    65         void Teardown();
       
    66         
       
    67         void UT_CMccEofTimer_NewLL();
       
    68         
       
    69     private: // test methods
       
    70     	void UT_CMccEofTimer_RunLL();
       
    71 
       
    72     private:    // Data
       
    73 
       
    74         EUNIT_DECLARE_TEST_TABLE; 
       
    75         
       
    76         CMccEofTimer* iTimer;
       
    77         TBool iEofTimerExpiredCalled;
       
    78     };
       
    79 
       
    80 #endif      //  __UT_CMCCEOFTIMER_H__
       
    81 
       
    82 // End of file