1 /* 2 * Copyright 2024 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 #include "bta/include/bta_ras_api.h" 18 19 class MockRasClient : public bluetooth::ras::RasClient { Initialize()20 void Initialize() override {} RegisterCallbacks(bluetooth::ras::RasClientCallbacks *)21 void RegisterCallbacks(bluetooth::ras::RasClientCallbacks* /* callbacks */) override {} Connect(const RawAddress &)22 void Connect(const RawAddress& /* address */) override {} SendVendorSpecificReply(const RawAddress &,const std::vector<bluetooth::ras::VendorSpecificCharacteristic> &)23 void SendVendorSpecificReply( 24 const RawAddress& /* address */, 25 const std::vector<bluetooth::ras::VendorSpecificCharacteristic>& /*vendor_specific_data*/) 26 override {} 27 }; 28 29 namespace bluetooth { 30 namespace ras { 31 GetRasClient()32RasClient* GetRasClient() { 33 static MockRasClient* instance = nullptr; 34 if (instance == nullptr) { 35 instance = new MockRasClient(); 36 } 37 return instance; 38 } 39 40 } // namespace ras 41 } // namespace bluetooth 42