/* * Copyright 2022 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. */ #include #include #include "stack/btm/btm_dev.h" #include "stack/include/btm_api_types.h" #include "stack/include/btm_status.h" #include "test/common/mock_functions.h" #include "types/bt_transport.h" #include "types/raw_address.h" namespace test { namespace mock { namespace stack_btm_dev { // Function state capture and return values, if needed struct btm_find_dev { std::function body{ [](const RawAddress&) { return nullptr; }}; tBTM_SEC_DEV_REC* operator()(const RawAddress& bd_addr) { return body(bd_addr); }; }; extern struct btm_find_dev btm_find_dev; } // namespace stack_btm_dev } // namespace mock } // namespace test