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 <map>
21 #include <string>
22
23 #include "bta/include/bta_has_api.h"
24 #include "test/common/mock_functions.h"
25 #include "types/raw_address.h"
26
27 #ifndef UNUSED_ATTR
28 #define UNUSED_ATTR
29 #endif
30
31 namespace le_audio {
32 namespace has {
33
Initialize(bluetooth::has::HasClientCallbacks *,base::RepeatingCallback<void ()>)34 void HasClient::Initialize(bluetooth::has::HasClientCallbacks*,
35 base::RepeatingCallback<void()>) {
36 inc_func_call_count(__func__);
37 }
CleanUp()38 void HasClient::CleanUp() { inc_func_call_count(__func__); }
DebugDump(int)39 void HasClient::DebugDump(int) { inc_func_call_count(__func__); }
IsHasClientRunning()40 bool HasClient::IsHasClientRunning() {
41 inc_func_call_count(__func__);
42 return false;
43 }
AddFromStorage(RawAddress const &,unsigned char,unsigned short)44 void HasClient::AddFromStorage(RawAddress const&, unsigned char,
45 unsigned short) {
46 inc_func_call_count(__func__);
47 }
Get()48 HasClient* HasClient::Get() {
49 inc_func_call_count(__func__);
50 return nullptr;
51 }
52
53 } // namespace has
54 } // namespace le_audio
55