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:5 20 */ 21 22 #include <map> 23 #include <string> 24 25 extern std::map<std::string, int> mock_function_count_map; 26 27 #include <string.h> 28 #include "bt_common.h" 29 #include "bt_target.h" 30 #include "hcidefs.h" 31 #include "l2c_api.h" 32 #include "l2cdefs.h" 33 #include "osi/include/osi.h" 34 #include "sdp_api.h" 35 #include "stack/btm/btm_sec.h" 36 #include "stack/sdp/sdpint.h" 37 38 #ifndef UNUSED_ATTR 39 #define UNUSED_ATTR 40 #endif 41 sdp_conn_originate(const RawAddress & p_bd_addr)42tCONN_CB* sdp_conn_originate(const RawAddress& p_bd_addr) { 43 mock_function_count_map[__func__]++; 44 return nullptr; 45 } sdp_conn_timer_timeout(void * data)46void sdp_conn_timer_timeout(void* data) { mock_function_count_map[__func__]++; } sdp_disconnect(tCONN_CB * p_ccb,uint16_t reason)47void sdp_disconnect(tCONN_CB* p_ccb, uint16_t reason) { 48 mock_function_count_map[__func__]++; 49 } sdp_free(void)50void sdp_free(void) { mock_function_count_map[__func__]++; } sdp_init(void)51void sdp_init(void) { mock_function_count_map[__func__]++; } 52