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:11
20  *
21  *  mockcify.pl ver 0.2
22  */
23 // Mock include file to share data between tests and mock
24 #include "test/mock/mock_stack_btm_ble_bgconn.h"
25 
26 #include "test/common/mock_functions.h"
27 #include "types/raw_address.h"
28 
29 // Mocked compile conditionals, if any
30 // Mocked internal structures, if any
31 struct BackgroundConnection {};
32 struct BgConnHash {};
33 
34 namespace test {
35 namespace mock {
36 namespace stack_btm_ble_bgconn {
37 
38 // Function state capture and return values, if needed
39 struct btm_update_scanner_filter_policy btm_update_scanner_filter_policy;
40 struct BTM_SetLeConnectionModeToFast BTM_SetLeConnectionModeToFast;
41 struct BTM_SetLeConnectionModeToSlow BTM_SetLeConnectionModeToSlow;
42 struct BTM_AcceptlistAdd BTM_AcceptlistAdd;
43 struct BTM_AcceptlistAddDirect BTM_AcceptlistAddDirect;
44 struct BTM_AcceptlistRemove BTM_AcceptlistRemove;
45 struct BTM_AcceptlistClear BTM_AcceptlistClear;
46 
47 }  // namespace stack_btm_ble_bgconn
48 }  // namespace mock
49 }  // namespace test
50 
btm_update_scanner_filter_policy(tBTM_BLE_SFP scan_policy)51 void btm_update_scanner_filter_policy(tBTM_BLE_SFP scan_policy) {
52   inc_func_call_count(__func__);
53   test::mock::stack_btm_ble_bgconn::btm_update_scanner_filter_policy(
54       scan_policy);
55 }
BTM_SetLeConnectionModeToFast()56 bool BTM_SetLeConnectionModeToFast() {
57   inc_func_call_count(__func__);
58   return test::mock::stack_btm_ble_bgconn::BTM_SetLeConnectionModeToFast();
59 }
BTM_SetLeConnectionModeToSlow()60 void BTM_SetLeConnectionModeToSlow() {
61   inc_func_call_count(__func__);
62   test::mock::stack_btm_ble_bgconn::BTM_SetLeConnectionModeToSlow();
63 }
BTM_AcceptlistAdd(const RawAddress & address)64 bool BTM_AcceptlistAdd(const RawAddress& address) {
65   inc_func_call_count(__func__);
66   return test::mock::stack_btm_ble_bgconn::BTM_AcceptlistAdd(address);
67 }
BTM_AcceptlistAdd(const RawAddress & address,bool is_direct)68 bool BTM_AcceptlistAdd(const RawAddress& address, bool is_direct) {
69   inc_func_call_count(__func__);
70   return test::mock::stack_btm_ble_bgconn::BTM_AcceptlistAddDirect(address,
71                                                                    is_direct);
72 }
BTM_AcceptlistRemove(const RawAddress & address)73 void BTM_AcceptlistRemove(const RawAddress& address) {
74   inc_func_call_count(__func__);
75   test::mock::stack_btm_ble_bgconn::BTM_AcceptlistRemove(address);
76 }
BTM_AcceptlistClear()77 void BTM_AcceptlistClear() {
78   inc_func_call_count(__func__);
79   test::mock::stack_btm_ble_bgconn::BTM_AcceptlistClear();
80 }
81 
82 // END mockcify generation
83