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 #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_bta_sys_main.h"
31
32 // Mocked internal structures, if any
33
34 namespace test {
35 namespace mock {
36 namespace bta_sys_main {
37
38 // Function state capture and return values, if needed
39 struct BTA_sys_signal_hw_error BTA_sys_signal_hw_error;
40 struct bta_set_forward_hw_failures bta_set_forward_hw_failures;
41 struct bta_sys_deregister bta_sys_deregister;
42 struct bta_sys_disable bta_sys_disable;
43 struct bta_sys_init bta_sys_init;
44 struct bta_sys_is_register bta_sys_is_register;
45 struct bta_sys_register bta_sys_register;
46 struct bta_sys_sendmsg bta_sys_sendmsg;
47 struct bta_sys_sendmsg_delayed bta_sys_sendmsg_delayed;
48 struct bta_sys_start_timer bta_sys_start_timer;
49
50 } // namespace bta_sys_main
51 } // namespace mock
52 } // namespace test
53
54 // Mocked functions, if any
BTA_sys_signal_hw_error()55 void BTA_sys_signal_hw_error() {
56 inc_func_call_count(__func__);
57 test::mock::bta_sys_main::BTA_sys_signal_hw_error();
58 }
bta_set_forward_hw_failures(bool value)59 void bta_set_forward_hw_failures(bool value) {
60 inc_func_call_count(__func__);
61 test::mock::bta_sys_main::bta_set_forward_hw_failures(value);
62 }
bta_sys_deregister(uint8_t id)63 void bta_sys_deregister(uint8_t id) {
64 inc_func_call_count(__func__);
65 test::mock::bta_sys_main::bta_sys_deregister(id);
66 }
bta_sys_disable()67 void bta_sys_disable() {
68 inc_func_call_count(__func__);
69 test::mock::bta_sys_main::bta_sys_disable();
70 }
bta_sys_init(void)71 void bta_sys_init(void) {
72 inc_func_call_count(__func__);
73 test::mock::bta_sys_main::bta_sys_init();
74 }
bta_sys_is_register(uint8_t id)75 bool bta_sys_is_register(uint8_t id) {
76 inc_func_call_count(__func__);
77 return test::mock::bta_sys_main::bta_sys_is_register(id);
78 }
bta_sys_register(uint8_t id,const tBTA_SYS_REG * p_reg)79 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg) {
80 inc_func_call_count(__func__);
81 test::mock::bta_sys_main::bta_sys_register(id, p_reg);
82 }
bta_sys_sendmsg(void * p_msg)83 void bta_sys_sendmsg(void* p_msg) {
84 inc_func_call_count(__func__);
85 test::mock::bta_sys_main::bta_sys_sendmsg(p_msg);
86 }
bta_sys_sendmsg_delayed(void * p_msg,const base::TimeDelta & delay)87 void bta_sys_sendmsg_delayed(void* p_msg, const base::TimeDelta& delay) {
88 inc_func_call_count(__func__);
89 test::mock::bta_sys_main::bta_sys_sendmsg_delayed(p_msg, delay);
90 }
bta_sys_start_timer(alarm_t * alarm,uint64_t interval_ms,uint16_t event,uint16_t layer_specific)91 void bta_sys_start_timer(alarm_t* alarm, uint64_t interval_ms, uint16_t event,
92 uint16_t layer_specific) {
93 inc_func_call_count(__func__);
94 test::mock::bta_sys_main::bta_sys_start_timer(alarm, interval_ms, event,
95 layer_specific);
96 }
97 // Mocked functions complete
98 // END mockcify generation
99