mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fix audio call test
This commit is contained in:
parent
1af7fed4f8
commit
9e73cf7cf9
1 changed files with 3 additions and 5 deletions
|
|
@ -49,8 +49,9 @@ public class CallsAudio extends SampleTest {
|
|||
solo.clickOnView(solo.getView(org.linphone.R.id.call));
|
||||
|
||||
assertOutgoingCallIsCorrectlyRunning();
|
||||
assertCallIsCorrectlyRunning();
|
||||
|
||||
solo.clickOnView(solo.getView(org.linphone.R.id.outgoing_hang_up));
|
||||
solo.clickOnView(solo.getView(org.linphone.R.id.hang_up));
|
||||
solo.waitForActivity("LinphoneActivity", 5000);
|
||||
solo.assertCurrentActivity("Expected Linphone Activity", LinphoneActivity.class);
|
||||
}
|
||||
|
|
@ -364,17 +365,14 @@ public class CallsAudio extends SampleTest {
|
|||
solo.assertCurrentActivity("Expected OutgoingCall Activity", CallOutgoingActivity.class);
|
||||
|
||||
LinphoneCall call = LinphoneManager.getLc().getCalls()[0];
|
||||
|
||||
waitForCallState(call, LinphoneCall.State.OutgoingProgress);
|
||||
}
|
||||
|
||||
private void assertCallIsCorrectlyRunning() {
|
||||
solo.waitForActivity("CallActivity", 5000);
|
||||
solo.assertCurrentActivity("Expected InCall Activity", CallActivity.class);
|
||||
|
||||
solo.sleep(2000);
|
||||
LinphoneCall call = LinphoneManager.getLc().getCalls()[0];
|
||||
|
||||
LinphoneCall call = LinphoneManager.getLc().getCalls()[0];
|
||||
waitForCallState(call, LinphoneCall.State.StreamsRunning);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue