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