• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
is_gd_l2cap_enabled()36 bool bluetooth::shim::is_gd_l2cap_enabled() {
37   mock_function_count_map[__func__]++;
38   return false;
39 }
is_gd_security_enabled()40 bool bluetooth::shim::is_gd_security_enabled() {
41   mock_function_count_map[__func__]++;
42   return false;
43 }
is_gd_shim_enabled()44 bool bluetooth::shim::is_gd_shim_enabled() {
45   mock_function_count_map[__func__]++;
46   return false;
47 }
is_gd_stack_started_up()48 bool bluetooth::shim::is_gd_stack_started_up() {
49   mock_function_count_map[__func__]++;
50   return false;
51 }
is_gd_link_policy_enabled()52 bool bluetooth::shim::is_gd_link_policy_enabled() {
53   mock_function_count_map[__func__]++;
54   return false;
55 }
GeneralShutDown()56 future_t* GeneralShutDown() {
57   mock_function_count_map[__func__]++;
58   return nullptr;
59 }
IdleModuleStartUp()60 future_t* IdleModuleStartUp() {
61   mock_function_count_map[__func__]++;
62   return nullptr;
63 }
ShimModuleStartUp()64 future_t* ShimModuleStartUp() {
65   mock_function_count_map[__func__]++;
66   return nullptr;
67 }
68