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: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/location.h> 29 #include "bt_target.h" 30 #include "bta/include/bta_sdp_api.h" 31 #include "bta/sdp/bta_sdp_int.h" 32 #include "stack/include/btu.h" 33 34 #ifndef UNUSED_ATTR 35 #define UNUSED_ATTR 36 #endif 37 BTA_SdpCreateRecordByUser(void * user_data)38tBTA_SDP_STATUS BTA_SdpCreateRecordByUser(void* user_data) { 39 mock_function_count_map[__func__]++; 40 return BTA_SDP_SUCCESS; 41 } BTA_SdpEnable(tBTA_SDP_DM_CBACK * p_cback)42tBTA_SDP_STATUS BTA_SdpEnable(tBTA_SDP_DM_CBACK* p_cback) { 43 mock_function_count_map[__func__]++; 44 return BTA_SDP_SUCCESS; 45 } BTA_SdpRemoveRecordByUser(void * user_data)46tBTA_SDP_STATUS BTA_SdpRemoveRecordByUser(void* user_data) { 47 mock_function_count_map[__func__]++; 48 return BTA_SDP_SUCCESS; 49 } BTA_SdpSearch(const RawAddress & bd_addr,const bluetooth::Uuid & uuid)50tBTA_SDP_STATUS BTA_SdpSearch(const RawAddress& bd_addr, 51 const bluetooth::Uuid& uuid) { 52 mock_function_count_map[__func__]++; 53 return BTA_SDP_SUCCESS; 54 } 55