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