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 #pragma once
17 
18 /*
19  * Generated mock file from original source file
20  *   Functions generated:5
21  *
22  *  mockcify.pl ver 0.6.1
23  */
24 
25 #include <functional>
26 
27 // Original included files, if any
28 #include "bta/include/bta_sdp_api.h"
29 #include "types/bluetooth/uuid.h"
30 #include "types/raw_address.h"
31 
32 // Original usings
33 
34 // Mocked compile conditionals, if any
35 
36 namespace test {
37 namespace mock {
38 namespace bta_sdp_api {
39 
40 // Shared state between mocked functions and tests
41 // Name: BTA_SdpCreateRecordByUser
42 // Params: void* user_data
43 // Return: tBTA_SDP_STATUS
44 struct BTA_SdpCreateRecordByUser {
45   static tBTA_SDP_STATUS return_value;
46   std::function<tBTA_SDP_STATUS(void* user_data)> body{
47       [](void* /* user_data */) { return return_value; }};
operatorBTA_SdpCreateRecordByUser48   tBTA_SDP_STATUS operator()(void* user_data) { return body(user_data); };
49 };
50 extern struct BTA_SdpCreateRecordByUser BTA_SdpCreateRecordByUser;
51 
52 // Name: BTA_SdpDumpsys
53 // Params: int fd
54 // Return: void
55 struct BTA_SdpDumpsys {
56   std::function<void(int fd)> body{[](int /* fd */) {}};
operatorBTA_SdpDumpsys57   void operator()(int fd) { body(fd); };
58 };
59 extern struct BTA_SdpDumpsys BTA_SdpDumpsys;
60 
61 // Name: BTA_SdpEnable
62 // Params: tBTA_SDP_DM_CBACK* p_cback
63 // Return: tBTA_SDP_STATUS
64 struct BTA_SdpEnable {
65   static tBTA_SDP_STATUS return_value;
66   std::function<tBTA_SDP_STATUS(tBTA_SDP_DM_CBACK* p_cback)> body{
67       [](tBTA_SDP_DM_CBACK* /* p_cback */) { return return_value; }};
operatorBTA_SdpEnable68   tBTA_SDP_STATUS operator()(tBTA_SDP_DM_CBACK* p_cback) {
69     return body(p_cback);
70   };
71 };
72 extern struct BTA_SdpEnable BTA_SdpEnable;
73 
74 // Name: BTA_SdpRemoveRecordByUser
75 // Params: void* user_data
76 // Return: tBTA_SDP_STATUS
77 struct BTA_SdpRemoveRecordByUser {
78   static tBTA_SDP_STATUS return_value;
79   std::function<tBTA_SDP_STATUS(void* user_data)> body{
80       [](void* /* user_data */) { return return_value; }};
operatorBTA_SdpRemoveRecordByUser81   tBTA_SDP_STATUS operator()(void* user_data) { return body(user_data); };
82 };
83 extern struct BTA_SdpRemoveRecordByUser BTA_SdpRemoveRecordByUser;
84 
85 // Name: BTA_SdpSearch
86 // Params: const RawAddress& bd_addr, const bluetooth::Uuid& uuid
87 // Return: tBTA_SDP_STATUS
88 struct BTA_SdpSearch {
89   static tBTA_SDP_STATUS return_value;
90   std::function<tBTA_SDP_STATUS(const RawAddress& bd_addr,
91                                 const bluetooth::Uuid& uuid)>
92       body{[](const RawAddress& /* bd_addr */,
93               const bluetooth::Uuid& /* uuid */) { return return_value; }};
operatorBTA_SdpSearch94   tBTA_SDP_STATUS operator()(const RawAddress& bd_addr,
95                              const bluetooth::Uuid& uuid) {
96     return body(bd_addr, uuid);
97   };
98 };
99 extern struct BTA_SdpSearch BTA_SdpSearch;
100 
101 }  // namespace bta_sdp_api
102 }  // namespace mock
103 }  // namespace test
104 
105 // END mockcify generation
106