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:4 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 <base/callback.h> 29 #include <base/location.h> 30 #include <base/logging.h> 31 #include <map> 32 #include <memory> 33 #include <set> 34 #include "internal_include/bt_trace.h" 35 #include "main/shim/shim.h" 36 #include "osi/include/alarm.h" 37 #include "osi/include/log.h" 38 #include "stack/btm/btm_ble_bgconn.h" 39 #include "stack/gatt/connection_manager.h" 40 #include "stack/include/l2c_api.h" 41 42 #ifndef UNUSED_ATTR 43 #define UNUSED_ATTR 44 #endif 45 direct_connect_add(uint8_t app_id,const RawAddress & address)46bool connection_manager::direct_connect_add(uint8_t app_id, 47 const RawAddress& address) { 48 mock_function_count_map[__func__]++; 49 return false; 50 } direct_connect_remove(uint8_t app_id,const RawAddress & address)51bool connection_manager::direct_connect_remove(uint8_t app_id, 52 const RawAddress& address) { 53 mock_function_count_map[__func__]++; 54 return false; 55 } on_connection_complete(const RawAddress & address)56void connection_manager::on_connection_complete(const RawAddress& address) { 57 mock_function_count_map[__func__]++; 58 } reset(bool)59void connection_manager::reset(bool) { mock_function_count_map[__func__]++; } 60