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 <base/functional/bind.h>
23 #include <base/functional/callback.h>
24 #include <base/location.h>
25 #include <base/logging.h>
26
27 #include <map>
28 #include <memory>
29 #include <set>
30 #include <string>
31
32 #include "main/shim/shim.h"
33 #include "osi/include/alarm.h"
34 #include "osi/include/log.h"
35 #include "stack/btm/btm_ble_bgconn.h"
36 #include "stack/gatt/connection_manager.h"
37 #include "stack/include/l2c_api.h"
38 #include "test/common/mock_functions.h"
39 #include "types/raw_address.h"
40
41 using namespace connection_manager;
42
43 #ifndef UNUSED_ATTR
44 #define UNUSED_ATTR
45 #endif
46
background_connect_add(uint8_t app_id,const RawAddress & address)47 bool connection_manager::background_connect_add(uint8_t app_id,
48 const RawAddress& address) {
49 inc_func_call_count(__func__);
50 return false;
51 }
background_connect_remove(uint8_t app_id,const RawAddress & address)52 bool connection_manager::background_connect_remove(uint8_t app_id,
53 const RawAddress& address) {
54 inc_func_call_count(__func__);
55 return false;
56 }
direct_connect_add(uint8_t app_id,const RawAddress & address)57 bool connection_manager::direct_connect_add(uint8_t app_id,
58 const RawAddress& address) {
59 inc_func_call_count(__func__);
60 return false;
61 }
direct_connect_remove(uint8_t app_id,const RawAddress & address)62 bool connection_manager::direct_connect_remove(uint8_t app_id,
63 const RawAddress& address) {
64 inc_func_call_count(__func__);
65 return false;
66 }
remove_unconditional(const RawAddress & address)67 bool connection_manager::remove_unconditional(const RawAddress& address) {
68 inc_func_call_count(__func__);
69 return false;
70 }
get_apps_connecting_to(const RawAddress & address)71 std::set<tAPP_ID> connection_manager::get_apps_connecting_to(
72 const RawAddress& address) {
73 inc_func_call_count(__func__);
74 return std::set<tAPP_ID>();
75 }
dump(int fd)76 void connection_manager::dump(int fd) { inc_func_call_count(__func__); }
on_app_deregistered(uint8_t app_id)77 void connection_manager::on_app_deregistered(uint8_t app_id) {
78 inc_func_call_count(__func__);
79 }
on_connection_complete(const RawAddress & address)80 void connection_manager::on_connection_complete(const RawAddress& address) {
81 inc_func_call_count(__func__);
82 }
83
on_connection_timed_out_from_shim(const RawAddress & address)84 void connection_manager::on_connection_timed_out_from_shim(
85 const RawAddress& address) {
86 inc_func_call_count(__func__);
87 }
88
reset(bool after_reset)89 void connection_manager::reset(bool after_reset) {
90 inc_func_call_count(__func__);
91 }
92
is_background_connection(const RawAddress & address)93 bool connection_manager::is_background_connection(const RawAddress& address) {
94 inc_func_call_count(__func__);
95 return false;
96 }
97