test/hfp: fix test sequences

This commit is contained in:
Matthias Ringwald 2019-04-18 23:11:54 +02:00
parent 560b7bdb62
commit 6323f788ac
2 changed files with 14 additions and 15 deletions

View File

@ -937,7 +937,6 @@ static void hfp_ag_hf_accept_call(hfp_connection_t * source){
hfp_ag_hf_stop_ringing(hfp_connection);
if (hfp_connection == source){
hfp_connection->ok_pending = 1;
if (use_in_band_tone()){
hfp_connection->call_state = HFP_CALL_ACTIVE;
@ -1210,6 +1209,7 @@ static void hfp_ag_call_sm(hfp_ag_call_event_t event, hfp_connection_t * hfp_con
hfp_ag_set_callsetup_indicator();
hfp_ag_set_call_indicator();
hfp_ag_hf_accept_call(hfp_connection);
hfp_connection->ok_pending = 1;
log_info("HF answers call, accept call by GSM");
hfp_emit_simple_event(hfp_connection, HFP_SUBEVENT_CALL_ANSWERED);
break;

View File

@ -668,9 +668,9 @@ const char * TC_AG_ATA_BV_01_I[] = {
"RING" ,
"+CLIP: \"1234567\",129" ,
"ATA" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK" ,
"USER:C",
"USER:B",
"USER:t",
@ -708,9 +708,9 @@ const char * TC_AG_ATA_BV_02_I[] = {
"RING" ,
"+CLIP: \"1234567\",129" ,
"ATA" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK" ,
"USER:C",
"USER:t",
"+CIEV:2,0"
@ -822,9 +822,9 @@ const char * TC_AG_TWC_BV_01_I[] = {
"RING" ,
"+CLIP: \"1234567\",129" ,
"ATA" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK" ,
"USER:m",
"+CCWA: \"7654321\",129" ,
"+CIEV:3,1" ,
@ -867,9 +867,9 @@ const char * TC_AG_TWC_BV_02_I[] = {
"RING" ,
"+CLIP: \"1234567\",129" ,
"ATA" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK" ,
"USER:m",
"+CCWA: \"7654321\",129" ,
"+CIEV:3,1" ,
@ -912,9 +912,9 @@ const char * TC_AG_TWC_BV_03_I[] = {
"RING" ,
"+CLIP: \"1234567\",129" ,
"ATA" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK" ,
"USER:m",
"+CCWA: \"7654321\",129" ,
"+CIEV:3,1" ,
@ -965,8 +965,8 @@ const char * TC_AG_TWC_BV_04_I[] = {
"OK" ,
"AT+CHLD=3" ,
"OK" ,
"USER:C",
"+CIEV:7,0" ,
"USER:C",
"+CIEV:2,0",
"USER:t"
};
@ -1002,9 +1002,9 @@ const char * TC_AG_TWC_BV_05_I[] = {
"RING" ,
"+CLIP: \"1234567\",129" ,
"ATA" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK" ,
"AT+BLDN" ,
"+CIEV:7,2" ,
"OK" ,
@ -1052,9 +1052,9 @@ const char * TC_AG_TWC_BV_06_I[] = {
"RING" ,
"+CLIP: \"1234567\",129" ,
"ATA" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK" ,
"USER:m" ,
"+CCWA: \"7654321\",129" ,
"+CIEV:3,1" ,
@ -1888,9 +1888,9 @@ const char * TC_AG_ECS_BV_03_I[] = {
"RING" ,
"+CLIP: \"1234567\",129" ,
"ATA" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK" ,
"USER:m" ,
"+CCWA: \"7654321\",129" ,
"+CIEV:3,1" ,
@ -2059,9 +2059,9 @@ const char * TC_AG_ECC_BV_01_I[] = {
"RING" ,
"+CLIP: \"1234567\",129" ,
"ATA" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK" ,
"USER:m" ,
"+CCWA: \"7654321\",129" ,
"+CIEV:3,1" ,
@ -2114,9 +2114,9 @@ const char * TC_AG_ECC_BV_02_I[] = {
"RING" ,
"+CLIP: \"1234567\",129" ,
"ATA" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK" ,
"USER:m" ,
"+CCWA: \"7654321\",129" ,
"+CIEV:3,1" ,
@ -2452,9 +2452,9 @@ const char * TC_AG_RHH_BV_02_I[] = {
"+CLIP: \"1234567\",129" ,
"AT+BTRH=0" ,
"+BTRH:0" ,
"OK" ,
"+CIEV:2,1" ,
"+CIEV:3,0" ,
"OK",
"USER:X" ,
"+BTRH:2" ,
"+CIEV:2,0" ,
@ -2612,8 +2612,8 @@ const char * TC_AG_RHH_BV_06_I[] = {
"OK" ,
"AT+BTRH=2" ,
"+BTRH:2" ,
"OK" ,
"+CIEV:2,0" ,
"OK" ,
"USER:t"
};
@ -4169,4 +4169,3 @@ int hfp_pts_hf_rhh_tests_size(void){ return sizeof(pts_hf_rhh_tests)/test_item_s
hfp_test_item_t * hfp_pts_hf_rhh_tests(void){ return pts_hf_rhh_tests;}