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, 65 btif_connect_cb_t connect_cb)> 66 body{[](uint16_t /* uuid */, const RawAddress* /* bda */, 67 btif_connect_cb_t /* connect_cb */) { return return_value; }}; operatorbtif_queue_connect68 bt_status_t operator()(uint16_t uuid, const RawAddress* bda, 69 btif_connect_cb_t connect_cb) { 70 return body(uuid, bda, connect_cb); 71 }; 72 }; 73 extern struct btif_queue_connect btif_queue_connect; 74 75 // Name: btif_queue_connect_next 76 // Params: void 77 // Return: bt_status_t 78 struct btif_queue_connect_next { 79 static bt_status_t return_value; 80 std::function<bt_status_t(void)> body{[](void) { return return_value; }}; operatorbtif_queue_connect_next81 bt_status_t operator()(void) { return body(); }; 82 }; 83 extern struct btif_queue_connect_next btif_queue_connect_next; 84 85 // Name: btif_queue_release 86 // Params: 87 // Return: void 88 struct btif_queue_release { 89 std::function<void()> body{[]() {}}; operatorbtif_queue_release90 void operator()() { body(); }; 91 }; 92 extern struct btif_queue_release btif_queue_release; 93 94 } // namespace btif_profile_queue 95 } // namespace mock 96 } // namespace test 97 98 // END mockcify generation 99