|
1 // Copyright (c) 1997-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 #ifndef PARAM_MESS_NAME_H_ |
|
17 #define PARAM_MESS_NAME_H_ |
|
18 |
|
19 //Include the suite header |
|
20 #include "CSuite.h" |
|
21 |
|
22 PARAM_FOREACH_LIST_BEGIN |
|
23 #include "PARAM_SVR_LISTHEADERFILE" |
|
24 PARAM_FOREACH_LIST_END |
|
25 |
|
26 |
|
27 class CPARAM_MESS_NAMEStep: public CCapabilityTestStep |
|
28 { |
|
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 |
|
39 //Constructor called from the respective Suite.cpp from their "AddTestStep" function |
|
40 CPARAM_MESS_NAMEStep() ; |
|
41 |
|
42 //Always clean your mess |
|
43 ~CPARAM_MESS_NAMEStep() |
|
44 { |
|
45 CLOSE_AND_WAIT(tChildThread); |
|
46 } |
|
47 |
|
48 //This is the Function called from "doTestStepL" by the test Suite,and it creates an |
|
49 //child thread which internally calls the corresponding Exec_SendReceive_SERVERNAME fn. |
|
50 TVerdict MainThread(); |
|
51 |
|
52 //Here's where the connection and testing the message takes place |
|
53 TInt Exec_SendReceive(); |
|
54 |
|
55 }; |
|
56 |
|
57 #endif |
|
58 |