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_deregister bta_sys_deregister;
39 struct bta_sys_disable bta_sys_disable;
40 struct bta_sys_init bta_sys_init;
41 struct bta_sys_is_register bta_sys_is_register;
42 struct bta_sys_register bta_sys_register;
43 struct bta_sys_sendmsg bta_sys_sendmsg;
44 struct bta_sys_sendmsg_delayed bta_sys_sendmsg_delayed;
45 struct bta_sys_start_timer bta_sys_start_timer;
46
47 } // namespace bta_sys_main
48 } // namespace mock
49 } // namespace test
50
51 // Mocked functions, if any
bta_sys_deregister(uint8_t id)52 void bta_sys_deregister(uint8_t id) {
53 inc_func_call_count(__func__);
54 test::mock::bta_sys_main::bta_sys_deregister(id);
55 }
bta_sys_disable()56 void bta_sys_disable() {
57 inc_func_call_count(__func__);
58 test::mock::bta_sys_main::bta_sys_disable();
59 }
bta_sys_init(void)60 void bta_sys_init(void) {
61 inc_func_call_count(__func__);
62 test::mock::bta_sys_main::bta_sys_init();
63 }
bta_sys_is_register(uint8_t id)64 bool bta_sys_is_register(uint8_t id) {
65 inc_func_call_count(__func__);
66 return test::mock::bta_sys_main::bta_sys_is_register(id);
67 }
bta_sys_register(uint8_t id,const tBTA_SYS_REG * p_reg)68 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg) {
69 inc_func_call_count(__func__);
70 test::mock::bta_sys_main::bta_sys_register(id, p_reg);
71 }
bta_sys_sendmsg(void * p_msg)72 void bta_sys_sendmsg(void* p_msg) {
73 inc_func_call_count(__func__);
74 test::mock::bta_sys_main::bta_sys_sendmsg(p_msg);
75 }
bta_sys_sendmsg_delayed(void * p_msg,std::chrono::microseconds delay)76 void bta_sys_sendmsg_delayed(void* p_msg, std::chrono::microseconds delay) {
77 inc_func_call_count(__func__);
78 test::mock::bta_sys_main::bta_sys_sendmsg_delayed(p_msg, delay);
79 }
bta_sys_start_timer(alarm_t * alarm,uint64_t interval_ms,uint16_t event,uint16_t layer_specific)80 void bta_sys_start_timer(alarm_t* alarm, uint64_t interval_ms, uint16_t event,
81 uint16_t layer_specific) {
82 inc_func_call_count(__func__);
83 test::mock::bta_sys_main::bta_sys_start_timer(alarm, interval_ms, event, layer_specific);
84 }
85 // Mocked functions complete
86 // END mockcify generation
87