|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Contains declaration of CTestServerSocket that is |
|
15 // container class for all the Socket test steps |
|
16 // |
|
17 // |
|
18 |
|
19 #if (!defined __TESTSUITESOCKET_H__) |
|
20 #define __TESTSUITESOCKET_H__ |
|
21 |
|
22 #include <test/testexecuteserverbase.h> |
|
23 #include <es_sock.h> |
|
24 |
|
25 //Some Macros for adding test steps |
|
26 |
|
27 #define START_TEST_STEP_LIST |
|
28 |
|
29 #define ADD_TEST_STEP(c) \ |
|
30 if (aStepName == c::GetTestName()) \ |
|
31 { \ |
|
32 c* ret = new(ELeave) c; \ |
|
33 ret->SetTestStepName(c::GetTestName()); \ |
|
34 return ret; \ |
|
35 }\ |
|
36 else |
|
37 |
|
38 #define END_TEST_STEP_LIST \ |
|
39 { \ |
|
40 return NULL; \ |
|
41 } |
|
42 |
|
43 //--------------------------------- |
|
44 |
|
45 class CTestServerSocket : public CTestServer |
|
46 { |
|
47 public: |
|
48 CTestServerSocket(); |
|
49 ~CTestServerSocket(); |
|
50 static CTestServerSocket* NewL(); |
|
51 virtual CTestStep* CreateTestStep(const TDesC& aStepName); |
|
52 |
|
53 // TPtrC GetVersion( void ); |
|
54 |
|
55 RSocketServ iSocketServer; |
|
56 |
|
57 private: |
|
58 }; |
|
59 |
|
60 #endif /* __TESTSUITESOCKET_H__ */ |
|
61 |