mmshplugins/mmcctranscoder/tsrc/ut_transcoder/inc/ut_mcctranscoder.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) 2008 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
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __UT_CMCCTRANSCODER_H__
       
    21 #define __UT_CMCCTRANSCODER_H__
       
    22 
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 #include <digia/eunit/eunitmacros.h>
       
    27 #include <mmcctranscoder.h>
       
    28 #include <mmccevents.h>
       
    29 
       
    30 // Forward declaration
       
    31 
       
    32 
       
    33 // Next row is to disable warning emerging from EUnit code.
       
    34 // Placement is due to a fact that most test case files
       
    35 // include this file. Directive can be removed when 
       
    36 // EUnit is fixed.  
       
    37 #pragma warn_illtokenpasting off
       
    38 
       
    39 //  CLASS DEFINITION
       
    40 /**
       
    41  * Tester class for CMusCallMonitorBase. 
       
    42  * 
       
    43  */
       
    44 NONSHARABLE_CLASS( UT_CMccTranscoder ): public CEUnitTestSuiteClass,
       
    45                                         public MMccTranscoderObserver
       
    46 
       
    47     {
       
    48     public:
       
    49         //Two phase construction
       
    50         static UT_CMccTranscoder* NewL();
       
    51         static UT_CMccTranscoder* NewLC();
       
    52         // Destructor                  
       
    53         ~UT_CMccTranscoder();
       
    54 
       
    55     private: // Constructor
       
    56         UT_CMccTranscoder();
       
    57         void ConstructL();
       
    58         
       
    59     private: // from MMccTranscoderObserver
       
    60 
       
    61         void MccTranscoderEventReceived( TMccEvent& aEvent );
       
    62 
       
    63         
       
    64     private: // Test case setup and teardown
       
    65         void SetupL();
       
    66         void Teardown();
       
    67 
       
    68         
       
    69     private: // Test methdods
       
    70         
       
    71         void UT_CMccTranscoder_RegisterEventObserverL();
       
    72         void UT_CMccTranscoder_UnregisterEventObserverL();
       
    73         void UT_CMccTranscoder_TranscodeFileLL();
       
    74         void UT_CMccTranscoder_CancelTranscodeFileLL();
       
    75     
       
    76     private:    // Data        
       
    77         CMccTranscoder* iMccTranscoder;
       
    78         TMccEvent iMccEvent;
       
    79 
       
    80         TMccTranscodeFileMsg iData;
       
    81 
       
    82         EUNIT_DECLARE_TEST_TABLE;
       
    83 
       
    84     };
       
    85 
       
    86 #endif      //  __UT_CMCCTRANSCODER_H__
       
    87 
       
    88 // End of file