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 <vector>
23
24 #include "bta/vc/devices.h"
25 #include "test/common/mock_functions.h"
26
27 using namespace bluetooth::vc::internal;
28
EnableEncryption()29 bool VolumeControlDevice::EnableEncryption() {
30 inc_func_call_count(__func__);
31 return true;
32 }
EnqueueInitialRequests(tGATT_IF,GATT_READ_OP_CB,GATT_WRITE_OP_CB)33 bool VolumeControlDevice::EnqueueInitialRequests(
34 tGATT_IF /* gatt_if */, GATT_READ_OP_CB /* chrc_read_cb */,
35 GATT_WRITE_OP_CB /* cccd_write_cb */) {
36 inc_func_call_count(__func__);
37 return false;
38 }
IsEncryptionEnabled()39 bool VolumeControlDevice::IsEncryptionEnabled() {
40 inc_func_call_count(__func__);
41 return false;
42 }
UpdateHandles(void)43 bool VolumeControlDevice::UpdateHandles(void) {
44 inc_func_call_count(__func__);
45 return false;
46 }
VerifyReady(uint16_t)47 bool VolumeControlDevice::VerifyReady(uint16_t /* handle */) {
48 inc_func_call_count(__func__);
49 return false;
50 }
set_volume_control_service_handles(const gatt::Service &)51 bool VolumeControlDevice::set_volume_control_service_handles(
52 const gatt::Service& /* service */) {
53 inc_func_call_count(__func__);
54 return false;
55 }
set_volume_offset_control_service_handles(const gatt::Service &)56 void VolumeControlDevice::set_volume_offset_control_service_handles(
57 const gatt::Service& /* service */) {
58 inc_func_call_count(__func__);
59 }
subscribe_for_notifications(tGATT_IF,uint16_t,uint16_t,GATT_WRITE_OP_CB)60 bool VolumeControlDevice::subscribe_for_notifications(
61 tGATT_IF /* gatt_if */, uint16_t /* handle */, uint16_t /* ccc_handle */,
62 GATT_WRITE_OP_CB /* cb */) {
63 inc_func_call_count(__func__);
64 return false;
65 }
find_ccc_handle(uint16_t)66 uint16_t VolumeControlDevice::find_ccc_handle(uint16_t /* chrc_handle */) {
67 inc_func_call_count(__func__);
68 return 0;
69 }
ControlPointOperation(uint8_t,const std::vector<uint8_t> *,GATT_WRITE_OP_CB,void *)70 void VolumeControlDevice::ControlPointOperation(
71 uint8_t /* opcode */, const std::vector<uint8_t>* /* arg */,
72 GATT_WRITE_OP_CB /* cb */, void* /* cb_data */) {
73 inc_func_call_count(__func__);
74 }
Disconnect(tGATT_IF)75 void VolumeControlDevice::Disconnect(tGATT_IF /* gatt_if */) {
76 inc_func_call_count(__func__);
77 }
EnqueueRemainingRequests(tGATT_IF,GATT_READ_OP_CB,GATT_WRITE_OP_CB)78 void VolumeControlDevice::EnqueueRemainingRequests(
79 tGATT_IF /* gatt_if */, GATT_READ_OP_CB /* chrc_read_cb */,
80 GATT_WRITE_OP_CB /* cccd_write_cb */) {
81 inc_func_call_count(__func__);
82 }
ResetHandles(void)83 void VolumeControlDevice::ResetHandles(void) { inc_func_call_count(__func__); }
84