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( 22 bluetooth::ras::RasClientCallbacks* /* callbacks */) override{}; Connect(const RawAddress &)23 void Connect(const RawAddress& /* address */) override{}; SendVendorSpecificReply(const RawAddress &,const std::vector<bluetooth::ras::VendorSpecificCharacteristic> &)24 void SendVendorSpecificReply( 25 const RawAddress& /* address */, 26 const std::vector< 27 bluetooth::ras:: 28 VendorSpecificCharacteristic>& /*vendor_specific_data*/) 29 override{}; 30 }; 31 32 namespace bluetooth { 33 namespace ras { 34 GetRasClient()35RasClient* GetRasClient() { 36 static MockRasClient* instance = nullptr; 37 if (instance == nullptr) { 38 instance = new MockRasClient(); 39 } 40 return instance; 41 } 42 43 } // namespace ras 44 } // namespace bluetooth 45