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 #pragma once 17 18 /* 19 * Generated mock file from original source file 20 * Functions generated:5 21 * 22 * mockcify.pl ver 0.6.0 23 */ 24 25 #include <cstdint> 26 #include <functional> 27 28 // Original included files, if any 29 #include "btif/include/btif_profile_queue.h" 30 #include "types/raw_address.h" 31 32 // Original usings 33 34 // Mocked compile conditionals, if any 35 36 namespace test { 37 namespace mock { 38 namespace btif_profile_queue { 39 40 // Shared state between mocked functions and tests 41 // Name: btif_queue_advance 42 // Params: 43 // Return: void 44 struct btif_queue_advance { 45 std::function<void()> body{[]() {}}; operatorbtif_queue_advance46 void operator()() { body(); } 47 }; 48 extern struct btif_queue_advance btif_queue_advance; 49 50 // Name: btif_queue_cleanup 51 // Params: uint16_t uuid 52 // Return: void 53 struct btif_queue_cleanup { 54 std::function<void(uint16_t uuid)> body{[](uint16_t /* uuid */) {}}; operatorbtif_queue_cleanup55 void operator()(uint16_t uuid) { body(uuid); } 56 }; 57 extern struct btif_queue_cleanup btif_queue_cleanup; 58 59 // Name: btif_queue_connect 60 // Params: uint16_t uuid, const RawAddress* bda, btif_connect_cb_t connect_cb 61 // Return: bt_status_t 62 struct btif_queue_connect { 63 static bt_status_t return_value; 64 std::function<bt_status_t(uint16_t uuid, const RawAddress* bda, btif_connect_cb_t connect_cb)> 65 body{[](uint16_t /* uuid */, const RawAddress* /* bda */, 66 btif_connect_cb_t /* connect_cb */) { return return_value; }}; operatorbtif_queue_connect67 bt_status_t operator()(uint16_t uuid, const RawAddress* bda, btif_connect_cb_t connect_cb) { 68 return body(uuid, bda, connect_cb); 69 } 70 }; 71 extern struct btif_queue_connect btif_queue_connect; 72 73 // Name: btif_queue_connect_next 74 // Params: void 75 // Return: bt_status_t 76 struct btif_queue_connect_next { 77 static bt_status_t return_value; 78 std::function<bt_status_t(void)> body{[](void) { return return_value; }}; operatorbtif_queue_connect_next79 bt_status_t operator()(void) { return body(); } 80 }; 81 extern struct btif_queue_connect_next btif_queue_connect_next; 82 83 // Name: btif_queue_release 84 // Params: 85 // Return: void 86 struct btif_queue_release { 87 std::function<void()> body{[]() {}}; operatorbtif_queue_release88 void operator()() { body(); } 89 }; 90 extern struct btif_queue_release btif_queue_release; 91 92 } // namespace btif_profile_queue 93 } // namespace mock 94 } // namespace test 95 96 // END mockcify generation 97