Loading system/main/bte_main.cc +0 −26 Original line number Diff line number Diff line Loading @@ -83,29 +83,3 @@ void bte_main_init(void) { hci->set_data_cb(base::Bind(&post_to_main_message_loop)); } /****************************************************************************** * * Function bte_main_hci_send * * Description BTE MAIN API - This function is called by the upper stack to * send an HCI message. The function displays a protocol trace * message (if enabled), and then calls the 'transmit' function * associated with the currently selected HCI transport * * Returns None * *****************************************************************************/ void bte_main_hci_send(BT_HDR* p_msg, uint16_t event) { uint16_t sub_event = event & BT_SUB_EVT_MASK; /* local controller ID */ p_msg->event = event; if ((sub_event == LOCAL_BR_EDR_CONTROLLER_ID) || (sub_event == LOCAL_BLE_CONTROLLER_ID)) { hci->transmit_downward(event, p_msg); } else { APPL_TRACE_ERROR("Invalid Controller ID. Discarding message."); osi_free(p_msg); } } system/test/mock/mock_main_bte.cc +0 −5 Original line number Diff line number Diff line Loading @@ -43,7 +43,6 @@ namespace main_bte { // Function state capture and return values, if needed struct bte_main_init bte_main_init; struct bte_main_hci_send bte_main_hci_send; } // namespace main_bte } // namespace mock Loading @@ -54,9 +53,5 @@ void bte_main_init(void) { inc_func_call_count(__func__); test::mock::main_bte::bte_main_init(); } void bte_main_hci_send(BT_HDR* p_msg, uint16_t event) { inc_func_call_count(__func__); test::mock::main_bte::bte_main_hci_send(p_msg, event); } // END mockcify generation system/test/mock/mock_main_bte.h +0 −9 Original line number Diff line number Diff line Loading @@ -65,15 +65,6 @@ struct bte_main_init { void operator()(void) { body(); }; }; extern struct bte_main_init bte_main_init; // Name: bte_main_hci_send // Params: BT_HDR* p_msg, uint16_t event // Returns: void struct bte_main_hci_send { std::function<void(BT_HDR* p_msg, uint16_t event)> body{ [](BT_HDR* p_msg, uint16_t event) {}}; void operator()(BT_HDR* p_msg, uint16_t event) { body(p_msg, event); }; }; extern struct bte_main_hci_send bte_main_hci_send; } // namespace main_bte } // namespace mock Loading Loading
system/main/bte_main.cc +0 −26 Original line number Diff line number Diff line Loading @@ -83,29 +83,3 @@ void bte_main_init(void) { hci->set_data_cb(base::Bind(&post_to_main_message_loop)); } /****************************************************************************** * * Function bte_main_hci_send * * Description BTE MAIN API - This function is called by the upper stack to * send an HCI message. The function displays a protocol trace * message (if enabled), and then calls the 'transmit' function * associated with the currently selected HCI transport * * Returns None * *****************************************************************************/ void bte_main_hci_send(BT_HDR* p_msg, uint16_t event) { uint16_t sub_event = event & BT_SUB_EVT_MASK; /* local controller ID */ p_msg->event = event; if ((sub_event == LOCAL_BR_EDR_CONTROLLER_ID) || (sub_event == LOCAL_BLE_CONTROLLER_ID)) { hci->transmit_downward(event, p_msg); } else { APPL_TRACE_ERROR("Invalid Controller ID. Discarding message."); osi_free(p_msg); } }
system/test/mock/mock_main_bte.cc +0 −5 Original line number Diff line number Diff line Loading @@ -43,7 +43,6 @@ namespace main_bte { // Function state capture and return values, if needed struct bte_main_init bte_main_init; struct bte_main_hci_send bte_main_hci_send; } // namespace main_bte } // namespace mock Loading @@ -54,9 +53,5 @@ void bte_main_init(void) { inc_func_call_count(__func__); test::mock::main_bte::bte_main_init(); } void bte_main_hci_send(BT_HDR* p_msg, uint16_t event) { inc_func_call_count(__func__); test::mock::main_bte::bte_main_hci_send(p_msg, event); } // END mockcify generation
system/test/mock/mock_main_bte.h +0 −9 Original line number Diff line number Diff line Loading @@ -65,15 +65,6 @@ struct bte_main_init { void operator()(void) { body(); }; }; extern struct bte_main_init bte_main_init; // Name: bte_main_hci_send // Params: BT_HDR* p_msg, uint16_t event // Returns: void struct bte_main_hci_send { std::function<void(BT_HDR* p_msg, uint16_t event)> body{ [](BT_HDR* p_msg, uint16_t event) {}}; void operator()(BT_HDR* p_msg, uint16_t event) { body(p_msg, event); }; }; extern struct bte_main_hci_send bte_main_hci_send; } // namespace main_bte } // namespace mock Loading