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:14 20 */ 21 22 #include <map> 23 #include <string> 24 25 #define LOG_TAG "bt_shim" 26 27 #include "gd/common/init_flags.h" 28 #include "main/shim/entry.h" 29 #include "main/shim/shim.h" 30 #include "test/common/mock_functions.h" 31 32 #ifndef UNUSED_ATTR 33 #define UNUSED_ATTR 34 #endif 35 is_gd_l2cap_enabled()36bool bluetooth::shim::is_gd_l2cap_enabled() { 37 inc_func_call_count(__func__); 38 return false; 39 } is_gd_shim_enabled()40bool bluetooth::shim::is_gd_shim_enabled() { 41 inc_func_call_count(__func__); 42 return false; 43 } is_classic_discovery_only_enabled()44bool bluetooth::shim::is_classic_discovery_only_enabled() { 45 inc_func_call_count(__func__); 46 return false; 47 } 48 namespace test { 49 namespace mock { 50 bool bluetooth_shim_is_gd_stack_started_up = false; 51 } 52 } // namespace test is_gd_stack_started_up()53bool bluetooth::shim::is_gd_stack_started_up() { 54 inc_func_call_count(__func__); 55 return test::mock::bluetooth_shim_is_gd_stack_started_up; 56 } is_gd_link_policy_enabled()57bool bluetooth::shim::is_gd_link_policy_enabled() { 58 inc_func_call_count(__func__); 59 return false; 60 } GeneralShutDown()61future_t* GeneralShutDown() { 62 inc_func_call_count(__func__); 63 return nullptr; 64 } IdleModuleStartUp()65future_t* IdleModuleStartUp() { 66 inc_func_call_count(__func__); 67 return nullptr; 68 } ShimModuleStartUp()69future_t* ShimModuleStartUp() { 70 inc_func_call_count(__func__); 71 return nullptr; 72 } 73