1 /*
2 * Copyright 2021 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:7
20 */
21
22 #include <map>
23 #include <string>
24
25 extern std::map<std::string, int> mock_function_count_map;
26
27 #include <base/bind.h>
28 #include <stddef.h>
29 #include <stdio.h>
30 #include <string.h>
31 #include <vector>
32 #include "bt_target.h"
33 #include "bt_types.h"
34 #include "btm_ble_api.h"
35 #include "btu.h"
36 #include "device/include/controller.h"
37 #include "hcimsgs.h"
38 #include "stack/btm/btm_int_types.h"
39 #include "utils/include/bt_utils.h"
40
41 #ifndef UNUSED_ATTR
42 #define UNUSED_ATTR
43 #endif
44
BTM_BleDisableBatchScan(base::Callback<void (uint8_t)> cb)45 void BTM_BleDisableBatchScan(base::Callback<void(uint8_t)> cb) {
46 mock_function_count_map[__func__]++;
47 }
BTM_BleEnableBatchScan(tBTM_BLE_BATCH_SCAN_MODE scan_mode,uint32_t scan_interval,uint32_t scan_window,tBLE_ADDR_TYPE addr_type,tBTM_BLE_DISCARD_RULE discard_rule,base::Callback<void (uint8_t)> cb)48 void BTM_BleEnableBatchScan(tBTM_BLE_BATCH_SCAN_MODE scan_mode,
49 uint32_t scan_interval, uint32_t scan_window,
50 tBLE_ADDR_TYPE addr_type,
51 tBTM_BLE_DISCARD_RULE discard_rule,
52 base::Callback<void(uint8_t)> cb) {
53 mock_function_count_map[__func__]++;
54 }
BTM_BleReadScanReports(tBTM_BLE_BATCH_SCAN_MODE scan_mode,tBTM_BLE_SCAN_REP_CBACK cb)55 void BTM_BleReadScanReports(tBTM_BLE_BATCH_SCAN_MODE scan_mode,
56 tBTM_BLE_SCAN_REP_CBACK cb) {
57 mock_function_count_map[__func__]++;
58 }
BTM_BleSetStorageConfig(uint8_t batch_scan_full_max,uint8_t batch_scan_trunc_max,uint8_t batch_scan_notify_threshold,base::Callback<void (uint8_t)> cb,tBTM_BLE_SCAN_THRESHOLD_CBACK * p_thres_cback,tBTM_BLE_REF_VALUE ref_value)59 void BTM_BleSetStorageConfig(uint8_t batch_scan_full_max,
60 uint8_t batch_scan_trunc_max,
61 uint8_t batch_scan_notify_threshold,
62 base::Callback<void(uint8_t)> cb,
63 tBTM_BLE_SCAN_THRESHOLD_CBACK* p_thres_cback,
64 tBTM_BLE_REF_VALUE ref_value) {
65 mock_function_count_map[__func__]++;
66 }
BTM_BleTrackAdvertiser(tBTM_BLE_TRACK_ADV_CBACK * p_track_cback,tBTM_BLE_REF_VALUE ref_value)67 void BTM_BleTrackAdvertiser(tBTM_BLE_TRACK_ADV_CBACK* p_track_cback,
68 tBTM_BLE_REF_VALUE ref_value) {
69 mock_function_count_map[__func__]++;
70 }
btm_ble_batchscan_init(void)71 void btm_ble_batchscan_init(void) { mock_function_count_map[__func__]++; }
72