1 /*
2 * Copyright 2022 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 <base/bind_helpers.h>
18 #include <base/functional/bind.h>
19
20 #include "bta/include/bta_has_api.h"
21 #include "test/common/mock_functions.h"
22 #include "types/raw_address.h"
23
24 namespace bluetooth::le_audio {
25 namespace has {
26
Initialize(bluetooth::has::HasClientCallbacks *,base::RepeatingCallback<void ()>)27 void HasClient::Initialize(bluetooth::has::HasClientCallbacks*,
28 base::RepeatingCallback<void()>) {
29 inc_func_call_count(__func__);
30 }
CleanUp()31 void HasClient::CleanUp() { inc_func_call_count(__func__); }
DebugDump(int)32 void HasClient::DebugDump(int) { inc_func_call_count(__func__); }
IsHasClientRunning()33 bool HasClient::IsHasClientRunning() {
34 inc_func_call_count(__func__);
35 return false;
36 }
AddFromStorage(RawAddress const &,unsigned char,unsigned short)37 void HasClient::AddFromStorage(RawAddress const&, unsigned char,
38 unsigned short) {
39 inc_func_call_count(__func__);
40 }
Get()41 HasClient* HasClient::Get() {
42 inc_func_call_count(__func__);
43 return nullptr;
44 }
45
46 } // namespace has
47 } // namespace bluetooth::le_audio
48