|
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 CTCPCLIENTTESTUPNP13_H_ |
|
20 #define CTCPCLIENTTESTUPNP13_H_ |
|
21 |
|
22 //----------------------------------------------------------// |
|
23 /////////////////// CTcpClientTestUPnP13 ///////////////////////// |
|
24 //////Testcase: Send the test data from the test client///////// |
|
25 //----------------------------------------------------------// |
|
26 #include "atestsocket.h" |
|
27 |
|
28 NONSHARABLE_CLASS(CTcpClientTestUPnP13) : public CTcpClientTestBase, |
|
29 public Messages::ASimpleNodeIdBase, |
|
30 public MTestServerObserver, |
|
31 public ATestSocket, |
|
32 public MTcpClientTestCase |
|
33 { |
|
34 public: |
|
35 static CTcpClientTestUPnP13* 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 ~CTcpClientTestUPnP13 (); |
|
52 |
|
53 void ReceivedL ( const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage ); |
|
54 |
|
55 private: |
|
56 |
|
57 CTcpClientTestUPnP13 ( 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 /*CTCPCLIENTTESTUPNP13_H_*/ |