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 // TODO(b/369381361) Enfore -Wmissing-prototypes
34 #pragma GCC diagnostic ignored "-Wmissing-prototypes"
35 
36 namespace test {
37 namespace mock {
38 namespace bta_sys_main {
39 
40 // Function state capture and return values, if needed
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_deregister(uint8_t id)55 void bta_sys_deregister(uint8_t id) {
56   inc_func_call_count(__func__);
57   test::mock::bta_sys_main::bta_sys_deregister(id);
58 }
bta_sys_disable()59 void bta_sys_disable() {
60   inc_func_call_count(__func__);
61   test::mock::bta_sys_main::bta_sys_disable();
62 }
bta_sys_init(void)63 void bta_sys_init(void) {
64   inc_func_call_count(__func__);
65   test::mock::bta_sys_main::bta_sys_init();
66 }
bta_sys_is_register(uint8_t id)67 bool bta_sys_is_register(uint8_t id) {
68   inc_func_call_count(__func__);
69   return test::mock::bta_sys_main::bta_sys_is_register(id);
70 }
bta_sys_register(uint8_t id,const tBTA_SYS_REG * p_reg)71 void bta_sys_register(uint8_t id, const tBTA_SYS_REG* p_reg) {
72   inc_func_call_count(__func__);
73   test::mock::bta_sys_main::bta_sys_register(id, p_reg);
74 }
bta_sys_sendmsg(void * p_msg)75 void bta_sys_sendmsg(void* p_msg) {
76   inc_func_call_count(__func__);
77   test::mock::bta_sys_main::bta_sys_sendmsg(p_msg);
78 }
bta_sys_sendmsg_delayed(void * p_msg,std::chrono::microseconds delay)79 void bta_sys_sendmsg_delayed(void* p_msg, std::chrono::microseconds delay) {
80   inc_func_call_count(__func__);
81   test::mock::bta_sys_main::bta_sys_sendmsg_delayed(p_msg, delay);
82 }
bta_sys_start_timer(alarm_t * alarm,uint64_t interval_ms,uint16_t event,uint16_t layer_specific)83 void bta_sys_start_timer(alarm_t* alarm, uint64_t interval_ms, uint16_t event,
84                          uint16_t layer_specific) {
85   inc_func_call_count(__func__);
86   test::mock::bta_sys_main::bta_sys_start_timer(alarm, interval_ms, event, layer_specific);
87 }
88 // Mocked functions complete
89 // END mockcify generation
90