• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.1
21  */
22 // Mock include file to share data between tests and mock
23 #include "test/mock/mock_bta_sdp_api.h"
24 
25 #include "test/common/mock_functions.h"
26 
27 // Original usings
28 
29 // Mocked internal structures, if any
30 
31 namespace test {
32 namespace mock {
33 namespace bta_sdp_api {
34 
35 // Function state capture and return values, if needed
36 struct BTA_SdpCreateRecordByUser BTA_SdpCreateRecordByUser;
37 struct BTA_SdpDumpsys BTA_SdpDumpsys;
38 struct BTA_SdpEnable BTA_SdpEnable;
39 struct BTA_SdpRemoveRecordByUser BTA_SdpRemoveRecordByUser;
40 struct BTA_SdpSearch BTA_SdpSearch;
41 
42 }  // namespace bta_sdp_api
43 }  // namespace mock
44 }  // namespace test
45 
46 // Mocked function return values, if any
47 namespace test {
48 namespace mock {
49 namespace bta_sdp_api {
50 
51 tBTA_SDP_STATUS BTA_SdpCreateRecordByUser::return_value = BTA_SDP_SUCCESS;
52 tBTA_SDP_STATUS BTA_SdpEnable::return_value = BTA_SDP_SUCCESS;
53 tBTA_SDP_STATUS BTA_SdpRemoveRecordByUser::return_value = BTA_SDP_SUCCESS;
54 tBTA_SDP_STATUS BTA_SdpSearch::return_value = BTA_SDP_SUCCESS;
55 
56 }  // namespace bta_sdp_api
57 }  // namespace mock
58 }  // namespace test
59 
60 // Mocked functions, if any
BTA_SdpCreateRecordByUser(void * user_data)61 tBTA_SDP_STATUS BTA_SdpCreateRecordByUser(void* user_data) {
62   inc_func_call_count(__func__);
63   return test::mock::bta_sdp_api::BTA_SdpCreateRecordByUser(user_data);
64 }
BTA_SdpDumpsys(int fd)65 void BTA_SdpDumpsys(int fd) {
66   inc_func_call_count(__func__);
67   test::mock::bta_sdp_api::BTA_SdpDumpsys(fd);
68 }
BTA_SdpEnable(tBTA_SDP_DM_CBACK * p_cback)69 tBTA_SDP_STATUS BTA_SdpEnable(tBTA_SDP_DM_CBACK* p_cback) {
70   inc_func_call_count(__func__);
71   return test::mock::bta_sdp_api::BTA_SdpEnable(p_cback);
72 }
BTA_SdpRemoveRecordByUser(void * user_data)73 tBTA_SDP_STATUS BTA_SdpRemoveRecordByUser(void* user_data) {
74   inc_func_call_count(__func__);
75   return test::mock::bta_sdp_api::BTA_SdpRemoveRecordByUser(user_data);
76 }
BTA_SdpSearch(const RawAddress & bd_addr,const bluetooth::Uuid & uuid)77 tBTA_SDP_STATUS BTA_SdpSearch(const RawAddress& bd_addr,
78                               const bluetooth::Uuid& uuid) {
79   inc_func_call_count(__func__);
80   return test::mock::bta_sdp_api::BTA_SdpSearch(bd_addr, uuid);
81 }
82 // Mocked functions complete
83 // END mockcify generation
84