multimediacommscontroller/mmccfilesourcesink/tsrc/ut_filesourcesink/Inc/UT_CMccFileSink.h
changeset 0 1bce908db942
child 48 c4cbfcae3f52
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_CMCCFILESINK_H__
       
    22 #define __UT_CMCCFILESINK_H__
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <digia/eunit/ceunittestsuiteclass.h>
       
    26 
       
    27 //  INTERNAL INCLUDES
       
    28 
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 class CMccFileSink;
       
    32 class CMMFDataBuffer;
       
    33 class CMccDlDataPath;
       
    34 class CMccTestEventHandler;
       
    35 class CMccResourcePoolStub;
       
    36 
       
    37 #include <e32def.h>
       
    38 #ifndef NONSHARABLE_CLASS
       
    39     #define NONSHARABLE_CLASS(x) class x
       
    40 #endif
       
    41 
       
    42 //  CLASS DEFINITION
       
    43 /**
       
    44  *
       
    45  * EUnitWizard generated test class. 
       
    46  *
       
    47  */
       
    48 NONSHARABLE_CLASS( UT_CMccFileSink )
       
    49      : public CEUnitTestSuiteClass
       
    50     {
       
    51     public:     // Constructors and destructors
       
    52 
       
    53         /**
       
    54          * Two phase construction
       
    55          */
       
    56         static UT_CMccFileSink* NewL();
       
    57         static UT_CMccFileSink* NewLC();
       
    58         /**
       
    59          * Destructor
       
    60          */
       
    61         ~UT_CMccFileSink();
       
    62 
       
    63     private:    // Constructors and destructors
       
    64 
       
    65         UT_CMccFileSink();
       
    66         void ConstructL();
       
    67 
       
    68     public:     // From observer interface
       
    69 
       
    70         
       
    71 
       
    72     private:    // New methods
       
    73 
       
    74          void SetupL();
       
    75         
       
    76          void Teardown();
       
    77         
       
    78          void UT_CMccFileSink_NewSinkLL();
       
    79         
       
    80         
       
    81          void UT_CMccFileSink_ConstructSinkLL();
       
    82         
       
    83         
       
    84          void UT_CMccFileSink_CMccFileSinkL();
       
    85         
       
    86         
       
    87          void UT_CMccFileSink_SetFileNameLL();
       
    88         
       
    89         
       
    90          void UT_CMccFileSink_RecordTimeAvailableLL();
       
    91         
       
    92         
       
    93          void UT_CMccFileSink_SinkDataTypeCodeL();
       
    94         
       
    95         
       
    96          void UT_CMccFileSink_SetSinkDataTypeCodeL();
       
    97         
       
    98         
       
    99          void UT_CMccFileSink_BufferEmptiedLL();
       
   100         
       
   101         
       
   102          void UT_CMccFileSink_CanCreateSinkBufferL();
       
   103         
       
   104         
       
   105          void UT_CMccFileSink_CreateSinkBufferLL();
       
   106         
       
   107         
       
   108          void UT_CMccFileSink_SinkThreadLogonL();
       
   109         
       
   110         
       
   111          void UT_CMccFileSink_SinkThreadLogoffL();
       
   112         
       
   113         
       
   114          void UT_CMccFileSink_SinkPrimeLL();
       
   115         
       
   116         
       
   117          void UT_CMccFileSink_SinkPlayLL();
       
   118         
       
   119         
       
   120          void UT_CMccFileSink_SinkPauseLL();
       
   121         
       
   122         
       
   123          void UT_CMccFileSink_SinkStopLL();
       
   124         
       
   125         
       
   126          void UT_CMccFileSink_EmptyBufferLL();
       
   127          
       
   128          void UT_CMccFileSink_EmptyBufferL2L();
       
   129         
       
   130          void UT_CMccFileSink_BufferFilledLL();
       
   131                 
       
   132         
       
   133          void UT_CMccFileSink_MfcoDiskFullLL();
       
   134         
       
   135         
       
   136          void UT_CMccFileSink_MfcoSizeLimitReachedLL();
       
   137         
       
   138          void UT_CMccFileSink_TimeToPlayL();
       
   139          
       
   140          void UT_CMccFileSink_SetPausedDurationL();
       
   141          
       
   142          void UT_CMccFileSink_UpdateActiveUserL();
       
   143          
       
   144     private: // Helpers
       
   145     
       
   146          CMccTestEventHandler* AddUserL( TBool aIsAvc = EFalse );
       
   147          
       
   148     private:    // Data
       
   149 
       
   150         EUNIT_DECLARE_TEST_TABLE; 
       
   151         
       
   152         CMccFileSink* iFileSink;
       
   153 		CMMFDataBuffer* iBuffer;
       
   154 		CMccDlDataPath* iDLDataPathStub;
       
   155 		CMccTestEventHandler* iEventHandler;
       
   156 		CMccTestEventHandler* iEventHandler2;
       
   157 		CMccResourcePoolStub* iResourceStub;
       
   158     };
       
   159 
       
   160 #endif      //  __UT_CMCCFILESINK_H__
       
   161 
       
   162 // End of file