datacommsserver/esockserver/test/TS_MultiHoming/TS_CheckLinkLocalSame.cpp
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2002-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 checks that the link-local addresses on 2 conns
       
    15 // are the same
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21 */
       
    22  
       
    23 #include "TS_CheckLinkLocalSame.h"
       
    24 
       
    25 /* 
       
    26  * 
       
    27  */
       
    28 CTS_CheckLinkLocalSame::CTS_CheckLinkLocalSame()
       
    29 	{
       
    30 	iTestStepName = KCheckLinkLocalSame;
       
    31 	}
       
    32 
       
    33 CTS_CheckLinkLocalSame::~CTS_CheckLinkLocalSame()
       
    34 	{	
       
    35 	}
       
    36 
       
    37 enum TVerdict CTS_CheckLinkLocalSame::doTestStepPreambleL(void)
       
    38 /**
       
    39  * Implements OOM testing in each test
       
    40  */
       
    41 	{
       
    42 	if (!(GetBoolFromConfig(KCheckLinkLocalSame,KOomTest,iIsOOMTest)))
       
    43 		iIsOOMTest=EFalse;
       
    44 	return EPass;
       
    45 	}
       
    46 
       
    47 
       
    48 enum TVerdict CTS_CheckLinkLocalSame::doTestStepL(void)
       
    49 	{
       
    50 	TBool expectSameAddr = TRUE;
       
    51 	TBool same;
       
    52 	GetBoolFromConfig(KCheckLinkLocalSame,KExpectSameAddress,expectSameAddr);
       
    53 	
       
    54 	same = iOwnerSuite->CompareLinkLocalAddressesL();
       
    55 
       
    56 	if (same && expectSameAddr)
       
    57 		return EPass;
       
    58 	else
       
    59 		return EFail;
       
    60 	}
       
    61 
       
    62