natfw/natfwicecandidatehandler/tsrc/ut_icecandidatehandler/inc/icecandidatehandlertestdefs.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2007 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 ICECANDIDATEHANDLERTESTDEFS_H
       
    22 #define ICECANDIDATEHANDLERTESTDEFS_H
       
    23 
       
    24 #include <digia/eunit/CEunitAllocTestCaseDecorator.h>
       
    25 #include <in_sock.h>
       
    26 /*
       
    27 _LIT8( KNatPluginIdNokiaIce, "nokia.ice" );
       
    28 _LIT8( KNatPluginTypeTurn, "turn" );
       
    29 _LIT8( KNatPluginTypeStun, "stun" );
       
    30 _LIT8( KNatPluginTypeHost, "host" );
       
    31 */
       
    32 _LIT8( KTestDomain, "nokia.com" );
       
    33 const TUint32 KTestIap                  = 6;
       
    34 
       
    35 _LIT8( KUsername, "user" );
       
    36 _LIT8( KPassword, "pass" );
       
    37 
       
    38 const TUint KComponentIdRtp             = 1;
       
    39 const TUint KComponentIdRtcp            = 2;
       
    40 
       
    41 const TUint KTestStreamIdRtp1           = 1;
       
    42 const TUint KTestStreamIdRtcp1          = 2;
       
    43 const TUint KTestStreamIdRtp2           = 3;
       
    44 const TUint KTestStreamIdRtcp2          = 4;
       
    45 const TUint KTestStreamCollectionId1    = 1;
       
    46 const TUint KTestStreamCollectionId2    = 2;
       
    47 
       
    48 const TUint32 KTestAddressRtp1( INET_ADDR( 192, 168, 1, 1 ) );
       
    49 const TUint32 KTestPortRtp1( 5000 );
       
    50 
       
    51 const TUint32 KTestAddressRtcp1( INET_ADDR( 192, 168, 1, 1 ) );
       
    52 const TUint32 KTestPortRtcp1( 5001 );
       
    53 
       
    54 const TUint32 KLocalAddr = INET_ADDR( 10, 0, 1, 1 );
       
    55 const TUint KLocalPort = 5000;
       
    56 
       
    57 const TUint32 KRemoteAddr = INET_ADDR( 16, 0, 0, 1 );
       
    58 const TUint KRemotePort = 10000;
       
    59 
       
    60 const TUint32 KMappedAddr = INET_ADDR( 192, 168, 1, 2 );
       
    61 const TUint KMappedPort = 16384;
       
    62 
       
    63 const TUint KTaTimerValueForGathering   = 20;
       
    64 const TUint KTaTimerValueForChecks      = 20;
       
    65 
       
    66 class TIceTestUtils
       
    67     {
       
    68 public:
       
    69     static TBool AllocTestEnabled()
       
    70         {
       
    71         CEUnitTestCaseDecorator* decorator 
       
    72             = CEUnitTestCaseDecorator::ActiveTestCaseDecorator( 
       
    73             KEUnitAllocTestCaseDecoratorName );
       
    74         return ( decorator ? ETrue : EFalse );
       
    75         }
       
    76     };
       
    77 
       
    78 #endif // ICECANDIDATEHANDLERTESTDEFS_H