datacommsserver/esockserver/test/TE_ESock/EsockTestSection28.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This is the header file for ESOCK test section 28
       
    15 // 
       
    16 //
       
    17 
       
    18 
       
    19 #if (!defined __ESOCKTEST_28_H__)
       
    20 #define __ESOCKTEST_28_H__
       
    21 #include "TestStepEsock.h"
       
    22 
       
    23 const TInt KErrDndNameNotFound = -5120;
       
    24 const TInt KMaxAddressTextSize = 64;		// at least 39 + 11 (size of IPv6 address + size of '%' and scope)
       
    25 
       
    26 // entries in ini file section for Test_28.<n>
       
    27 
       
    28 _LIT(KSection28, "Test_28");
       
    29 _LIT(KKeyEthernet, "ethernet");
       
    30 _LIT(KKeyIap, "iap");
       
    31 _LIT(KKeyPrimary, "primary");
       
    32 _LIT(KKeySecondary, "secondary");
       
    33 
       
    34 
       
    35 class CEsockTest28 : public CESockTestStep_OOMCapable
       
    36 	{
       
    37 	protected:
       
    38 		~CEsockTest28();
       
    39 		void NameInit();
       
    40 		TInt NameAppendL(const TDesC& aName);
       
    41 		TBool NameFound(const TDesC& aName);
       
    42 		void NamePrint();
       
    43 		TVerdict Ipv6StaticDnsTestL(TInt aSubStep);
       
    44 	private:
       
    45 		RPointerArray<HBufC> iNames;
       
    46 	};
       
    47 
       
    48 
       
    49 class CEsockTest28_1 : public CEsockTest28
       
    50 	{
       
    51 	public:
       
    52 		static const TDesC& GetTestName();
       
    53 		virtual enum TVerdict doTestStepPreambleL( void );
       
    54 		virtual enum TVerdict easyTestStepL();
       
    55 	};
       
    56 
       
    57 class CEsockTest28_2 : public CEsockTest28
       
    58 	{
       
    59 	public:
       
    60 		static const TDesC& GetTestName();
       
    61 		virtual enum TVerdict easyTestStepL();
       
    62 	};
       
    63 
       
    64 #endif
       
    65