1 /*
2  * Copyright 2023 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  * Generated mock file from original source file
18  *   Functions generated:5
19  *
20  *  mockcify.pl ver 0.6.3
21  */
22 
23 // Mock include file to share data between tests and mock
24 #include "test/mock/mock_stack_avrc_sdp.h"
25 
26 #include <cstdint>
27 
28 #include "test/common/mock_functions.h"
29 
30 // Original usings
31 using bluetooth::Uuid;
32 using namespace bluetooth::legacy::stack::sdp;
33 
34 // Mocked internal structures, if any
35 
36 namespace test {
37 namespace mock {
38 namespace stack_avrc_sdp {
39 
40 // Function state capture and return values, if needed
41 struct AVRC_AddRecord AVRC_AddRecord;
42 struct AVRC_FindService AVRC_FindService;
43 struct AVRC_Init AVRC_Init;
44 struct AVRC_RemoveRecord AVRC_RemoveRecord;
45 
46 }  // namespace stack_avrc_sdp
47 }  // namespace mock
48 }  // namespace test
49 
50 // Mocked function return values, if any
51 namespace test {
52 namespace mock {
53 namespace stack_avrc_sdp {
54 
55 uint16_t AVRC_AddRecord::return_value = 0;
56 uint16_t AVRC_FindService::return_value = 0;
57 uint16_t AVRC_RemoveRecord::return_value = 0;
58 
59 }  // namespace stack_avrc_sdp
60 }  // namespace mock
61 }  // namespace test
62 
63 // Mocked functions, if any
AVRC_AddRecord(uint16_t service_uuid,const char * p_service_name,const char * p_provider_name,uint16_t categories,uint32_t sdp_handle,bool browse_supported,uint16_t profile_version,uint16_t cover_art_psm)64 uint16_t AVRC_AddRecord(uint16_t service_uuid, const char* p_service_name,
65                         const char* p_provider_name, uint16_t categories,
66                         uint32_t sdp_handle, bool browse_supported,
67                         uint16_t profile_version, uint16_t cover_art_psm) {
68   inc_func_call_count(__func__);
69   return test::mock::stack_avrc_sdp::AVRC_AddRecord(
70       service_uuid, p_service_name, p_provider_name, categories, sdp_handle,
71       browse_supported, profile_version, cover_art_psm);
72 }
AVRC_FindService(uint16_t service_uuid,const RawAddress & bd_addr,tAVRC_SDP_DB_PARAMS * p_db,const tAVRC_FIND_CBACK & find_cback)73 uint16_t AVRC_FindService(uint16_t service_uuid, const RawAddress& bd_addr,
74                           tAVRC_SDP_DB_PARAMS* p_db,
75                           const tAVRC_FIND_CBACK& find_cback) {
76   inc_func_call_count(__func__);
77   return test::mock::stack_avrc_sdp::AVRC_FindService(service_uuid, bd_addr,
78                                                       p_db, find_cback);
79 }
AVRC_Init(void)80 void AVRC_Init(void) {
81   inc_func_call_count(__func__);
82   test::mock::stack_avrc_sdp::AVRC_Init();
83 }
AVRC_RemoveRecord(uint32_t sdp_handle)84 uint16_t AVRC_RemoveRecord(uint32_t sdp_handle) {
85   inc_func_call_count(__func__);
86   return test::mock::stack_avrc_sdp::AVRC_RemoveRecord(sdp_handle);
87 }
88 // Mocked functions complete
89 // END mockcify generation
90