summaryrefslogtreecommitdiff
path: root/system/test/mock/mock_bta_av_api.cc
blob: 4c4e93d3c061f379a0c54be92d48a0ea69187cb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
 * Copyright 2021 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * Generated mock file from original source file
 *   Functions generated:23
 */

#include <map>
#include <string>

extern std::map<std::string, int> mock_function_count_map;

#include "bt_target.h"
#include "bta/av/bta_av_int.h"
#include "osi/include/allocator.h"
#include "osi/include/compat.h"
#include "osi/include/log.h"
#include "stack/include/bt_hdr.h"
#include "types/raw_address.h"

#ifndef UNUSED_ATTR
#define UNUSED_ATTR
#endif

void BTA_AvEnable(tBTA_AV_FEAT features, tBTA_AV_CBACK* p_cback) {
  mock_function_count_map[__func__]++;
}
void BTA_AvClose(tBTA_AV_HNDL handle) { mock_function_count_map[__func__]++; }
void BTA_AvCloseRc(uint8_t rc_handle) { mock_function_count_map[__func__]++; }
void BTA_AvDeregister(tBTA_AV_HNDL hndl) {
  mock_function_count_map[__func__]++;
}
void BTA_AvDisable(void) { mock_function_count_map[__func__]++; }
void BTA_AvDisconnect(const RawAddress& bd_addr) {
  mock_function_count_map[__func__]++;
}
void BTA_AvMetaCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CMD cmd_code,
                   BT_HDR* p_pkt) {
  mock_function_count_map[__func__]++;
}
void BTA_AvMetaRsp(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE rsp_code,
                   BT_HDR* p_pkt) {
  mock_function_count_map[__func__]++;
}
void BTA_AvOffloadStart(tBTA_AV_HNDL hndl) {
  mock_function_count_map[__func__]++;
}
void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status) {
  mock_function_count_map[__func__]++;
}
void BTA_AvOpen(const RawAddress& bd_addr, tBTA_AV_HNDL handle, bool use_rc,
                uint16_t uuid) {
  mock_function_count_map[__func__]++;
}
void BTA_AvOpenRc(tBTA_AV_HNDL handle) { mock_function_count_map[__func__]++; }
void BTA_AvProtectReq(tBTA_AV_HNDL hndl, uint8_t* p_data, uint16_t len) {
  mock_function_count_map[__func__]++;
}
void BTA_AvProtectRsp(tBTA_AV_HNDL hndl, uint8_t error_code, uint8_t* p_data,
                      uint16_t len) {
  mock_function_count_map[__func__]++;
}
void BTA_AvReconfig(tBTA_AV_HNDL hndl, bool suspend, uint8_t sep_info_idx,
                    uint8_t* p_codec_info, uint8_t num_protect,
                    const uint8_t* p_protect_info) {
  mock_function_count_map[__func__]++;
}
void BTA_AvRegister(tBTA_AV_CHNL chnl, const char* p_service_name,
                    uint8_t app_id, tBTA_AV_SINK_DATA_CBACK* p_sink_data_cback,
                    uint16_t service_uuid) {
  mock_function_count_map[__func__]++;
}
void BTA_AvRemoteCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_RC rc_id,
                     tBTA_AV_STATE key_state) {
  mock_function_count_map[__func__]++;
}
void BTA_AvRemoteVendorUniqueCmd(uint8_t rc_handle, uint8_t label,
                                 tBTA_AV_STATE key_state, uint8_t* p_msg,
                                 uint8_t buf_len) {
  mock_function_count_map[__func__]++;
}
void BTA_AvStart(tBTA_AV_HNDL handle) { mock_function_count_map[__func__]++; }
void BTA_AvStop(tBTA_AV_HNDL handle, bool suspend) {
  mock_function_count_map[__func__]++;
}
void BTA_AvVendorCmd(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE cmd_code,
                     uint8_t* p_data, uint16_t len) {
  mock_function_count_map[__func__]++;
}
void BTA_AvVendorRsp(uint8_t rc_handle, uint8_t label, tBTA_AV_CODE rsp_code,
                     uint8_t* p_data, uint16_t len, uint32_t company_id) {
  mock_function_count_map[__func__]++;
}