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:3
20  *
21  *  mockcify.pl ver 0.2
22  */
23 
24 #include <cstdint>
25 #include <functional>
26 #include <map>
27 #include <string>
28 
29 extern std::map<std::string, int> mock_function_count_map;
30 
31 // Mock include file to share data between tests and mock
32 #include "test/mock/mock_main_bte.h"
33 
34 // Mocked compile conditionals, if any
35 #ifndef UNUSED_ATTR
36 #define UNUSED_ATTR
37 #endif
38 
39 // Mocked internal structures, if any
40 
41 namespace test {
42 namespace mock {
43 namespace main_bte {
44 
45 // Function state capture and return values, if needed
46 struct post_to_main_message_loop post_to_main_message_loop;
47 struct bte_main_init bte_main_init;
48 struct bte_main_hci_send bte_main_hci_send;
49 
50 }  // namespace main_bte
51 }  // namespace mock
52 }  // namespace test
53 
54 // Mocked functions, if any
post_to_main_message_loop(const base::Location & from_here,BT_HDR * p_msg)55 void post_to_main_message_loop(const base::Location& from_here, BT_HDR* p_msg) {
56   mock_function_count_map[__func__]++;
57   test::mock::main_bte::post_to_main_message_loop(from_here, p_msg);
58 }
bte_main_init(void)59 void bte_main_init(void) {
60   mock_function_count_map[__func__]++;
61   test::mock::main_bte::bte_main_init();
62 }
bte_main_hci_send(BT_HDR * p_msg,uint16_t event)63 void bte_main_hci_send(BT_HDR* p_msg, uint16_t event) {
64   mock_function_count_map[__func__]++;
65   test::mock::main_bte::bte_main_hci_send(p_msg, event);
66 }
67 
68 // END mockcify generation
69