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:17
20  *
21  *  mockcify.pl ver 0.2.1
22  */
23 // Mock include file to share data between tests and mock
24 #include "test/mock/mock_btif_bluetooth.h"
25 
26 #include <cstdint>
27 
28 #include "test/common/mock_functions.h"
29 #include "types/raw_address.h"
30 
31 // Mocked compile conditionals, if any
32 // Mocked internal structures, if any
33 
34 namespace test {
35 namespace mock {
36 namespace btif_bluetooth {
37 
38 // Function state capture and return values, if needed
39 struct is_atv_device is_atv_device;
40 struct is_common_criteria_mode is_common_criteria_mode;
41 struct is_restricted_mode is_restricted_mode;
42 struct dut_mode_configure dut_mode_configure;
43 struct dut_mode_send dut_mode_send;
44 struct get_common_criteria_config_compare_result
45     get_common_criteria_config_compare_result;
46 struct get_remote_device_properties get_remote_device_properties;
47 struct get_remote_device_property get_remote_device_property;
48 struct get_remote_services get_remote_services;
49 struct le_test_mode le_test_mode;
50 struct set_remote_device_property set_remote_device_property;
51 struct invoke_switch_buffer_size_cb invoke_switch_buffer_size_cb;
52 
53 }  // namespace btif_bluetooth
54 }  // namespace mock
55 }  // namespace test
56 
57 // Mocked functions, if any
is_atv_device()58 bool is_atv_device() {
59   inc_func_call_count(__func__);
60   return test::mock::btif_bluetooth::is_atv_device();
61 }
is_common_criteria_mode()62 bool is_common_criteria_mode() {
63   inc_func_call_count(__func__);
64   return test::mock::btif_bluetooth::is_common_criteria_mode();
65 }
is_restricted_mode()66 bool is_restricted_mode() {
67   inc_func_call_count(__func__);
68   return test::mock::btif_bluetooth::is_restricted_mode();
69 }
dut_mode_configure(uint8_t enable)70 int dut_mode_configure(uint8_t enable) {
71   inc_func_call_count(__func__);
72   return test::mock::btif_bluetooth::dut_mode_configure(enable);
73 }
dut_mode_send(uint16_t opcode,uint8_t * buf,uint8_t len)74 int dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len) {
75   inc_func_call_count(__func__);
76   return test::mock::btif_bluetooth::dut_mode_send(opcode, buf, len);
77 }
get_common_criteria_config_compare_result()78 int get_common_criteria_config_compare_result() {
79   inc_func_call_count(__func__);
80   return test::mock::btif_bluetooth::
81       get_common_criteria_config_compare_result();
82 }
get_remote_device_properties(RawAddress * remote_addr)83 int get_remote_device_properties(RawAddress* remote_addr) {
84   inc_func_call_count(__func__);
85   return test::mock::btif_bluetooth::get_remote_device_properties(remote_addr);
86 }
get_remote_device_property(RawAddress * remote_addr,bt_property_type_t type)87 int get_remote_device_property(RawAddress* remote_addr,
88                                bt_property_type_t type) {
89   inc_func_call_count(__func__);
90   return test::mock::btif_bluetooth::get_remote_device_property(remote_addr,
91                                                                 type);
92 }
get_remote_services(RawAddress * remote_addr)93 int get_remote_services(RawAddress* remote_addr) {
94   inc_func_call_count(__func__);
95   return test::mock::btif_bluetooth::get_remote_services(remote_addr);
96 }
le_test_mode(uint16_t opcode,uint8_t * buf,uint8_t len)97 int le_test_mode(uint16_t opcode, uint8_t* buf, uint8_t len) {
98   inc_func_call_count(__func__);
99   return test::mock::btif_bluetooth::le_test_mode(opcode, buf, len);
100 }
set_remote_device_property(RawAddress * remote_addr,const bt_property_t * property)101 int set_remote_device_property(RawAddress* remote_addr,
102                                const bt_property_t* property) {
103   inc_func_call_count(__func__);
104   return test::mock::btif_bluetooth::set_remote_device_property(remote_addr,
105                                                                 property);
106 }
invoke_switch_buffer_size_cb(bool invoke_switch_buffer_size_cb)107 void invoke_switch_buffer_size_cb(bool invoke_switch_buffer_size_cb) {
108   inc_func_call_count(__func__);
109   test::mock::btif_bluetooth::invoke_switch_buffer_size_cb(
110       invoke_switch_buffer_size_cb);
111 }
112 
113 // END mockcify generation
114