telephonyserverplugins/multimodetsy/test/Te_LoopBack/Te_Loopbackcfailinits.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 1997-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 // Test out the TSY with a series of slightly strange modem initialisation responses
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent 
       
    21 */
       
    22 
       
    23 #ifndef __CFAILINITS_H__
       
    24 #define __CFAILINITS_H__
       
    25 
       
    26 #include "Te_LoopbackTestStepBase.h"
       
    27 #include "Te_LoopBackScriptEng.h"
       
    28 
       
    29 //
       
    30 // First a script with a strange +CNMI sequence
       
    31 //
       
    32 const struct TScript KFailInitAScript[]= {
       
    33 	{	EWait,		NULL,		1, ETimeOutEvent	},
       
    34 	{	EComplete,	NULL,		0, 0				}
       
    35 	};
       
    36 
       
    37 class CTestDriveFailInit : public CTestBase
       
    38 	{
       
    39 public:
       
    40 	static CTestDriveFailInit* NewL(const TScriptList aScriptListEntry);
       
    41 	virtual TInt RunTestL();
       
    42 
       
    43 protected:
       
    44 	virtual TInt DriveETelApiL();
       
    45 
       
    46 private:
       
    47 	CTestDriveFailInit(const TScriptList aScriptListEntry);
       
    48 	TScriptList iScriptListEntry;
       
    49 	};
       
    50 
       
    51 class CTestFailInit : public CATScriptEng
       
    52 	{
       
    53 public:
       
    54 	static CTestFailInit* NewL(const TScript* aScript);
       
    55 	virtual void SpecificAlgorithmL(TInt aParam);
       
    56 	virtual void Complete(TInt aError);
       
    57 	virtual TInt Start();
       
    58 
       
    59 private:
       
    60 	CTestFailInit(const TScript* aScript);
       
    61 	void ConstructL();
       
    62 	const TScript* iScript;
       
    63 	};
       
    64 
       
    65 #endif