os/ossrv/lowlevellibsandfws/apputils/bsul/test/t_clientmessage/t_clientmessagetestserver.h
Update contrib.
1 // Copyright (c) 2008-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Test server code for validating CClientMessage Framework
18 #if !defined(T_CLIENTMESSAGETESTSERVERH)
19 #define T_CLIENTMESSAGETESTSERVERH
23 #include <bsul/bsul.h>
26 /* These types are used in testing to pass as TPckg parameter type data
45 CMTestStruct1* iStruct;
50 enum TTestServerMessages
88 enum TParameterTestFunctions
101 /* Server class. Very basic server implementation
103 class CClientMessageTestServer : public CServer2
107 static CServer2* NewLC();
110 virtual TInt RunError(TInt aError);
113 CClientMessageTestServer(TInt aPriority);
115 CSession2* NewSessionL(const TVersion &aVersion, const RMessage2& aMessage) const;
119 /* Server Session class. Basic implementation of session and associated test functions
121 class CClientMessageTestSession : public CSession2
125 CClientMessageTestSession(){};
126 virtual void CreateL(const CServer2& aServer);
130 void TestFunction0L();
131 void TestFunction1L();
132 void TestFunction4L();
133 void TestFunction5L();
134 void TestFunction6L();
135 void TestFunction7L();
136 void TestFunction9L();
137 void TestFunction10L();
138 void TestFunction11L();
139 void TestFunction14L();
140 void TestFunction15L();
141 void TestFunction16L();
142 void TestFunction17L();
143 void TestFunction18L();
144 void TestFunction19L();
145 void TestFunction31L();
148 ~CClientMessageTestSession();
149 void ServiceL(const RMessage2& aMessage);
151 BSUL::CClientMessage* iClientMessage;
156 /* Server class. Very basic server implementation
158 class CClientMessageTestServer2 : public CServer2
162 static CServer2* NewLC();
165 virtual TInt RunError(TInt aError);
168 CClientMessageTestServer2(TInt aPriority);
170 CSession2* NewSessionL(const TVersion &aVersion, const RMessage2& aMessage) const;
174 /* Server Session class. Basic implementation of session and associated test functions
176 class CClientMessageTestSession2 : public CSession2
180 CClientMessageTestSession2(){};
181 virtual void CreateL(const CServer2& aServer);
184 void TestFunction0L();
185 void TestFunction1L();
186 void TestFunction2L();
189 ~CClientMessageTestSession2();
190 void ServiceL(const RMessage2& aMessage);
192 BSUL::CClientMessage* iClientMessage;