• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2023 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  * Generated mock file from original source file
18  *   Functions generated:5
19  *
20  *  mockcify.pl ver 0.6.0
21  */
22 
23 // Mock include file to share data between tests and mock
24 #include "test/mock/mock_btif_profile_queue.h"
25 
26 #include <cstdint>
27 
28 #include "test/common/mock_functions.h"
29 
30 // Original usings
31 
32 // Mocked internal structures, if any
33 
34 namespace test {
35 namespace mock {
36 namespace btif_profile_queue {
37 
38 // Function state capture and return values, if needed
39 struct btif_queue_advance btif_queue_advance;
40 struct btif_queue_cleanup btif_queue_cleanup;
41 struct btif_queue_connect btif_queue_connect;
42 struct btif_queue_connect_next btif_queue_connect_next;
43 struct btif_queue_release btif_queue_release;
44 
45 }  // namespace btif_profile_queue
46 }  // namespace mock
47 }  // namespace test
48 
49 // Mocked function return values, if any
50 namespace test {
51 namespace mock {
52 namespace btif_profile_queue {
53 
54 bt_status_t btif_queue_connect::return_value = BT_STATUS_SUCCESS;
55 bt_status_t btif_queue_connect_next::return_value = BT_STATUS_SUCCESS;
56 
57 }  // namespace btif_profile_queue
58 }  // namespace mock
59 }  // namespace test
60 
61 // Mocked functions, if any
btif_queue_advance()62 void btif_queue_advance() {
63   inc_func_call_count(__func__);
64   test::mock::btif_profile_queue::btif_queue_advance();
65 }
btif_queue_cleanup(uint16_t uuid)66 void btif_queue_cleanup(uint16_t uuid) {
67   inc_func_call_count(__func__);
68   test::mock::btif_profile_queue::btif_queue_cleanup(uuid);
69 }
btif_queue_connect(uint16_t uuid,const RawAddress * bda,btif_connect_cb_t connect_cb)70 bt_status_t btif_queue_connect(uint16_t uuid, const RawAddress* bda, btif_connect_cb_t connect_cb) {
71   inc_func_call_count(__func__);
72   return test::mock::btif_profile_queue::btif_queue_connect(uuid, bda, connect_cb);
73 }
btif_queue_connect_next(void)74 bt_status_t btif_queue_connect_next(void) {
75   inc_func_call_count(__func__);
76   return test::mock::btif_profile_queue::btif_queue_connect_next();
77 }
btif_queue_release()78 void btif_queue_release() {
79   inc_func_call_count(__func__);
80   test::mock::btif_profile_queue::btif_queue_release();
81 }
82 // Mocked functions complete
83 // END mockcify generation
84