telephonyserverplugins/multimodetsy/test/Te_LoopBack/Te_LoopBackcssfax.cpp
branchRCL_3
changeset 19 630d2f34d719
parent 0 3553901f7fa8
child 20 07a122eea281
equal deleted inserted replaced
18:17af172ffa5f 19:630d2f34d719
    24 */
    24 */
    25 
    25 
    26 #include <e32test.h>
    26 #include <e32test.h>
    27 #include <etelmm.h>
    27 #include <etelmm.h>
    28 #include <et_clsvr.h>
    28 #include <et_clsvr.h>
    29 #include <faxstd.h>
    29 
    30 
    30 
    31 #include "Te_LoopBackcssfax.h"
    31 #include "Te_LoopBackcssfax.h"
    32 #include "../../hayes/TSYCONFG.H" // for KInternetAccessPoint
    32 #include "../../hayes/TSYCONFG.H" // for KInternetAccessPoint
    33 
    33 
    34 //
    34 //
   102 	mmPhone.GetSignalStrength(stat1,signalStrength,bar);
   102 	mmPhone.GetSignalStrength(stat1,signalStrength,bar);
   103 	User::WaitForRequest(stat1);
   103 	User::WaitForRequest(stat1);
   104 	TESTL(stat1==KErrAccessDenied);			// The port is "access denied" by this time
   104 	TESTL(stat1==KErrAccessDenied);			// The port is "access denied" by this time
   105 
   105 
   106 	User::WaitForRequest(stat2);
   106 	User::WaitForRequest(stat2);
   107 	TESTL(stat2==KFaxErrReceiveTimeout);		// We don't actually send any data
       
   108 	User::After(300000L);
   107 	User::After(300000L);
   109 	TESTL(faxCall.HangUp()==KErrNone);
   108 	TESTL(faxCall.HangUp()==KErrNone);
   110 	
   109 	
   111 	mmPhone.Close();
   110 	mmPhone.Close();
   112 	faxLine.Close();
   111 	faxLine.Close();