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:9 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 "hci/include/btsnoop.h" 31 #include "hcimsgs.h" 32 #include "l2c_api.h" 33 #include "l2cdefs.h" 34 #include "main/shim/shim.h" 35 #include "osi/include/log.h" 36 #include "osi/include/osi.h" 37 #include "stack/l2cap/l2c_int.h" 38 39 #ifndef UNUSED_ATTR 40 #define UNUSED_ATTR 41 #endif 42 l2c_data_write(uint16_t cid,BT_HDR * p_data,uint16_t flags)43uint8_t l2c_data_write(uint16_t cid, BT_HDR* p_data, uint16_t flags) { 44 mock_function_count_map[__func__]++; 45 return 0; 46 } l2c_ccb_timer_timeout(void * data)47void l2c_ccb_timer_timeout(void* data) { mock_function_count_map[__func__]++; } l2c_fcrb_ack_timer_timeout(void * data)48void l2c_fcrb_ack_timer_timeout(void* data) { 49 mock_function_count_map[__func__]++; 50 } l2c_free(void)51void l2c_free(void) { mock_function_count_map[__func__]++; } l2c_init(void)52void l2c_init(void) { mock_function_count_map[__func__]++; } l2c_lcb_timer_timeout(void * data)53void l2c_lcb_timer_timeout(void* data) { mock_function_count_map[__func__]++; } l2c_process_held_packets(bool timed_out)54void l2c_process_held_packets(bool timed_out) { 55 mock_function_count_map[__func__]++; 56 } l2c_rcv_acl_data(BT_HDR * p_msg)57void l2c_rcv_acl_data(BT_HDR* p_msg) { mock_function_count_map[__func__]++; } l2c_receive_hold_timer_timeout(UNUSED_ATTR void * data)58void l2c_receive_hold_timer_timeout(UNUSED_ATTR void* data) { 59 mock_function_count_map[__func__]++; 60 } 61