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