telephonyserver/etelmultimode/TETEL/te_EtelMM/TE_mmussd.cpp
branchopencode
changeset 77 930a53cdc2d3
parent 24 6638e7f4bd8f
--- a/telephonyserver/etelmultimode/TETEL/te_EtelMM/TE_mmussd.cpp	Fri Jun 04 13:03:15 2010 +0100
+++ b/telephonyserver/etelmultimode/TETEL/te_EtelMM/TE_mmussd.cpp	Thu Oct 07 19:32:01 2010 +0300
@@ -114,6 +114,27 @@
 	else
 		INFO_PRINTF2(_L("Test %d - RMobileUssdMessaging::SendMessage (async & cancel (Request Not Cancelled)) passed"), iTestCount++);
 
+	sendMsg = DMMTSY_USSD_MESSAGE_PDU;
+	sendAtts.iFlags = DMMTSY_USSD_ATTRIBUTE_FLAGS;
+	sendAtts.iFormat = DMMTSY_USSD_ATTRIBUTE_FORMAT;
+	sendAtts.iType = DMMTSY_USSD_ATTRIBUTE_TYPE;
+	sendAtts.iDcs = DMMTSY_USSD_ATTRIBUTE_DCS;
+		
+	ussdMessaging.SendMessage(reqStatus, sendMsg, sendAttsPckg, RMobileUssdMessaging::ETransferToDefaultHandler);
+	User::WaitForRequest(reqStatus);
+	TEST(reqStatus.Int()==KErrNone);
+	INFO_PRINTF2(_L("Test %d - RMobileUssdMessaging::SendMessage /EMobileUssdMessagingSendMessageDefaultHandler/  passed"), iTestCount++);
+	
+	// asynchronous & cancel	
+	ussdMessaging.SendMessage(reqStatus, sendMsg, sendAttsPckg, RMobileUssdMessaging::ETransferToDefaultHandler);
+	ussdMessaging.CancelAsyncRequest(EMobileUssdMessagingSendMessageDefaultHandler);
+	User::WaitForRequest(reqStatus);
+	TEST(reqStatus.Int()==KErrNone || reqStatus.Int()==KErrCancel);
+	if (reqStatus.Int()==KErrCancel)
+		INFO_PRINTF2(_L("Test %d - RMobileUssdMessaging::SendMessage /EMobileUssdMessagingSendMessageDefaultHandler/ (async & cancel (Cancelled Request)) passed"), iTestCount++);
+	else
+		INFO_PRINTF2(_L("Test %d - RMobileUssdMessaging::SendMessage /EMobileUssdMessagingSendMessageDefaultHandler/ (async & cancel (Request Not Cancelled)) passed"), iTestCount++);
+
 //	test.Next(_L("OK: RMobileUssdMessaging's Receive & Send Message"));
 
 	// Send Message NoFdnCheck