telephonyserverplugins/common_tsy/test/component/src/cctsynetworkcontrolfu.cpp
branchRCL_3
changeset 6 fc69e1e37771
parent 5 7ef16719d8cb
child 15 8b9e023e329f
--- a/telephonyserverplugins/common_tsy/test/component/src/cctsynetworkcontrolfu.cpp	Fri Mar 12 15:49:38 2010 +0200
+++ b/telephonyserverplugins/common_tsy/test/component/src/cctsynetworkcontrolfu.cpp	Mon Mar 15 12:45:06 2010 +0200
@@ -5276,16 +5276,19 @@
 	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
+    // Initial test to verify that GetNetworkRegistrationStatus behaves 
+	// correctly when 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);
+    
+    // If the modem is not ready, the request should complete immediately
+    // with KErrNone, and registration status should be "Unknown"
     User::WaitForRequest(requestStatus);
-    ASSERT_EQUALS(KErrNotReady, requestStatus.Int());
-
+    ASSERT_EQUALS(KErrNone, requestStatus.Int());
+    ASSERT_EQUALS(RMobilePhone::ERegistrationUnknown, status);
 	iPhone.Close();
 	
 	OpenPhoneL(); // whole phone bootup procedure for rest of tests