servicediscoveryandcontrol/pnp/test/upnp/unittests/tcpclient/inc/ctcpclienttestupnp7.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 #ifndef CTCPCLIENTTESTUPNP7_H_
       
    19 #define CTCPCLIENTTESTUPNP7_H_
       
    20 
       
    21 //----------------------------------------------------------//
       
    22 /////////////////// CTcpClientTestUPnP7 /////////////////////////
       
    23 //////Testcase: Send the test data from the test client/////////
       
    24 //----------------------------------------------------------//
       
    25 #include "atestsocket.h"
       
    26 
       
    27 NONSHARABLE_CLASS(CTcpClientTestUPnP7) : public CTcpClientTestBase,
       
    28 										public Messages::ASimpleNodeIdBase,
       
    29 										public MTestServerObserver,
       
    30 										public ATestSocket,
       
    31 										public MTcpClientTestCase
       
    32 	{
       
    33 public:
       
    34 	static CTcpClientTestUPnP7* NewL ( CProxyProvd* aProvd );
       
    35 
       
    36 	//MTestServerObserver
       
    37 	void OnTestServerEventL ( TInt aError );
       
    38 	MTcpClientTestCase* GetTestCase ();
       
    39 	CTestExecuteLogger& GetLogger ();
       
    40 	//MTcpClientTestCase
       
    41 	const TDesC& TestCaseName () const;
       
    42 	TInt TotalTransactionCount () const;	
       
    43 	TInt TransactionCount () const;
       
    44 	
       
    45 	const TDesC8& GetRawRequest ( TInt aTransIndex );
       
    46 	const TDesC8& GetRawResponse ( TInt aTransIndex );
       
    47 	
       
    48 					
       
    49 	~CTcpClientTestUPnP7 ();
       
    50 
       
    51 	void ReceivedL ( const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage );
       
    52 	
       
    53 private:
       
    54 		
       
    55 	CTcpClientTestUPnP7 ( CProxyProvd* aProvd );
       
    56 	void ConstructL ();
       
    57 	virtual TVerdict RunTestL ();
       
    58 	
       
    59 private:	
       
    60 	CTestTcpServer*				iTestServer;
       
    61 	Messages::TNodeId 			iClientId;	
       
    62 	RTimer						iTimer;
       
    63 		
       
    64 	CSubConnectionFlowBase* 	iFlow;
       
    65 	MSessionData* 				iSSPData;
       
    66 	MFlowBinderControl* 		iFlowBinder;
       
    67 	MSessionControl* 			iSSP;
       
    68 	
       
    69 	};
       
    70 
       
    71 
       
    72 #endif /*CTCPCLIENTTESTUPNP7_H_*/
       
    73 
       
    74