servicediscoveryandcontrol/pnp/test/upnp/unittests/tcpserver/inc/ctcpservertestupnp41.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 CTCPSERVERTESTUPNP41_H_
       
    20 #define CTCPSERVERTESTUPNP41_H_
       
    21 
       
    22 #include "atestsocket.h"
       
    23 
       
    24 NONSHARABLE_CLASS(CTcpServerTestUPnP41) : public CTcpServerTestCase,
       
    25 										  public ATestSocket
       
    26 																			
       
    27 	{
       
    28 public:
       
    29 	static CTcpServerTestUPnP41* NewL ( CProxyProvd* aProvd );
       
    30 	~CTcpServerTestUPnP41 ();
       
    31 
       
    32 	void RecvComplete ( RMBufChain& aData );
       
    33 	void NewData(TUint aCount);
       
    34 	void SendComplete ( TInt /*aLength*/ );
       
    35 	void ReceivedL ( const TRuntimeCtxId& /*aSender*/, const TNodeId& /*aRecipient*/, TSignatureBase& aMessage );
       
    36 private:
       
    37 		
       
    38 	CTcpServerTestUPnP41 ( CProxyProvd* aProvd );
       
    39 	void ConstructL ();
       
    40 	virtual TVerdict RunTestL ();
       
    41 	
       
    42 	CSubConnectionFlowBase* 	iFlow;
       
    43 	MSessionData* 				iSSPData;
       
    44 	MFlowBinderControl* 		iFlowBinder;
       
    45 	MSessionControl* 			iSSP;
       
    46 	TBool						iSentHeaders;
       
    47 	TBool						iIsWriteDone;
       
    48 	TUint						iResponseLength;
       
    49 	};
       
    50 
       
    51 
       
    52 NONSHARABLE_CLASS(CTcpServerTestUPnP42) : public CTcpServerTestCase,
       
    53 										  public ATestSocket
       
    54 																			
       
    55 	{
       
    56 public:
       
    57 	static CTcpServerTestUPnP42* NewL ( CProxyProvd* aProvd );
       
    58 	~CTcpServerTestUPnP42 ();
       
    59 
       
    60 	void RecvComplete ( RMBufChain& aData );
       
    61 	void NewData(TUint aCount);
       
    62 	void SendComplete ( TInt /*aLength*/ );
       
    63 	void ReceivedL ( const TRuntimeCtxId& /*aSender*/, const TNodeId& /*aRecipient*/, TSignatureBase& aMessage );
       
    64 private:
       
    65 		
       
    66 	CTcpServerTestUPnP42 ( CProxyProvd* aProvd );
       
    67 	void ConstructL ();
       
    68 	virtual TVerdict RunTestL ();
       
    69 	
       
    70 	CSubConnectionFlowBase* 	iFlow;
       
    71 	MSessionData* 				iSSPData;
       
    72 	MFlowBinderControl* 		iFlowBinder;
       
    73 	MSessionControl* 			iSSP;
       
    74 	TBool						iSentHeaders;
       
    75 	TBool						iIsWriteDone;
       
    76 	TUint						iResponseLength;
       
    77 	};
       
    78 
       
    79 
       
    80 
       
    81 
       
    82 #endif /*CTCPSERVERTESTUPNP41_H_*/