telephonyserverplugins/common_tsy/test/component/src/cctsynetworkcontrolfu.cpp
branchRCL_3
changeset 5 7ef16719d8cb
parent 0 3553901f7fa8
child 6 fc69e1e37771
--- a/telephonyserverplugins/common_tsy/test/component/src/cctsynetworkcontrolfu.cpp	Fri Feb 19 23:59:33 2010 +0200
+++ b/telephonyserverplugins/common_tsy/test/component/src/cctsynetworkcontrolfu.cpp	Fri Mar 12 15:49:38 2010 +0200
@@ -5272,14 +5272,27 @@
 
 	OpenEtelServerL(EUseExtendedError);
 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
-	OpenPhoneL();
-
+
+	TRequestStatus requestStatus;
+    RMobilePhone::TMobilePhoneRegistrationStatus status;
+    
+    // Initial test to verify that GetNetworkRegistrationStatus completes 
+    // with an error if the modem is not ready (i.e., before the LTSY sends
+    // a EMmTsyBootNotifyModemStatusReadyIPC notification to CTSY)
+    TInt err = iPhone.Open(iTelServer,KMmTsyPhoneName);
+    ASSERT_EQUALS(KErrNone, err);
+
+    iPhone.GetNetworkRegistrationStatus(requestStatus, status);
+    User::WaitForRequest(requestStatus);
+    ASSERT_EQUALS(KErrNotReady, requestStatus.Int());
+
+	iPhone.Close();
+	
+	OpenPhoneL(); // whole phone bootup procedure for rest of tests
+	
 	RBuf8 data;
 	CleanupClosePushL(data);
 
-	TRequestStatus requestStatus;
-	RMobilePhone::TMobilePhoneRegistrationStatus status;
-
  	//-------------------------------------------------------------------------
 	// TEST A: failure to dispatch request to LTSY
  	//-------------------------------------------------------------------------