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:16
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 using namespace connection_manager;
43 
44 #ifndef UNUSED_ATTR
45 #define UNUSED_ATTR
46 #endif
47 
background_connect_add(uint8_t app_id,const RawAddress & address)48 bool connection_manager::background_connect_add(uint8_t app_id,
49                                                 const RawAddress& address) {
50   mock_function_count_map[__func__]++;
51   return false;
52 }
background_connect_remove(uint8_t app_id,const RawAddress & address)53 bool connection_manager::background_connect_remove(uint8_t app_id,
54                                                    const RawAddress& address) {
55   mock_function_count_map[__func__]++;
56   return false;
57 }
direct_connect_add(uint8_t app_id,const RawAddress & address)58 bool connection_manager::direct_connect_add(uint8_t app_id,
59                                             const RawAddress& address) {
60   mock_function_count_map[__func__]++;
61   return false;
62 }
direct_connect_remove(uint8_t app_id,const RawAddress & address)63 bool connection_manager::direct_connect_remove(uint8_t app_id,
64                                                const RawAddress& address) {
65   mock_function_count_map[__func__]++;
66   return false;
67 }
remove_unconditional(const RawAddress & address)68 bool connection_manager::remove_unconditional(const RawAddress& address) {
69   mock_function_count_map[__func__]++;
70   return false;
71 }
get_apps_connecting_to(const RawAddress & address)72 std::set<tAPP_ID> connection_manager::get_apps_connecting_to(
73     const RawAddress& address) {
74   mock_function_count_map[__func__]++;
75   return std::set<tAPP_ID>();
76 }
dump(int fd)77 void connection_manager::dump(int fd) { mock_function_count_map[__func__]++; }
on_app_deregistered(uint8_t app_id)78 void connection_manager::on_app_deregistered(uint8_t app_id) {
79   mock_function_count_map[__func__]++;
80 }
on_connection_complete(const RawAddress & address)81 void connection_manager::on_connection_complete(const RawAddress& address) {
82   mock_function_count_map[__func__]++;
83 }
reset(bool after_reset)84 void connection_manager::reset(bool after_reset) {
85   mock_function_count_map[__func__]++;
86 }
87