servicediscoveryandcontrol/pnp/test/upnp/unittests/tcpclient/inc/ctcpclienttestupnp8.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CTCPCLIENTTESTUPNP8_H_
       
    20 #define CTCPCLIENTTESTUPNP8_H_
       
    21 
       
    22 //----------------------------------------------------------//
       
    23 /////////////////// CTcpClientTestUPnP8 /////////////////////////
       
    24 //////Testcase: Send the test data from the test client/////////
       
    25 //----------------------------------------------------------//
       
    26 #include "atestsocket.h"
       
    27 
       
    28 NONSHARABLE_CLASS(CTcpClientTestUPnP8) : public CTcpClientTestBase,
       
    29 										public Messages::ASimpleNodeIdBase,
       
    30 										public MTestServerObserver,
       
    31 										public ATestSocket,
       
    32 										public MTcpClientTestCase
       
    33 	{
       
    34 public:
       
    35 	static CTcpClientTestUPnP8* NewL ( CProxyProvd* aProvd );
       
    36 
       
    37 	//MTestServerObserver
       
    38 	void OnTestServerEventL ( TInt aError );
       
    39 	MTcpClientTestCase* GetTestCase ();
       
    40 	CTestExecuteLogger& GetLogger ();
       
    41 	//MTcpClientTestCase
       
    42 	const TDesC& TestCaseName () const;
       
    43 	TInt TotalTransactionCount () const;	
       
    44 	TInt TransactionCount () const;
       
    45 	
       
    46 	const TDesC8& GetRawRequest ( TInt aTransIndex );
       
    47 	const TDesC8& GetRawResponse ( TInt aTransIndex );
       
    48 	
       
    49 	void NewData(TUint aCount);
       
    50 				
       
    51 	~CTcpClientTestUPnP8 ();
       
    52 
       
    53 	void ReceivedL ( const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage );
       
    54 	
       
    55 private:
       
    56 		
       
    57 	CTcpClientTestUPnP8 ( CProxyProvd* aProvd );
       
    58 	void ConstructL ();
       
    59 	virtual TVerdict RunTestL ();
       
    60 	
       
    61 private:	
       
    62 	CTestTcpServer*				iTestServer;
       
    63 	Messages::TNodeId 			iClientId;	
       
    64 	RTimer						iTimer;
       
    65 		
       
    66 	CSubConnectionFlowBase* 	iFlow;
       
    67 	MSessionData* 				iSSPData;
       
    68 	MFlowBinderControl* 		iFlowBinder;
       
    69 	MSessionControl* 			iSSP;
       
    70 	
       
    71 	};
       
    72 
       
    73 
       
    74 #endif /*CTCPCLIENTTESTUPNP8_H_*/
       
    75 
       
    76