Lines Matching refs:mock

27 static struct modem_backend_mock mock;  variable
282 mock_pipe = modem_backend_mock_init(&mock, &mock_config); in test_modem_chat_setup()
294 modem_backend_mock_reset(&mock); in test_modem_chat_before()
326 modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)); in ZTEST()
330 modem_backend_mock_put(&mock, at_response, sizeof(at_response) - 1); in ZTEST()
331 modem_backend_mock_put(&mock, ok_response, sizeof(ok_response) - 1); in ZTEST()
340 modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)); in ZTEST()
344 modem_backend_mock_put(&mock, ok_response, sizeof(ok_response) - 1); in ZTEST()
354 modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)); in ZTEST()
358 modem_backend_mock_put(&mock, imei_response, sizeof(imei_response) - 1); in ZTEST()
359 modem_backend_mock_put(&mock, ok_response, sizeof(ok_response) - 1); in ZTEST()
379 modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)); in ZTEST()
384 modem_backend_mock_put(&mock, creg_response, sizeof(creg_response) - 1); in ZTEST()
392 modem_backend_mock_put(&mock, cgreg_response, sizeof(cgreg_response) - 1); in ZTEST()
400 modem_backend_mock_put(&mock, ok_response, sizeof(ok_response) - 1); in ZTEST()
410 modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)); in ZTEST()
415 modem_backend_mock_put(&mock, qeng_servinc_cell_response, in ZTEST()
437 modem_backend_mock_put(&mock, ok_response, sizeof(ok_response) - 1); in ZTEST()
505 modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)); in ZTEST()
517 modem_backend_mock_put(&mock, cmgl_response_0, sizeof(cmgl_response_0) - 1); in ZTEST()
536 modem_backend_mock_put(&mock, cmgl_response_1, sizeof(cmgl_response_1) - 1); in ZTEST()
551 modem_backend_mock_put(&mock, ok_response, sizeof(ok_response) - 1); in ZTEST()
565 zassert_equal(modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)), 0, in ZTEST()
571 modem_backend_mock_prime(&mock, &at_echo_transaction); in ZTEST()
583 modem_backend_mock_prime(&mock, &at_echo_error_transaction); in ZTEST()
629 modem_backend_mock_prime(&mock, &at_echo_transaction); in ZTEST()
645 ret = modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)); in ZTEST()
653 modem_backend_mock_put(&mock, ok_response, sizeof(ok_response) - 1); in ZTEST()
659 zassert_equal(modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)), 0); in ZTEST()
665 ret = modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)); in ZTEST()
673 modem_backend_mock_put(&mock, ok_response, sizeof(ok_response) - 1); in ZTEST()
682 zassert_equal(modem_backend_mock_get(&mock, buffer, ARRAY_SIZE(buffer)), 0, in ZTEST()