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