CU_SUITE_END static void ble_setup_func(void) { nrf_cunit_reset_mock(); nrf_cunit_mock_call * p_transport_mock_call; nrf_cunit_expect_call_return((uint8_t *)"hci_transport_rx_pkt_consume", &p_transport_mock_call); p_transport_mock_call->compare_rule[0] = COMPARE_ANY; }
CU_TEST_END static void event_decoder_suite_setup(void) { nrf_cunit_mock_call * p_mock_obj; reset_test(); nrf_cunit_reset_mock(); // Verify the SWI2_IRQ is not set. CU_ASSERT(NVIC_GetPendingIRQ(SWI2_IRQn) == 0); nrf_cunit_expect_call_return((uint8_t *)"hci_transport_rx_pkt_consume", &p_mock_obj); p_mock_obj->compare_rule[0] = COMPARE_ANY; }
static void cmd_decoder_misc_setup_func(void) { nrf_cunit_reset_mock(); }
void setup_func(void) { m_app_error_code = NRF_SUCCESS; m_app_error_handler_called = false; nrf_cunit_reset_mock(); }