tcpiputils/dnd/Test/te_dnssuffix/src/te_dnssuffixtestblock.cpp
branchRCL_3
changeset 21 abbed5a4b42a
parent 20 7e41d162e158
child 22 8d540f55e491
equal deleted inserted replaced
20:7e41d162e158 21:abbed5a4b42a
     1 // Copyright (c) 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 // Contains the implementation of TEF3.0 respective test block
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 /**
       
    20  @file
       
    21  @internalTechnology
       
    22 */
       
    23 
       
    24 #include "te_dnssuffixtestblock.h" 
       
    25 #include "te_dnssuffixtestwrapper.h"
       
    26 /**
       
    27 Function to manage the wrapper object instantiation. As part of this test suite, 
       
    28 only one wrapper is used.
       
    29 
       
    30 This function is called by the TestEngine while parsing the CREATE_OBJECT command
       
    31 in the script file.
       
    32 
       
    33 @return Returns the wrapper instance pointer
       
    34 @param aData Name of the wrapper has to be instantiated.
       
    35 */
       
    36 CDataWrapper* CVirtualTunnelTestBlock::CreateDataL(const TDesC& aData)
       
    37 	{
       
    38 	CDataWrapper* wrapper = NULL;
       
    39 	if (KDNSSuffixTestWrapper() == aData)
       
    40 		{
       
    41 		wrapper = CDNSSuffixTestWrapper::NewL();
       
    42 		}
       
    43 	return wrapper;
       
    44 	}