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:10
20 *
21 * mockcify.pl ver 0.3.0
22 */
23
24 // Mock include file to share data between tests and mock
25 #include "test/mock/mock_bta_sys_main.h"
26
27 #include <cstdint>
28
29 #include "test/common/mock_functions.h"
30
31 // Mocked internal structures, if any
32
33 namespace test {
34 namespace mock {
35 namespace bta_sys_main {
36
37 // Function state capture and return values, if needed
38 struct BTA_sys_signal_hw_error BTA_sys_signal_hw_error;
39 struct bta_sys_deregister bta_sys_deregister;
40 struct bta_sys_disable bta_sys_disable;
41 struct bta_sys_init bta_sys_init;
42 struct bta_sys_is_register bta_sys_is_register;
43 struct bta_sys_register bta_sys_register;
44 struct bta_sys_sendmsg bta_sys_sendmsg;
45 struct bta_sys_sendmsg_delayed bta_sys_sendmsg_delayed;
46 struct bta_sys_start_timer bta_sys_start_timer;
47
48 } // namespace bta_sys_main
49 } // namespace mock
50 } // namespace test
51
52 // Mocked functions, if any
BTA_sys_signal_hw_error()53 void BTA_sys_signal_hw_error() {
54 inc_func_call_count(__func__);
55 test::mock::bta_sys_main::BTA_sys_signal_hw_error();
56 }
bta_sys_deregister(uint8_t id)57 void bta_sys_deregister(uint8_t id) {
58 inc_func_call_count(__func__);
59 test::mock::bta_sys_main::bta_sys_deregister(id);
60 }
bta_sys_disable()61 void bta_sys_disable() {
62 inc_func_call_count(__func__);
63 test::mock::bta_sys_main::bta_sys_disable();
64 }
bta_sys_init(void)65 void bta_sys_init(void) {
66 inc_func_call_count(__func__);
67 test::mock::bta_sys_main::bta_sys_init();
68 }
bta_sys_is_register(uint8_t id)69 bool bta_sys_is_register(uint8_t id) {
70 inc_func_call_count(__func__);
71 return test::mock::bta_sys_main::bta_sys_is_register(id);
72 }
bta_sys_register(uint8_t id,const tBTA_SYS_REG * p_reg)73 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg) {
74 inc_func_call_count(__func__);
75 test::mock::bta_sys_main::bta_sys_register(id, p_reg);
76 }
bta_sys_sendmsg(void * p_msg)77 void bta_sys_sendmsg(void* p_msg) {
78 inc_func_call_count(__func__);
79 test::mock::bta_sys_main::bta_sys_sendmsg(p_msg);
80 }
bta_sys_sendmsg_delayed(void * p_msg,std::chrono::microseconds delay)81 void bta_sys_sendmsg_delayed(void* p_msg, std::chrono::microseconds delay) {
82 inc_func_call_count(__func__);
83 test::mock::bta_sys_main::bta_sys_sendmsg_delayed(p_msg, delay);
84 }
bta_sys_start_timer(alarm_t * alarm,uint64_t interval_ms,uint16_t event,uint16_t layer_specific)85 void bta_sys_start_timer(alarm_t* alarm, uint64_t interval_ms, uint16_t event,
86 uint16_t layer_specific) {
87 inc_func_call_count(__func__);
88 test::mock::bta_sys_main::bta_sys_start_timer(alarm, interval_ms, event,
89 layer_specific);
90 }
91 // Mocked functions complete
92 // END mockcify generation
93