/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Generated mock file from original source file * Functions generated:17 * * mockcify.pl ver 0.2.1 */ #include #include // Original included files, if any #include "include/hardware/bluetooth.h" #include "types/raw_address.h" // Mocked compile conditionals, if any namespace test { namespace mock { namespace btif_bluetooth { // Shared state between mocked functions and tests // Name: is_atv_device // Params: // Returns: bool struct is_atv_device { std::function body{[]() { return false; }}; bool operator()() { return body(); } }; extern struct is_atv_device is_atv_device; // Name: is_common_criteria_mode // Params: // Returns: bool struct is_common_criteria_mode { std::function body{[]() { return false; }}; bool operator()() { return body(); } }; extern struct is_common_criteria_mode is_common_criteria_mode; // Name: is_restricted_mode // Params: // Returns: bool struct is_restricted_mode { std::function body{[]() { return false; }}; bool operator()() { return body(); } }; extern struct is_restricted_mode is_restricted_mode; // Name: dut_mode_configure // Params: uint8_t enable // Returns: int struct dut_mode_configure { std::function body{[](uint8_t /* enable */) { return 0; }}; int operator()(uint8_t enable) { return body(enable); } }; extern struct dut_mode_configure dut_mode_configure; // Name: dut_mode_send // Params: uint16_t opcode, uint8_t* buf, uint8_t len // Returns: int struct dut_mode_send { std::function body{ [](uint16_t /* opcode */, uint8_t* /* buf */, uint8_t /* len */) { return 0; }}; int operator()(uint16_t opcode, uint8_t* buf, uint8_t len) { return body(opcode, buf, len); } }; extern struct dut_mode_send dut_mode_send; // Name: get_common_criteria_config_compare_result // Params: // Returns: int struct get_common_criteria_config_compare_result { std::function body{[]() { return 0; }}; int operator()() { return body(); } }; extern struct get_common_criteria_config_compare_result get_common_criteria_config_compare_result; // Name: get_remote_device_properties // Params: RawAddress* remote_addr // Returns: int struct get_remote_device_properties { std::function body{[](RawAddress* /* remote_addr */) { return 0; }}; int operator()(RawAddress* remote_addr) { return body(remote_addr); } }; extern struct get_remote_device_properties get_remote_device_properties; // Name: get_remote_device_property // Params: RawAddress* remote_addr, bt_property_type_t type // Returns: int struct get_remote_device_property { std::function body{ [](RawAddress* /* remote_addr */, bt_property_type_t /* type */) { return 0; }}; int operator()(RawAddress* remote_addr, bt_property_type_t type) { return body(remote_addr, type); } }; extern struct get_remote_device_property get_remote_device_property; // Name: get_remote_services // Params: RawAddress* remote_addr // Returns: int struct get_remote_services { std::function body{[](RawAddress* /* remote_addr */) { return 0; }}; int operator()(RawAddress* remote_addr) { return body(remote_addr); } }; extern struct get_remote_services get_remote_services; // Name: le_test_mode // Params: uint16_t opcode, uint8_t* buf, uint8_t len // Returns: int struct le_test_mode { std::function body{ [](uint16_t /* opcode */, uint8_t* /* buf */, uint8_t /* len */) { return 0; }}; int operator()(uint16_t opcode, uint8_t* buf, uint8_t len) { return body(opcode, buf, len); } }; extern struct le_test_mode le_test_mode; // Name: set_remote_device_property // Params: RawAddress* remote_addr, const bt_property_t* property // Returns: int struct set_remote_device_property { std::function body{ [](RawAddress* /* remote_addr */, const bt_property_t* /* property */) { return 0; }}; int operator()(RawAddress* remote_addr, const bt_property_t* property) { return body(remote_addr, property); } }; extern struct set_remote_device_property set_remote_device_property; // Name: invoke_switch_buffer_size_cb // Params: bool invoke_switch_buffer_size_cb // Returns: void struct invoke_switch_buffer_size_cb { std::function body{[](bool) {}}; void operator()(bool invoke_switch_buffer_size_cb) { body(invoke_switch_buffer_size_cb); } }; extern struct invoke_switch_buffer_size_cb invoke_switch_buffer_size_cb; } // namespace btif_bluetooth } // namespace mock } // namespace test // END mockcify generation