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