datacommsserver/esockserver/test/TE_RConnectionSuite/src/TE_RConnectionDummyNifTestSteps.cpp
branchRCL_3
changeset 14 4ccf8e394726
parent 9 77effd21b2c9
child 21 07656293a99c
equal deleted inserted replaced
13:0b0e9fce0b58 14:4ccf8e394726
   230 	}
   230 	}
   231 
   231 
   232 void CConnectionTest1b::Start()
   232 void CConnectionTest1b::Start()
   233 	{
   233 	{
   234 	INFO_PRINTF1(_L("Starting Connection"));
   234 	INFO_PRINTF1(_L("Starting Connection"));
   235 
       
   236 	iConnection.Start(iStatus);
   235 	iConnection.Start(iStatus);
   237 	SetActive();
   236 	SetActive();
   238 	}
   237 	}
   239 
   238 
   240 void CConnectionTest1b::StopProgressObservation()
   239 void CConnectionTest1b::StopProgressObservation()
  1946 	// explicitly expect.
  1945 	// explicitly expect.
  1947 	WaitForRelevantProgress(conn1, progress, ECsdStartingHangUp);
  1946 	WaitForRelevantProgress(conn1, progress, ECsdStartingHangUp);
  1948 
  1947 
  1949 	TESTEL(KErrNone == progress().iError, progress().iError);
  1948 	TESTEL(KErrNone == progress().iError, progress().iError);
  1950 	TESTEL(ECsdStartingHangUp == progress().iStage, progress().iStage);
  1949 	TESTEL(ECsdStartingHangUp == progress().iStage, progress().iStage);
       
  1950 	
       
  1951 	INFO_PRINTF1(_L("Waiting for KConnectionDown and KConnectionUninitialised. If the test times-out they didn't come (in the right seq)."));
       
  1952     WaitForRelevantProgress(conn1, progress, KConnectionDown);
       
  1953     WaitForRelevantProgress(conn1, progress, KConnectionUninitialised); 
  1951 
  1954 
  1952 	CloseConnection(conn1);
  1955 	CloseConnection(conn1);
  1953 	CleanupStack::Pop();
  1956 	CleanupStack::Pop();
  1954 
  1957 
  1955 	CloseSocketServer(ss);
  1958 	CloseSocketServer(ss);
  5086 	// explicitly expect.
  5089 	// explicitly expect.
  5087 	WaitForRelevantProgress(conn1, progress, ECsdStartingHangUp);
  5090 	WaitForRelevantProgress(conn1, progress, ECsdStartingHangUp);
  5088 
  5091 
  5089 	TESTEL(KErrNone == progress().iError, progress().iError);
  5092 	TESTEL(KErrNone == progress().iError, progress().iError);
  5090 	TESTEL(ECsdStartingHangUp == progress().iStage, progress().iStage);
  5093 	TESTEL(ECsdStartingHangUp == progress().iStage, progress().iStage);
       
  5094 	
       
  5095     INFO_PRINTF1(_L("Waiting for KConnectionDown and KConnectionUninitialised. If the test times-out they didn't come (in the right seq)."));	
       
  5096     WaitForRelevantProgress(conn1, progress, KConnectionDown);
       
  5097     WaitForRelevantProgress(conn1, progress, KConnectionUninitialised);	
  5091 
  5098 
  5092 	CloseConnection(conn1);
  5099 	CloseConnection(conn1);
  5093 	CleanupStack::Pop();
  5100 	CleanupStack::Pop();
  5094 
  5101 
  5095 	CloseSocketServer(ss);
  5102 	CloseSocketServer(ss);