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 MockRasServer : public bluetooth::ras::RasServer {
Initialize()20   void Initialize() override {}
RegisterCallbacks(bluetooth::ras::RasServerCallbacks *)21   void RegisterCallbacks(
22       bluetooth::ras::RasServerCallbacks* /* callbacks */) override {}
HandleVendorSpecificReplyComplete(RawAddress,bool)23   void HandleVendorSpecificReplyComplete(RawAddress /* address */,
24                                          bool /* success */) override {}
PushProcedureData(RawAddress,uint16_t,bool,std::vector<uint8_t>)25   void PushProcedureData(RawAddress /* address */,
26                          uint16_t /* procedure_count */, bool /* is_last */,
27                          std::vector<uint8_t> /* data */) override {}
SetVendorSpecificCharacteristic(const std::vector<bluetooth::ras::VendorSpecificCharacteristic> &)28   void SetVendorSpecificCharacteristic(
29       const std::vector<bluetooth::ras::VendorSpecificCharacteristic>&
30       /* vendor_specific_characteristics */) override {}
31 };
32 
33 namespace bluetooth {
34 namespace ras {
35 
GetRasServer()36 RasServer* GetRasServer() {
37   static MockRasServer* instance = nullptr;
38   if (instance == nullptr) {
39     instance = new MockRasServer();
40   }
41   return instance;
42 }
43 
44 }  // namespace ras
45 }  // namespace bluetooth
46