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