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:53
20 */
21
22 #include <map>
23 #include <string>
24
25 extern std::map<std::string, int> mock_function_count_map;
26
27 #include "bta/dm/bta_dm_int.h"
28 #include "types/raw_address.h"
29
30 #ifndef UNUSED_ATTR
31 #define UNUSED_ATTR
32 #endif
33
BTA_dm_acl_down(const RawAddress bd_addr,tBT_TRANSPORT transport)34 void BTA_dm_acl_down(const RawAddress bd_addr, tBT_TRANSPORT transport) {
35 mock_function_count_map[__func__]++;
36 }
BTA_dm_acl_up(const RawAddress bd_addr,tBT_TRANSPORT transport)37 void BTA_dm_acl_up(const RawAddress bd_addr, tBT_TRANSPORT transport) {
38 mock_function_count_map[__func__]++;
39 }
BTA_dm_notify_remote_features_complete(const RawAddress bd_addr)40 void BTA_dm_notify_remote_features_complete(const RawAddress bd_addr) {
41 mock_function_count_map[__func__]++;
42 }
43
BTA_dm_on_hw_off()44 void BTA_dm_on_hw_off() { mock_function_count_map[__func__]++; }
BTA_dm_on_hw_on()45 void BTA_dm_on_hw_on() { mock_function_count_map[__func__]++; }
BTA_dm_report_role_change(const RawAddress bd_addr,tHCI_ROLE new_role,tHCI_STATUS hci_status)46 void BTA_dm_report_role_change(const RawAddress bd_addr, tHCI_ROLE new_role,
47 tHCI_STATUS hci_status) {
48 mock_function_count_map[__func__]++;
49 }
bta_dm_add_device(std::unique_ptr<tBTA_DM_API_ADD_DEVICE> msg)50 void bta_dm_add_device(std::unique_ptr<tBTA_DM_API_ADD_DEVICE> msg) {
51 mock_function_count_map[__func__]++;
52 }
bta_dm_bond(const RawAddress & bd_addr,tBLE_ADDR_TYPE addr_type,tBT_TRANSPORT transport,int device_type)53 void bta_dm_bond(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type,
54 tBT_TRANSPORT transport, int device_type) {
55 mock_function_count_map[__func__]++;
56 }
bta_dm_bond_cancel(const RawAddress & bd_addr)57 void bta_dm_bond_cancel(const RawAddress& bd_addr) {
58 mock_function_count_map[__func__]++;
59 }
bta_dm_ci_rmt_oob_act(std::unique_ptr<tBTA_DM_CI_RMT_OOB> msg)60 void bta_dm_ci_rmt_oob_act(std::unique_ptr<tBTA_DM_CI_RMT_OOB> msg) {
61 mock_function_count_map[__func__]++;
62 }
bta_dm_close_acl(const RawAddress & bd_addr,bool remove_dev,tBT_TRANSPORT transport)63 void bta_dm_close_acl(const RawAddress& bd_addr, bool remove_dev,
64 tBT_TRANSPORT transport) {
65 mock_function_count_map[__func__]++;
66 }
bta_dm_confirm(const RawAddress & bd_addr,bool accept)67 void bta_dm_confirm(const RawAddress& bd_addr, bool accept) {
68 mock_function_count_map[__func__]++;
69 }
bta_dm_deinit_cb(void)70 void bta_dm_deinit_cb(void) { mock_function_count_map[__func__]++; }
bta_dm_disable()71 void bta_dm_disable() { mock_function_count_map[__func__]++; }
bta_dm_disc_result(tBTA_DM_MSG * p_data)72 void bta_dm_disc_result(tBTA_DM_MSG* p_data) {
73 mock_function_count_map[__func__]++;
74 }
bta_dm_disc_rmt_name(tBTA_DM_MSG * p_data)75 void bta_dm_disc_rmt_name(tBTA_DM_MSG* p_data) {
76 mock_function_count_map[__func__]++;
77 }
bta_dm_discover(tBTA_DM_MSG * p_data)78 void bta_dm_discover(tBTA_DM_MSG* p_data) {
79 mock_function_count_map[__func__]++;
80 }
bta_dm_free_sdp_db()81 void bta_dm_free_sdp_db() { mock_function_count_map[__func__]++; }
bta_dm_init_cb(void)82 void bta_dm_init_cb(void) { mock_function_count_map[__func__]++; }
bta_dm_inq_cmpl(uint8_t num)83 void bta_dm_inq_cmpl(uint8_t num) { mock_function_count_map[__func__]++; }
bta_dm_pin_reply(std::unique_ptr<tBTA_DM_API_PIN_REPLY> msg)84 void bta_dm_pin_reply(std::unique_ptr<tBTA_DM_API_PIN_REPLY> msg) {
85 mock_function_count_map[__func__]++;
86 }
bta_dm_process_remove_device(const RawAddress & bd_addr)87 void bta_dm_process_remove_device(const RawAddress& bd_addr) {
88 mock_function_count_map[__func__]++;
89 }
bta_dm_queue_disc(tBTA_DM_MSG * p_data)90 void bta_dm_queue_disc(tBTA_DM_MSG* p_data) {
91 mock_function_count_map[__func__]++;
92 }
bta_dm_queue_search(tBTA_DM_MSG * p_data)93 void bta_dm_queue_search(tBTA_DM_MSG* p_data) {
94 mock_function_count_map[__func__]++;
95 }
bta_dm_remove_device(const RawAddress & bd_addr)96 void bta_dm_remove_device(const RawAddress& bd_addr) {
97 mock_function_count_map[__func__]++;
98 }
bta_dm_rmt_name(tBTA_DM_MSG * p_data)99 void bta_dm_rmt_name(tBTA_DM_MSG* p_data) {
100 mock_function_count_map[__func__]++;
101 }
bta_dm_sdp_result(tBTA_DM_MSG * p_data)102 void bta_dm_sdp_result(tBTA_DM_MSG* p_data) {
103 mock_function_count_map[__func__]++;
104 }
bta_dm_search_cancel()105 void bta_dm_search_cancel() { mock_function_count_map[__func__]++; }
bta_dm_search_cancel_cmpl()106 void bta_dm_search_cancel_cmpl() { mock_function_count_map[__func__]++; }
bta_dm_search_cancel_notify()107 void bta_dm_search_cancel_notify() { mock_function_count_map[__func__]++; }
bta_dm_execute_queued_request()108 void bta_dm_execute_queued_request() { mock_function_count_map[__func__]++; }
bta_dm_is_search_request_queued()109 bool bta_dm_is_search_request_queued() {
110 mock_function_count_map[__func__]++;
111 return false;
112 }
bta_dm_search_clear_queue()113 void bta_dm_search_clear_queue() { mock_function_count_map[__func__]++; }
bta_dm_search_cmpl()114 void bta_dm_search_cmpl() { mock_function_count_map[__func__]++; }
bta_dm_search_result(tBTA_DM_MSG * p_data)115 void bta_dm_search_result(tBTA_DM_MSG* p_data) {
116 mock_function_count_map[__func__]++;
117 }
bta_dm_search_start(tBTA_DM_MSG * p_data)118 void bta_dm_search_start(tBTA_DM_MSG* p_data) {
119 mock_function_count_map[__func__]++;
120 }
bta_dm_set_dev_name(const std::vector<uint8_t> & name)121 void bta_dm_set_dev_name(const std::vector<uint8_t>& name) {
122 mock_function_count_map[__func__]++;
123 }
124