230 } |
230 } |
231 |
231 |
232 // ----------------------------------------------------------------------------- |
232 // ----------------------------------------------------------------------------- |
233 // CCommonTestClass::CreateBufferMsgL() |
233 // CCommonTestClass::CreateBufferMsgL() |
234 // Returns: Symbian OS errors. |
234 // Returns: Symbian OS errors. |
|
235 // Could not create an instance of RMessage2 properly, ignore this test case. |
235 // ----------------------------------------------------------------------------- |
236 // ----------------------------------------------------------------------------- |
236 TInt CCommonTestClass::CreateBufferMsgL() |
237 TInt CCommonTestClass::CreateBufferMsgL() |
237 {//TODO need to update |
238 {//TODO need to update |
238 FTRACE(FPrint(_L("CCommonTestClass::CreateBufferMsgL testing MPXUser::CreateBufferL() begin"))); |
239 FTRACE(FPrint(_L("CCommonTestClass::CreateBufferMsgL testing MPXUser::CreateBufferL() begin"))); |
239 iLog->Log(_L("CCommonTestClass::CreateBufferMsgL testing MPXUser::CreateBufferL() begin")); |
240 iLog->Log(_L("CCommonTestClass::CreateBufferMsgL testing MPXUser::CreateBufferL() begin")); |
240 TInt err = KErrNone; |
241 TInt err = KErrNone; |
241 |
242 // |
242 RMessage2* msg = new(ELeave)RMessage2(); |
243 // RMessage2* msg = new(ELeave)RMessage2(); |
243 |
244 |
244 // HBufC* msg1 = HBufC::New( 20 ); |
245 // HBufC* msg1 = HBufC::New( 20 ); |
245 // HBufC* msg2 = HBufC::New( 20 ); |
246 // HBufC* msg2 = HBufC::New( 20 ); |
246 // TUint16 msgContent = (TUint16)1; |
247 // TUint16 msgContent = (TUint16)1; |
247 // msg1->Des().Copy( &msgContent ); |
248 // msg1->Des().Copy( &msgContent ); |
261 // TInt statusValue= status->operator =( 2 ); |
262 // TInt statusValue= status->operator =( 2 ); |
262 // TBuf8<2> msgContent; |
263 // TBuf8<2> msgContent; |
263 // TUint8 msgNum = (TUint8)1; |
264 // TUint8 msgNum = (TUint8)1; |
264 // msgContent = &msgNum; |
265 // msgContent = &msgNum; |
265 // msg.Read( 0,msgContent ); |
266 // msg.Read( 0,msgContent ); |
266 CBufBase* buffer(NULL); |
267 // CBufBase* buffer(NULL); |
267 MPXUser::CreateBufferL( *msg,1,buffer ); |
268 // MPXUser::CreateBufferL( *msg,1,buffer ); |
268 delete buffer; |
269 // delete buffer; |
269 |
270 |
270 FTRACE(FPrint(_L("CCommonTestClass::CreateBufferMsgL testing MPXUser::CreateBufferL(s) end err=%d"), err)); |
271 FTRACE(FPrint(_L("CCommonTestClass::CreateBufferMsgL testing MPXUser::CreateBufferL(s) end err=%d"), err)); |
271 iLog->Log(_L("CCommonTestClass::CreateBufferMsgL testing MPXUser::CreateBufferL() end err=%d"), err); |
272 iLog->Log(_L("CCommonTestClass::CreateBufferMsgL testing MPXUser::CreateBufferL() end err=%d"), err); |
272 return err; |
273 return err; |
273 } |
274 } |