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 <set>
23
24 #include "stack/connection_manager/connection_manager.h"
25 #include "test/common/mock_functions.h"
26 #include "types/raw_address.h"
27
28 using namespace connection_manager;
29
background_connect_targeted_announcement_add(tAPP_ID,const RawAddress &)30 bool connection_manager::background_connect_targeted_announcement_add(
31 tAPP_ID /* app_id */, const RawAddress& /* address */) {
32 inc_func_call_count(__func__);
33 return false;
34 }
35
background_connect_add(uint8_t,const RawAddress &)36 bool connection_manager::background_connect_add(uint8_t /* app_id */,
37 const RawAddress& /* address */) {
38 inc_func_call_count(__func__);
39 return false;
40 }
background_connect_remove(uint8_t,const RawAddress &)41 bool connection_manager::background_connect_remove(uint8_t /* app_id */,
42 const RawAddress& /* address */) {
43 inc_func_call_count(__func__);
44 return false;
45 }
46
create_le_connection(uint8_t,const RawAddress &,tBLE_ADDR_TYPE)47 bool connection_manager::create_le_connection(uint8_t /* id */, const RawAddress& /* bd_addr */,
48 tBLE_ADDR_TYPE /* addr_type */) {
49 inc_func_call_count(__func__);
50 return false;
51 }
52
direct_connect_add(uint8_t,const RawAddress &)53 bool connection_manager::direct_connect_add(uint8_t /* app_id */, const RawAddress& /* address */) {
54 inc_func_call_count(__func__);
55 return false;
56 }
direct_connect_remove(uint8_t,const RawAddress &,bool)57 bool connection_manager::direct_connect_remove(uint8_t /* app_id */,
58 const RawAddress& /* address */,
59 bool /* connection_timeout */) {
60 inc_func_call_count(__func__);
61 return false;
62 }
remove_unconditional(const RawAddress &)63 bool connection_manager::remove_unconditional(const RawAddress& /* address */) {
64 inc_func_call_count(__func__);
65 return false;
66 }
get_apps_connecting_to(const RawAddress &)67 std::set<tAPP_ID> connection_manager::get_apps_connecting_to(const RawAddress& /* address */) {
68 inc_func_call_count(__func__);
69 return std::set<tAPP_ID>();
70 }
dump(int)71 void connection_manager::dump(int /* fd */) { inc_func_call_count(__func__); }
on_app_deregistered(uint8_t)72 void connection_manager::on_app_deregistered(uint8_t /* app_id */) {
73 inc_func_call_count(__func__);
74 }
on_connection_complete(const RawAddress &)75 void connection_manager::on_connection_complete(const RawAddress& /* address */) {
76 inc_func_call_count(__func__);
77 }
78
on_connection_timed_out_from_shim(const RawAddress &)79 void connection_manager::on_connection_timed_out_from_shim(const RawAddress& /* address */) {
80 inc_func_call_count(__func__);
81 }
82
reset(bool)83 void connection_manager::reset(bool /* after_reset */) { inc_func_call_count(__func__); }
84
is_background_connection(const RawAddress &)85 bool connection_manager::is_background_connection(const RawAddress& /* address */) {
86 inc_func_call_count(__func__);
87 return false;
88 }
89