1 /*
2  * Copyright 2020 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 #pragma once
18 
19 /**
20  * Get how many responses sent
21  *
22  * @return the count of responses.
23  */
24 size_t mock_avdt_msg_send_rsp_get_count(void);
25 
26 /**
27  * Clear all the history of the sent responses.
28  */
29 void mock_avdt_msg_send_rsp_clear_history(void);
30 
31 /**
32  * Get the nth (zero based) response's sig id
33  *
34  * @param nth response recorded since last time clear history
35  * @return the sig id of the response
36  *
37  * @note undefined behavior if nth >= total count
38  */
39 uint8_t mock_avdt_msg_send_rsp_get_sig_id_at(size_t nth);
40 
41 /**
42  * Get how many commands sent
43  *
44  * @return the count of commands.
45  */
46 size_t mock_avdt_msg_send_cmd_get_count(void);
47 
48 /**
49  * Clear all the history of the sent commands.
50  */
51 void mock_avdt_msg_send_cmd_clear_history(void);
52 
53 /**
54  * Get the nth (zero based) commands's sig id
55  *
56  * @param nth command recorded since last time clear history
57  * @return the sig id of the command
58  *
59  * @note undefined behavior if nth >= total count
60  */
61 uint8_t mock_avdt_msg_send_cmd_get_sig_id_at(size_t nth);