telephonyserverplugins/common_tsy/test/integration/src/cctsyintegrationtestapncontrollist.cpp
branchRCL_3
changeset 8 3f227a47ad75
parent 0 3553901f7fa8
--- a/telephonyserverplugins/common_tsy/test/integration/src/cctsyintegrationtestapncontrollist.cpp	Wed Mar 31 23:24:02 2010 +0300
+++ b/telephonyserverplugins/common_tsy/test/integration/src/cctsyintegrationtestapncontrollist.cpp	Wed Apr 14 17:11:46 2010 +0300
@@ -1761,6 +1761,10 @@
 	RMobilePhone::TAPNControlListServiceStatus serviceApnControlListStatus=RMobilePhone::EAPNControlListServiceEnabled;
 	TExtEtelRequestStatus setAPNControlListServiceStatus(mobilePhone, EMobilePhoneSetAPNControlListServiceStatus);
 	CleanupStack::PushL(setAPNControlListServiceStatus);
+
+	// Verify PIN2 before accessing APN function
+	iSimTestHelper.VerifyPin2L(mobilePhone, iNetworkTestHelper);
+
 	mobilePhone.SetAPNControlListServiceStatus(setAPNControlListServiceStatus, serviceApnControlListStatus);
 	
 	// Cancel request with RTelSubSessionBase.CancelAsyncRequest( EMobilePhoneSetAPNControlListServiceStatus ); 
@@ -1930,6 +1934,10 @@
 	RMobilePhone::TAPNEntryV3Pckg myAPnEntryPckg(myAPnEntry);
 	TExtEtelRequestStatus getAPNnameStatus(mobilePhone, EMobilePhoneGetAPNname);
 	CleanupStack::PushL(getAPNnameStatus);
+
+	// Verify PIN2 before accessing APN function
+	iSimTestHelper.VerifyPin2L(mobilePhone, iNetworkTestHelper);
+
 	mobilePhone.GetAPNname(getAPNnameStatus,index, myAPnEntryPckg);
 	
 	// Cancel request with RTelSubSession::CancelAsyncRequest( EMobilePhoneGetAPNname ); 
@@ -2016,6 +2024,10 @@
 	RMobilePhone::TAPNEntryV3Pckg myAPnEntryPckg(myAPnEntry);
 	TExtEtelRequestStatus appendAPNNameStatus(mobilePhone, EMobilePhoneAppendAPNName);
 	CleanupStack::PushL(appendAPNNameStatus);
+	
+	// Verify PIN2 before accessing APN function
+	iSimTestHelper.VerifyPin2L(mobilePhone, iNetworkTestHelper);
+
 	mobilePhone.AppendAPNName(appendAPNNameStatus, myAPnEntryPckg);
 	
 	// Cancel request with RTelSubSession::CancelAsyncRequest( EMobilePhoneAppendAPNName ); 
@@ -2099,6 +2111,10 @@
 	TUint32 index=0;
 	TExtEtelRequestStatus deleteAPNNameStatus(mobilePhone, EMobilePhoneDeleteAPNName);
 	CleanupStack::PushL(deleteAPNNameStatus);
+
+	// Verify PIN2 before accessing APN function
+	iSimTestHelper.VerifyPin2L(mobilePhone, iNetworkTestHelper);
+
 	mobilePhone.DeleteAPNName(deleteAPNNameStatus, index);
 	
 	// Cancel request with RTelSubSession::CancelAsyncRequest( EMobilePhoneDeleteAPNName );