• 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 // 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 "btif/include/btif_api.h"
29 #include "test/common/mock_functions.h"
30 #include "types/raw_address.h"
31 
32 // Mocked compile conditionals, if any
33 // Mocked internal structures, if any
34 
35 namespace test {
36 namespace mock {
37 namespace btif_bluetooth {
38 
39 // Function state capture and return values, if needed
40 struct is_atv_device is_atv_device;
41 struct is_common_criteria_mode is_common_criteria_mode;
42 struct is_restricted_mode is_restricted_mode;
43 struct get_common_criteria_config_compare_result get_common_criteria_config_compare_result;
44 struct invoke_switch_buffer_size_cb invoke_switch_buffer_size_cb;
45 
46 }  // namespace btif_bluetooth
47 }  // namespace mock
48 }  // namespace test
49 
50 // Mocked functions, if any
is_atv_device()51 bool is_atv_device() {
52   inc_func_call_count(__func__);
53   return test::mock::btif_bluetooth::is_atv_device();
54 }
is_common_criteria_mode()55 bool is_common_criteria_mode() {
56   inc_func_call_count(__func__);
57   return test::mock::btif_bluetooth::is_common_criteria_mode();
58 }
is_restricted_mode()59 bool is_restricted_mode() {
60   inc_func_call_count(__func__);
61   return test::mock::btif_bluetooth::is_restricted_mode();
62 }
get_common_criteria_config_compare_result()63 int get_common_criteria_config_compare_result() {
64   inc_func_call_count(__func__);
65   return test::mock::btif_bluetooth::get_common_criteria_config_compare_result();
66 }
invoke_switch_buffer_size_cb(bool invoke_switch_buffer_size_cb)67 void invoke_switch_buffer_size_cb(bool invoke_switch_buffer_size_cb) {
68   inc_func_call_count(__func__);
69   test::mock::btif_bluetooth::invoke_switch_buffer_size_cb(invoke_switch_buffer_size_cb);
70 }
71 
72 // END mockcify generation
73