• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 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 /*
18  * Generated mock file from original source file
19  *   Functions generated:8
20  */
21 
22 #include <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include <base/bind.h>
28 #include <base/callback.h>
29 #include <base/strings/string_number_conversions.h>
30 #include <cstdint>
31 #include <vector>
32 #include "bta/include/bta_gatt_api.h"
33 #include "bta/include/bta_gatt_queue.h"
34 #include "bta/include/bta_hearing_aid_api.h"
35 #include "embdrv/g722/g722_enc_dec.h"
36 #include "osi/include/log.h"
37 #include "osi/include/properties.h"
38 #include "stack/btm/btm_sec.h"
39 #include "stack/include/acl_api.h"
40 #include "stack/include/acl_api_types.h"
41 #include "stack/include/gap_api.h"
42 #include "stack/include/l2c_api.h"
43 #include "types/bluetooth/uuid.h"
44 #include "types/bt_transport.h"
45 #include "types/raw_address.h"
46 
47 #ifndef UNUSED_ATTR
48 #define UNUSED_ATTR
49 #endif
50 
GetDeviceCount()51 int HearingAid::GetDeviceCount() {
52   mock_function_count_map[__func__]++;
53   return 0;
54 }
55 
AddFromStorage(const HearingDevice & dev_info,uint16_t is_acceptlisted)56 void HearingAid::AddFromStorage(const HearingDevice& dev_info,
57                                 uint16_t is_acceptlisted) {
58   mock_function_count_map[__func__]++;
59 }
60 
DebugDump(int fd)61 void HearingAid::DebugDump(int fd) { mock_function_count_map[__func__]++; }
62 
IsHearingAidRunning()63 bool HearingAid::IsHearingAidRunning() {
64   mock_function_count_map[__func__]++;
65   return false;
66 }
67 
CleanUp()68 void HearingAid::CleanUp() { mock_function_count_map[__func__]++; }
69 
Initialize(bluetooth::hearing_aid::HearingAidCallbacks * callbacks,base::Closure initCb)70 void HearingAid::Initialize(
71     bluetooth::hearing_aid::HearingAidCallbacks* callbacks,
72     base::Closure initCb) {
73   mock_function_count_map[__func__]++;
74 }
75 
Connect(const RawAddress & address)76 void HearingAid::Connect(const RawAddress& address) {
77   mock_function_count_map[__func__]++;
78 }
79 
Disconnect(const RawAddress & address)80 void HearingAid::Disconnect(const RawAddress& address) {
81   mock_function_count_map[__func__]++;
82 }
83 
AddToAcceptlist(const RawAddress & address)84 void HearingAid::AddToAcceptlist(const RawAddress& address) {
85   mock_function_count_map[__func__]++;
86 }
87 
SetVolume(int8_t volume)88 void HearingAid::SetVolume(int8_t volume) {
89   mock_function_count_map[__func__]++;
90 }
91