Lines Matching refs:bus_mock

44 static struct modem_backend_mock bus_mock;  variable
293 bus_mock_pipe = modem_backend_mock_init(&bus_mock, &bus_mock_config); in test_modem_cmux_setup()
298 modem_backend_mock_prime(&bus_mock, &transaction_control_sabm); in test_modem_cmux_setup()
305 modem_backend_mock_prime(&bus_mock, &transaction_dlci1_sabm); in test_modem_cmux_setup()
311 modem_backend_mock_prime(&bus_mock, &transaction_dlci2_sabm); in test_modem_cmux_setup()
325 modem_backend_mock_reset(&bus_mock); in test_modem_cmux_before()
333 modem_backend_mock_put(&bus_mock, cmux_frame_dlci2_at_cgdcont, in ZTEST()
336 modem_backend_mock_put(&bus_mock, cmux_frame_dlci2_at_newline, in ZTEST()
365 modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_at_at, sizeof(cmux_frame_dlci1_at_at)); in ZTEST()
366 modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_at_newline, in ZTEST()
395 modem_backend_mock_put(&bus_mock, cmux_frame_dlci2_ppp_52, sizeof(cmux_frame_dlci2_ppp_52)); in ZTEST()
396 modem_backend_mock_put(&bus_mock, cmux_frame_dlci2_ppp_18, sizeof(cmux_frame_dlci2_ppp_18)); in ZTEST()
442 ret = modem_backend_mock_get(&bus_mock, buffer2, sizeof(buffer2)); in ZTEST()
451 modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_at_at_desync, in ZTEST()
453 modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_at_at, sizeof(cmux_frame_dlci1_at_at)); in ZTEST()
454 modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_at_newline, in ZTEST()
479 modem_backend_mock_put(&bus_mock, cmux_frame_control_fcoff_cmd, in ZTEST()
484 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
497 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
499 modem_backend_mock_put(&bus_mock, cmux_frame_control_fcon_cmd, in ZTEST()
504 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
520 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
533 modem_backend_mock_put(&bus_mock, cmux_frame_control_msc_cmd, in ZTEST()
538 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
557 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
565 modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_ua_ack, in ZTEST()
577 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
585 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
593 modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_sabm_ack, in ZTEST()
605 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
618 modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_ua_ack, in ZTEST()
621 modem_backend_mock_put(&bus_mock, cmux_frame_dlci2_ua_ack, in ZTEST()
631 modem_backend_mock_reset(&bus_mock); in ZTEST()
636 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
645 modem_backend_mock_put(&bus_mock, cmux_frame_control_cld_ack, in ZTEST()
654 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
662 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
670 modem_backend_mock_put(&bus_mock, cmux_frame_control_sabm_ack, in ZTEST()
679 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
687 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
695 modem_backend_mock_put(&bus_mock, cmux_frame_dlci1_sabm_ack, in ZTEST()
707 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
715 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
723 modem_backend_mock_put(&bus_mock, cmux_frame_dlci2_sabm_ack, in ZTEST()
735 ret = modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
741 modem_backend_mock_prime(&bus_mock, &transaction_dlci1_disc); in ZTEST()
743 modem_backend_mock_prime(&bus_mock, &transaction_dlci2_disc); in ZTEST()
745 modem_backend_mock_prime(&bus_mock, &transaction_control_cld); in ZTEST()
750 modem_backend_mock_prime(&bus_mock, &transaction_control_sabm); in ZTEST()
755 modem_backend_mock_prime(&bus_mock, &transaction_dlci1_sabm); in ZTEST()
758 modem_backend_mock_prime(&bus_mock, &transaction_dlci2_sabm); in ZTEST()
765 modem_backend_mock_prime(&bus_mock, &transaction_dlci1_disc); in ZTEST()
767 modem_backend_mock_prime(&bus_mock, &transaction_dlci2_disc); in ZTEST()
769 modem_backend_mock_prime(&bus_mock, &transaction_dlci1_sabm); in ZTEST()
772 modem_backend_mock_prime(&bus_mock, &transaction_dlci2_sabm); in ZTEST()
783 modem_backend_mock_prime(&bus_mock, &transaction_control_cld); in ZTEST()
793 zassert_true(modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)) > 0); in ZTEST()
797 modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)); in ZTEST()
799 zassert_true(modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)) == 0); in ZTEST()
813 zassert_true(modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)) == 0); in ZTEST()
817 modem_backend_mock_prime(&bus_mock, &transaction_control_sabm); in ZTEST()
819 modem_backend_mock_prime(&bus_mock, &transaction_dlci1_sabm); in ZTEST()
821 modem_backend_mock_prime(&bus_mock, &transaction_dlci2_sabm); in ZTEST()
830 modem_backend_mock_put(&bus_mock, cmux_frame_dlci2_at_cgdcont_invalid_length, in ZTEST()
840 modem_backend_mock_put(&bus_mock, cmux_frame_dlci2_at_cgdcont, in ZTEST()
843 modem_backend_mock_put(&bus_mock, cmux_frame_dlci2_at_newline, in ZTEST()