|
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 // |
|
15 |
|
16 |
|
17 #ifndef __PARAM_MESS_NAME_H_ |
|
18 #define __PARAM_MESS_NAME_H_ |
|
19 |
|
20 //Include the suite header |
|
21 #include "csuite.h" |
|
22 |
|
23 PARAM_FOREACH_LIST_BEGIN |
|
24 #include "PARAM_SVR_LISTHEADERFILE" |
|
25 PARAM_FOREACH_LIST_END |
|
26 |
|
27 |
|
28 class CPARAM_MESS_NAMEStep: public CCapabilityTestStep |
|
29 { |
|
30 public: |
|
31 |
|
32 //Get the version of the server to be called |
|
33 TVersion Version() |
|
34 { |
|
35 return TVersion(PARAM_SVR_MAJORNAME, PARAM_SVR_MINORNAME, PARAM_SVR_BUILDNAME); |
|
36 } |
|
37 |
|
38 //Constructor called from the respective Suite.cpp from their "AddTestStep" function |
|
39 CPARAM_MESS_NAMEStep(); |
|
40 |
|
41 //Always clean your mess |
|
42 ~CPARAM_MESS_NAMEStep() |
|
43 { |
|
44 tChildThread.Close(); |
|
45 } |
|
46 |
|
47 //This is the Function called from "doTestStepL" by the test Suite,and it creates an |
|
48 //child thread which internally calls the corresponding Exec_SendReceive_SERVERNAME fn. |
|
49 TVerdict MainThread(); |
|
50 |
|
51 //Here's where the connection and testing the message takes place |
|
52 TInt Exec_SendReceive(); |
|
53 }; |
|
54 |
|
55 #endif // __PARAM_MESS_NAME_H_ |
|
56 |
|
57 |
|
58 |