multimediacommscontroller/tsrc/componenttests/inc/test_interface.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2006 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 CTEST_INTERFACE_H
       
    22 #define CTEST_INTERFACE_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <e32cons.h>
       
    27 #include "mmccnetworksettings.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CMccInterface;
       
    31 class CMccInterfaceStub;
       
    32 class CMccCodecInformation;
       
    33 
       
    34 // CLASS
       
    35 class CTestInterface : public CBase
       
    36     {
       
    37     public:
       
    38         static CTestInterface* NewL( CConsoleBase& aConsole,
       
    39             const TMccNetSettings& aSettings, 
       
    40             CMccInterface& aIF, CMccInterfaceStub& aIFStub );
       
    41         
       
    42         virtual ~CTestInterface();
       
    43     
       
    44     public:
       
    45 
       
    46         void DoRunInterfaceTestsL();
       
    47     
       
    48     private:
       
    49 
       
    50         // BASIC TESTS WITH SINGLE STREAM AT A TIME
       
    51         void TestGetCapabilitiesL() const;
       
    52         
       
    53         void TestSingleSessionCreationL();
       
    54         
       
    55         void TestSingleLinkCreationL();
       
    56         
       
    57         void TestSingleStreamCreationL();
       
    58         
       
    59         void TestSingleStreamPreparingL( TInt aLinkType, TInt aStreamType,
       
    60             TUid aDataSource, TUid aDataSink, const TDesC8& aCodec );
       
    61         
       
    62         void TestSingleStreamPlayingL( TInt aLinkType, TInt aStreamType,
       
    63             TUid aDataSource, TUid aDataSink, const TDesC8& aCodec );
       
    64         
       
    65         void TestSingleStreamPausingL(  TInt aLinkType, TInt aStreamType,
       
    66             TUid aDataSource, TUid aDataSink, const TDesC8& aCodec );
       
    67             
       
    68         void TestAudioMuteL();
       
    69         
       
    70         void TestSetCodecL();
       
    71         
       
    72         void TestGetCodecL();
       
    73         
       
    74         void TestGetSSRCL();
       
    75         
       
    76         void TestInactivityTimerL();
       
    77         
       
    78         // MULTI STREAM TESTS
       
    79         void TestMultiStreamLinkSessionL();
       
    80         
       
    81         void TestFastShutdownsL();
       
    82         
       
    83         void TestResourceReuseL();
       
    84         
       
    85         void TestMultiStreamPreparingL();
       
    86         
       
    87         // CAN BE TESTED PROPERLY ONLY IN HW
       
    88         void TestAudioStreamingL( const TDesC8& aCodec );
       
    89         
       
    90         void TestMultiStreamPausingL();
       
    91         
       
    92         void TestAmrFecL();
       
    93         
       
    94         void TestRedundancyL( const TDesC8& aCodec );
       
    95         
       
    96         void TestAudioRoutingL();
       
    97         
       
    98     private:
       
    99     
       
   100         CTestInterface( CConsoleBase& aConsole,
       
   101                         const TMccNetSettings& aSettings,
       
   102                         CMccInterface& aIF,
       
   103                         CMccInterfaceStub& aIFStub );
       
   104         
       
   105         void ConstructL();
       
   106     
       
   107         CMccCodecInformation* FetchCodecByMimeSubtypeNameL( 
       
   108             const CMccInterface& aInterface, const TDesC8& aName ) const;
       
   109         
       
   110     private:
       
   111     
       
   112         CConsoleBase& iConsole;
       
   113         TMccNetSettings iNetsettings;
       
   114         CMccInterface& iInterface;
       
   115         CMccInterfaceStub& iIfStub;
       
   116     };
       
   117     
       
   118 #endif //CTEST_INTERFACE_H
       
   119 
       
   120 // End of File