linklayerprotocols/tundriver/te_tundriver/src/te_tundrivertestblock.cpp
branchRCL_3
changeset 23 425d8f4f7fa5
equal deleted inserted replaced
22:8d540f55e491 23:425d8f4f7fa5
       
     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 te_tundrivertestblock.cpp
       
    21  @internalTechnology
       
    22 */
       
    23 
       
    24 #include "te_tundrivertestblock.h" 
       
    25 
       
    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* CTunDriverTestBlock::CreateDataL(const TDesC& aData)
       
    37 	{
       
    38 	CDataWrapper* wrapper = NULL;
       
    39 	if (KTunDriverTestWrapper() == aData)
       
    40 		{
       
    41 		wrapper = CTunDriverTestWrapper::NewL();
       
    42 		}
       
    43 	return wrapper;
       
    44 	}