1 /*
2 * Copyright 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /*
18 * Generated mock file from original source file
19 * Functions generated:9
20 */
21
22 #include <cstdint>
23
24 #define LOG_TAG "bt_btu_hcif"
25 #include <base/location.h>
26
27 #include "stack/include/bt_hdr.h"
28 #include "stack/include/btu_hcif.h"
29 #include "test/common/mock_functions.h"
30
31 using hci_cmd_cb = base::OnceCallback<void(
32 uint8_t* /* return_parameters */, uint16_t /* return_parameters_length*/)>;
33
34 struct cmd_with_cb_data {
35 hci_cmd_cb cb;
36 base::Location posted_from;
37 };
38
btu_hcif_process_event(uint8_t,BT_HDR *)39 void btu_hcif_process_event(uint8_t /* controller_id */, BT_HDR* /* p_msg */) {
40 inc_func_call_count(__func__);
41 }
btu_hcif_send_cmd(uint8_t,const BT_HDR *)42 void btu_hcif_send_cmd(uint8_t /* controller_id */, const BT_HDR* /* p_buf */) {
43 inc_func_call_count(__func__);
44 }
btu_hcif_send_cmd_with_cb(const base::Location &,uint16_t,uint8_t *,uint8_t,hci_cmd_cb)45 void btu_hcif_send_cmd_with_cb(const base::Location& /* posted_from */,
46 uint16_t /* opcode */, uint8_t* /* params */,
47 uint8_t /* params_len */, hci_cmd_cb /* cb */) {
48 inc_func_call_count(__func__);
49 }
cmd_with_cb_data_cleanup(cmd_with_cb_data *)50 void cmd_with_cb_data_cleanup(cmd_with_cb_data* /* cb_wrapper */) {
51 inc_func_call_count(__func__);
52 }
cmd_with_cb_data_init(cmd_with_cb_data *)53 void cmd_with_cb_data_init(cmd_with_cb_data* /* cb_wrapper */) {
54 inc_func_call_count(__func__);
55 }
56