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:14
20  */
21 
22 #include <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #define LOG_TAG "bt_shim"
28 #include "gd/common/init_flags.h"
29 #include "main/shim/entry.h"
30 #include "main/shim/shim.h"
31 
32 #ifndef UNUSED_ATTR
33 #define UNUSED_ATTR
34 #endif
35 
36 extern bool MOCK_bluetooth_shim_is_gd_acl_enabled_;
37 
is_any_gd_enabled()38 bool bluetooth::shim::is_any_gd_enabled() {
39   mock_function_count_map[__func__]++;
40   return false;
41 }
is_gd_acl_enabled()42 bool bluetooth::shim::is_gd_acl_enabled() {
43   mock_function_count_map[__func__]++;
44   return MOCK_bluetooth_shim_is_gd_acl_enabled_;
45 }
is_gd_advertising_enabled()46 bool bluetooth::shim::is_gd_advertising_enabled() {
47   mock_function_count_map[__func__]++;
48   return false;
49 }
is_gd_scanning_enabled()50 bool bluetooth::shim::is_gd_scanning_enabled() {
51   mock_function_count_map[__func__]++;
52   return false;
53 }
is_gd_controller_enabled()54 bool bluetooth::shim::is_gd_controller_enabled() {
55   mock_function_count_map[__func__]++;
56   return false;
57 }
is_gd_hci_enabled()58 bool bluetooth::shim::is_gd_hci_enabled() {
59   mock_function_count_map[__func__]++;
60   return false;
61 }
is_gd_l2cap_enabled()62 bool bluetooth::shim::is_gd_l2cap_enabled() {
63   mock_function_count_map[__func__]++;
64   return false;
65 }
is_gd_security_enabled()66 bool bluetooth::shim::is_gd_security_enabled() {
67   mock_function_count_map[__func__]++;
68   return false;
69 }
is_gd_shim_enabled()70 bool bluetooth::shim::is_gd_shim_enabled() {
71   mock_function_count_map[__func__]++;
72   return false;
73 }
is_gd_stack_started_up()74 bool bluetooth::shim::is_gd_stack_started_up() {
75   mock_function_count_map[__func__]++;
76   return false;
77 }
is_gd_link_policy_enabled()78 bool bluetooth::shim::is_gd_link_policy_enabled() {
79   mock_function_count_map[__func__]++;
80   return false;
81 }
GeneralShutDown()82 future_t* GeneralShutDown() {
83   mock_function_count_map[__func__]++;
84   return nullptr;
85 }
IdleModuleStartUp()86 future_t* IdleModuleStartUp() {
87   mock_function_count_map[__func__]++;
88   return nullptr;
89 }
ShimModuleStartUp()90 future_t* ShimModuleStartUp() {
91   mock_function_count_map[__func__]++;
92   return nullptr;
93 }
94