Lines Matching refs:zassert_true
346 zassert_true(ret == (sizeof(cmux_frame_data_dlci2_at_cgdcont) + in ZTEST()
350 zassert_true(memcmp(buffer2, cmux_frame_data_dlci2_at_cgdcont, in ZTEST()
354 zassert_true(memcmp(&buffer2[sizeof(cmux_frame_data_dlci2_at_cgdcont)], in ZTEST()
376 zassert_true(ret == (sizeof(cmux_frame_data_dlci1_at_at) + in ZTEST()
380 zassert_true(memcmp(buffer1, cmux_frame_data_dlci1_at_at, in ZTEST()
384 zassert_true(memcmp(&buffer1[sizeof(cmux_frame_data_dlci1_at_at)], in ZTEST()
405 zassert_true(ret == (sizeof(cmux_frame_data_dlci2_ppp_52) + in ZTEST()
409 zassert_true(memcmp(buffer2, cmux_frame_data_dlci2_ppp_52, in ZTEST()
413 zassert_true(memcmp(&buffer2[sizeof(cmux_frame_data_dlci2_ppp_52)], in ZTEST()
426 zassert_true(ret == sizeof(cmux_frame_data_dlci2_ppp_52), "Failed to send DLCI2 PPP 52"); in ZTEST()
436 zassert_true(ret == sizeof(cmux_frame_data_dlci2_ppp_18), "Failed to send DLCI2 PPP 18"); in ZTEST()
443 zassert_true(ret == (sizeof(cmux_frame_dlci2_ppp_52) + sizeof(cmux_frame_dlci2_ppp_18)), in ZTEST()
461 zassert_true(ret == (sizeof(cmux_frame_data_dlci1_at_at) + in ZTEST()
465 zassert_true(memcmp(buffer1, cmux_frame_data_dlci1_at_at, in ZTEST()
469 zassert_true(memcmp(&buffer1[sizeof(cmux_frame_data_dlci1_at_at)], in ZTEST()
485 zassert_true(ret == sizeof(cmux_frame_control_fcoff_ack), in ZTEST()
488 zassert_true(memcmp(buffer1, cmux_frame_control_fcoff_ack, in ZTEST()
495 zassert_true(ret == 0, "Failed to block transmit while flow control is off"); in ZTEST()
498 zassert_true(ret == 0, "FCOFF failed to prevent transmission of data"); in ZTEST()
505 zassert_true(ret == sizeof(cmux_frame_control_fcon_ack), in ZTEST()
508 zassert_true(memcmp(buffer1, cmux_frame_control_fcon_ack, in ZTEST()
515 zassert_true(ret == sizeof(cmux_frame_data_dlci2_ppp_52), in ZTEST()
521 zassert_true(ret == sizeof(cmux_frame_dlci2_ppp_52), in ZTEST()
524 zassert_true(memcmp(buffer1, cmux_frame_dlci2_ppp_52, in ZTEST()
539 zassert_true(ret == sizeof(cmux_frame_control_msc_ack), in ZTEST()
542 zassert_true(memcmp(buffer1, cmux_frame_control_msc_ack, in ZTEST()
553 zassert_true(modem_pipe_close_async(dlci1_pipe) == 0, "Failed to close DLCI1 pipe"); in ZTEST()
558 zassert_true(ret == sizeof(cmux_frame_dlci1_disc_cmd), in ZTEST()
561 zassert_true(memcmp(buffer1, cmux_frame_dlci1_disc_cmd, in ZTEST()
571 zassert_true((events & EVENT_CMUX_DLCI1_CLOSED), in ZTEST()
578 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
581 zassert_true(modem_pipe_open_async(dlci1_pipe) == 0, "Failed to open DLCI1 pipe"); in ZTEST()
586 zassert_true(ret == sizeof(cmux_frame_dlci1_sabm_cmd), in ZTEST()
589 zassert_true(memcmp(buffer1, cmux_frame_dlci1_sabm_cmd, in ZTEST()
599 zassert_true((events & EVENT_CMUX_DLCI1_OPEN), in ZTEST()
606 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
615 zassert_true(modem_pipe_close_async(dlci1_pipe) == 0, "Failed to close DLCI1"); in ZTEST()
616 zassert_true(modem_pipe_close_async(dlci2_pipe) == 0, "Failed to close DLCI2"); in ZTEST()
627 zassert_true((events & EVENT_CMUX_DLCI1_CLOSED), "Failed to close DLCI1"); in ZTEST()
628 zassert_true((events & EVENT_CMUX_DLCI2_CLOSED), "Failed to close DLCI2"); in ZTEST()
632 zassert_true(modem_cmux_disconnect_async(&cmux) == 0, "Failed to disconnect CMUX"); in ZTEST()
638 zassert_true(ret == sizeof(cmux_frame_control_cld_cmd), in ZTEST()
641 zassert_true(memcmp(buffer1, cmux_frame_control_cld_cmd, in ZTEST()
649 zassert_true((events & EVENT_CMUX_DISCONNECTED), "Failed to disconnect CMUX"); in ZTEST()
655 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
658 zassert_true(modem_cmux_connect_async(&cmux) == 0, "Failed to connect CMUX"); in ZTEST()
663 zassert_true(ret == sizeof(cmux_frame_control_sabm_cmd), in ZTEST()
666 zassert_true(memcmp(buffer1, cmux_frame_control_sabm_cmd, in ZTEST()
674 zassert_true((events & EVENT_CMUX_CONNECTED), "Failed to connect CMUX"); in ZTEST()
680 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
683 zassert_true(modem_pipe_open_async(dlci1_pipe) == 0, "Failed to open DLCI1 pipe"); in ZTEST()
688 zassert_true(ret == sizeof(cmux_frame_dlci1_sabm_cmd), in ZTEST()
691 zassert_true(memcmp(buffer1, cmux_frame_dlci1_sabm_cmd, in ZTEST()
701 zassert_true((events & EVENT_CMUX_DLCI1_OPEN), in ZTEST()
708 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
711 zassert_true(modem_pipe_open_async(dlci2_pipe) == 0, "Failed to open DLCI2 pipe"); in ZTEST()
716 zassert_true(ret == sizeof(cmux_frame_dlci2_sabm_cmd), in ZTEST()
719 zassert_true(memcmp(buffer1, cmux_frame_dlci2_sabm_cmd, in ZTEST()
729 zassert_true((events & EVENT_CMUX_DLCI2_OPEN), in ZTEST()
736 zassert_true(ret == 0, "Received unexpected data"); in ZTEST()
742 zassert_true(modem_pipe_close(dlci1_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI1"); in ZTEST()
744 zassert_true(modem_pipe_close(dlci2_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI2"); in ZTEST()
746 zassert_true(modem_cmux_disconnect(&cmux) == 0, "Failed to disconnect CMUX"); in ZTEST()
747 zassert_true(modem_cmux_disconnect(&cmux) == -EALREADY, in ZTEST()
751 zassert_true(modem_cmux_connect(&cmux) == 0, "Failed to connect CMUX"); in ZTEST()
752 zassert_true(modem_cmux_connect(&cmux) == -EALREADY, in ZTEST()
756 zassert_true(modem_pipe_open(dlci1_pipe, K_SECONDS(10)) == 0, in ZTEST()
759 zassert_true(modem_pipe_open(dlci2_pipe, K_SECONDS(10)) == 0, in ZTEST()
766 zassert_true(modem_pipe_close(dlci1_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI1"); in ZTEST()
768 zassert_true(modem_pipe_close(dlci2_pipe, K_SECONDS(10)) == 0, "Failed to close DLCI2"); in ZTEST()
770 zassert_true(modem_pipe_open(dlci1_pipe, K_SECONDS(10)) == 0, in ZTEST()
773 zassert_true(modem_pipe_open(dlci2_pipe, K_SECONDS(10)) == 0, in ZTEST()
793 zassert_true(modem_backend_mock_get(&bus_mock, buffer1, sizeof(buffer1)) > 0); 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()
853 zassert_true(ret == (sizeof(cmux_frame_data_dlci2_at_cgdcont) + in ZTEST()
857 zassert_true(memcmp(buffer2, cmux_frame_data_dlci2_at_cgdcont, in ZTEST()
861 zassert_true(memcmp(&buffer2[sizeof(cmux_frame_data_dlci2_at_cgdcont)], in ZTEST()