• 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 
27 // Original included files, if any
28 #include "include/hardware/bluetooth.h"
29 #include "types/raw_address.h"
30 
31 // Mocked compile conditionals, if any
32 namespace test {
33 namespace mock {
34 namespace btif_bluetooth {
35 
36 // Shared state between mocked functions and tests
37 // Name: is_atv_device
38 // Params:
39 // Returns: bool
40 struct is_atv_device {
41   std::function<bool()> body{[]() { return false; }};
operatoris_atv_device42   bool operator()() { return body(); }
43 };
44 extern struct is_atv_device is_atv_device;
45 // Name: is_common_criteria_mode
46 // Params:
47 // Returns: bool
48 struct is_common_criteria_mode {
49   std::function<bool()> body{[]() { return false; }};
operatoris_common_criteria_mode50   bool operator()() { return body(); }
51 };
52 extern struct is_common_criteria_mode is_common_criteria_mode;
53 // Name: is_restricted_mode
54 // Params:
55 // Returns: bool
56 struct is_restricted_mode {
57   std::function<bool()> body{[]() { return false; }};
operatoris_restricted_mode58   bool operator()() { return body(); }
59 };
60 extern struct is_restricted_mode is_restricted_mode;
61 // Name: get_common_criteria_config_compare_result
62 // Params:
63 // Returns: int
64 struct get_common_criteria_config_compare_result {
65   std::function<int()> body{[]() { return 0; }};
operatorget_common_criteria_config_compare_result66   int operator()() { return body(); }
67 };
68 extern struct get_common_criteria_config_compare_result get_common_criteria_config_compare_result;
69 // Name: invoke_switch_buffer_size_cb
70 // Params: bool invoke_switch_buffer_size_cb
71 // Returns: void
72 struct invoke_switch_buffer_size_cb {
73   std::function<void(bool invoke_switch_buffer_size_cb)> body{[](bool) {}};
operatorinvoke_switch_buffer_size_cb74   void operator()(bool invoke_switch_buffer_size_cb) { body(invoke_switch_buffer_size_cb); }
75 };
76 extern struct invoke_switch_buffer_size_cb invoke_switch_buffer_size_cb;
77 
78 }  // namespace btif_bluetooth
79 }  // namespace mock
80 }  // namespace test
81 
82 // END mockcify generation
83