• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:5
20  *
21  *  mockcify.pl ver 0.7.0
22  */
23 
24 // Mock include file to share data between tests and mock
25 #include "test/mock/mock_main_shim_hci_layer.h"
26 
27 #include "main/shim/hci_layer.h"
28 #include "test/common/mock_functions.h"
29 
30 // Original usings
31 
32 // Mocked internal structures, if any
33 
34 namespace bluetooth::shim {
35 namespace testing {
36 const hci_t* test_interface = nullptr;
hci_layer_set_interface(const hci_t * interface)37 void hci_layer_set_interface(const hci_t* interface) { test_interface = interface; }
38 }  // namespace testing
39 }  // namespace bluetooth::shim
40 
hci_layer_get_interface()41 const hci_t* bluetooth::shim::hci_layer_get_interface() { return testing::test_interface; }
42 
43 namespace test {
44 namespace mock {
45 namespace main_shim_hci_layer {
46 
47 // Function state capture and return values, if needed
48 struct hci_on_reset_complete hci_on_reset_complete;
49 struct hci_on_shutting_down hci_on_shutting_down;
50 
51 }  // namespace main_shim_hci_layer
52 }  // namespace mock
53 }  // namespace test
54 
55 // Mocked function return values, if any
56 namespace test {
57 namespace mock {
58 namespace main_shim_hci_layer {}  // namespace main_shim_hci_layer
59 }  // namespace mock
60 }  // namespace test
61 
hci_on_reset_complete()62 void bluetooth::shim::hci_on_reset_complete() {
63   inc_func_call_count(__func__);
64   test::mock::main_shim_hci_layer::hci_on_reset_complete();
65 }
hci_on_shutting_down()66 void bluetooth::shim::hci_on_shutting_down() {
67   inc_func_call_count(__func__);
68   test::mock::main_shim_hci_layer::hci_on_shutting_down();
69 }
70 // Mocked functions complete
71 // END mockcify generation
72