|
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 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef PARAM_MESS_NAME_H_ |
|
22 #define PARAM_MESS_NAME_H_ |
|
23 |
|
24 //Include the suite header |
|
25 #include "CSuite.h" |
|
26 #include <ss_std.h> |
|
27 #include "comms-infras/SOCKMES.H" |
|
28 #include <es_enum_internal.h> |
|
29 #include <es_sock_internal.h> |
|
30 #include <in_sock_internal.h> |
|
31 #include <rsshared.h> |
|
32 |
|
33 PARAM_FOREACH_LIST_BEGIN |
|
34 #include "PARAM_SVR_LISTHEADERFILE" |
|
35 PARAM_FOREACH_LIST_END |
|
36 |
|
37 |
|
38 class CPARAM_MESS_NAMEStep: public CCapabilityTestStep |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 //Get the version of the server to be called |
|
44 TVersion Version() |
|
45 { |
|
46 return TVersion(PARAM_SVR_MAJORNAME, PARAM_SVR_MINORNAME, PARAM_SVR_BUILDNAME); |
|
47 } |
|
48 |
|
49 |
|
50 //Constructor called from the respective Suite.cpp from their "AddTestStep" function |
|
51 CPARAM_MESS_NAMEStep(TBool aUpsAuthorisationGranted); |
|
52 |
|
53 //Always clean your mess |
|
54 ~CPARAM_MESS_NAMEStep() |
|
55 { |
|
56 tChildThread.Close(); |
|
57 } |
|
58 |
|
59 //This is the Function called from "doTestStepL" by the test Suite,and it creates an |
|
60 //child thread which internally calls the corresponding Exec_SendReceive_SERVERNAME fn. |
|
61 TVerdict MainThread(); |
|
62 |
|
63 //Here's where the connection and testing the message takes place |
|
64 TInt Exec_SendReceive(); |
|
65 |
|
66 private: |
|
67 TInt iSSRef; |
|
68 TInt do_async_sr(const TInt aMess, const TInt aCancelMess, const TIpcArgs& aArgs); |
|
69 // Cancel action prematurely |
|
70 TInt do_sync_cancel(const TInt aMess, const TInt aCancelMess, const TIpcArgs& aArgs); |
|
71 TInt do_async_cancel(const TInt aMess, const TInt aCancelMess, const TIpcArgs& aArgs); |
|
72 |
|
73 TInt MakeSubsession(); |
|
74 |
|
75 TInt do_execute(Int2Type<ESoCreate>); |
|
76 TInt do_execute(Int2Type<ESoRecv>); |
|
77 TInt do_execute(Int2Type<ESoCancelRecv>); |
|
78 TInt do_execute(Int2Type<ESoRecvOneOrMore>); |
|
79 TInt do_execute(Int2Type<ESoRecvOneOrMoreNoLength>); |
|
80 TInt do_execute(Int2Type<ESoRead>); //new |
|
81 TInt do_execute(Int2Type<ESoWrite>); //new |
|
82 TInt do_execute(Int2Type<ESoSend>); |
|
83 TInt do_execute(Int2Type<ESoCancelSend>); //new |
|
84 TInt do_execute(Int2Type<ESoCancelAll>); |
|
85 TInt do_execute(Int2Type<ESoSendTo>); |
|
86 TInt do_execute(Int2Type<ESoRecvFrom>); |
|
87 TInt do_execute(Int2Type<ESoConnect>); // done |
|
88 TInt do_execute(Int2Type<ESoShutdown>); |
|
89 TInt do_execute(Int2Type<ESoCancelConnect>); //new |
|
90 TInt do_execute(Int2Type<ESoBind>); // done |
|
91 TInt do_execute(Int2Type<ESoAccept>); |
|
92 TInt do_execute(Int2Type<ESoCancelAccept>); //new |
|
93 TInt do_execute(Int2Type<ESoListen>); |
|
94 |
|
95 TInt do_execute(Int2Type<ESoSetOpt>); |
|
96 TInt do_execute(Int2Type<ESoGetOpt>); //new |
|
97 TInt do_execute(Int2Type<ESoIoctl>); |
|
98 TInt do_execute(Int2Type<ESoCancelIoctl>); //new |
|
99 TInt do_execute(Int2Type<ESoGetDiscData>); |
|
100 TInt do_execute(Int2Type<ESoGetLocalName>); |
|
101 TInt do_execute(Int2Type<ESoGetRemoteName>); |
|
102 TInt do_execute(Int2Type<ESoReference>); //new |
|
103 TInt do_execute(Int2Type<ESoSocketInfo>); // new |
|
104 |
|
105 TInt do_execute(Int2Type<ESoCreateWithSubConnection>); |
|
106 |
|
107 }; |
|
108 |
|
109 #endif |
|
110 |