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:12
20  */
21 
22 #include <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include <map>
28 #include <vector>
29 #include "bta/vc/devices.h"
30 #include "stack/btm/btm_sec.h"
31 
32 using namespace bluetooth::vc::internal;
33 
34 #ifndef UNUSED_ATTR
35 #define UNUSED_ATTR
36 #endif
37 
EnableEncryption(tBTM_SEC_CALLBACK * callback)38 bool VolumeControlDevice::EnableEncryption(tBTM_SEC_CALLBACK* callback) {
39   mock_function_count_map[__func__]++;
40   return false;
41 }
EnqueueInitialRequests(tGATT_IF gatt_if,GATT_READ_OP_CB chrc_read_cb,GATT_WRITE_OP_CB cccd_write_cb)42 bool VolumeControlDevice::EnqueueInitialRequests(
43     tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb,
44     GATT_WRITE_OP_CB cccd_write_cb) {
45   mock_function_count_map[__func__]++;
46   return false;
47 }
IsEncryptionEnabled()48 bool VolumeControlDevice::IsEncryptionEnabled() {
49   mock_function_count_map[__func__]++;
50   return false;
51 }
UpdateHandles(void)52 bool VolumeControlDevice::UpdateHandles(void) {
53   mock_function_count_map[__func__]++;
54   return false;
55 }
VerifyReady(uint16_t handle)56 bool VolumeControlDevice::VerifyReady(uint16_t handle) {
57   mock_function_count_map[__func__]++;
58   return false;
59 }
set_volume_control_service_handles(const gatt::Service & service)60 bool VolumeControlDevice::set_volume_control_service_handles(
61     const gatt::Service& service) {
62   mock_function_count_map[__func__]++;
63   return false;
64 }
subscribe_for_notifications(tGATT_IF gatt_if,uint16_t handle,uint16_t ccc_handle,GATT_WRITE_OP_CB cb)65 bool VolumeControlDevice::subscribe_for_notifications(tGATT_IF gatt_if,
66                                                       uint16_t handle,
67                                                       uint16_t ccc_handle,
68                                                       GATT_WRITE_OP_CB cb) {
69   mock_function_count_map[__func__]++;
70   return false;
71 }
find_ccc_handle(uint16_t chrc_handle)72 uint16_t VolumeControlDevice::find_ccc_handle(uint16_t chrc_handle) {
73   mock_function_count_map[__func__]++;
74   return 0;
75 }
ControlPointOperation(uint8_t opcode,const std::vector<uint8_t> * arg,GATT_WRITE_OP_CB cb,void * cb_data)76 void VolumeControlDevice::ControlPointOperation(uint8_t opcode,
77                                                 const std::vector<uint8_t>* arg,
78                                                 GATT_WRITE_OP_CB cb,
79                                                 void* cb_data) {
80   mock_function_count_map[__func__]++;
81 }
Disconnect(tGATT_IF gatt_if)82 void VolumeControlDevice::Disconnect(tGATT_IF gatt_if) {
83   mock_function_count_map[__func__]++;
84 }
EnqueueRemainingRequests(tGATT_IF gatt_if,GATT_READ_OP_CB chrc_read_cb,GATT_WRITE_OP_CB cccd_write_cb)85 void VolumeControlDevice::EnqueueRemainingRequests(
86     tGATT_IF gatt_if, GATT_READ_OP_CB chrc_read_cb,
87     GATT_WRITE_OP_CB cccd_write_cb) {
88   mock_function_count_map[__func__]++;
89 }
ResetHandles(void)90 void VolumeControlDevice::ResetHandles(void) {
91   mock_function_count_map[__func__]++;
92 }
93