multimediacommscontroller/tsrc/componenttests/inc/test_secure.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_SECURE_H
       
    22 #define CTEST_SECURE_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32cons.h>
       
    26 #include "mmccnetworksettings.h"
       
    27 #include <mmccsrtpmasterkey.h>
       
    28 #include <mmccsrtpmastersalt.h>
       
    29 #include <mmccsrtpcryptoparams.h>
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CMccInterface;
       
    33 class CMccInterfaceStub;
       
    34 class CMccCodecInformation;
       
    35 class CMccSecureInterface;
       
    36 
       
    37 // CLASS
       
    38 class CTestSecure : public CBase
       
    39     {
       
    40     public:
       
    41         static CTestSecure* NewL( CConsoleBase& aConsole,
       
    42             const TMccNetSettings& aSettings, 
       
    43             CMccInterface& aIF, CMccInterfaceStub& aIFStub );
       
    44         
       
    45         virtual ~CTestSecure();
       
    46     
       
    47     public:
       
    48 
       
    49         void DoRunSecureTestsL();
       
    50     
       
    51     private:
       
    52 
       
    53         void DummyMethodL();
       
    54         void TestCreateSecureInterfaceL();
       
    55         void TestCreateCryptoContextL();
       
    56         void TestCreateInvalidCryptoContextL();
       
    57         void TestRemoveCryptoContextL();
       
    58         void TestUpdateCryptoContextL();
       
    59         void TestBindCryptoContextL();
       
    60         void TestBindCryptoContextAndRefreshContextL();
       
    61         void TestBindCryptoContextAndPrepareStreamL();
       
    62         void TestBindCryptoContextAndPrepareMultipleStreamsL();
       
    63 
       
    64         
       
    65     private:
       
    66     
       
    67         CTestSecure( CConsoleBase& aConsole,
       
    68                         const TMccNetSettings& aSettings,
       
    69                         CMccInterface& aIF,
       
    70                         CMccInterfaceStub& aIFStub );
       
    71         
       
    72         void ConstructL();
       
    73         
       
    74         void CreateSecureSessioLinkAddDlUlSinkSourceCreateStreamsL();
       
    75         void CloseSecureSessioL();
       
    76         
       
    77     
       
    78 
       
    79     private:
       
    80     
       
    81         CConsoleBase& iConsole;
       
    82         TMccNetSettings iNetsettings;
       
    83         CMccInterface& iInterface;
       
    84         CMccInterfaceStub& iInterfaceStub;
       
    85         
       
    86         CMccSecureInterface* iSecureInterface;
       
    87         TUint32 iContextId;
       
    88         TUint32 iContextId2;
       
    89         
       
    90         TUint32 iSessionId;
       
    91         TUint32 iLinkId;
       
    92         
       
    93         // DL
       
    94         TUint32 iRtpSourceId;
       
    95         TUint32 iAudioSinkId;
       
    96         TUint32 iDlStreamId;
       
    97         
       
    98         // UL
       
    99         TUint32 iRtpSinkId;
       
   100         TUint32 iMicSourceId;
       
   101         TUint32 iUlStreamId;
       
   102         
       
   103     };
       
   104     
       
   105 #endif //CTEST_SECURE_H
       
   106 
       
   107 // End of File