1 /*
2 * Copyright 2021 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 /*
18 * Generated mock file from original source file
19 * Functions generated:6
20 */
21
22 #include <cstddef>
23 #include <cstdint>
24 #include <map>
25 #include <string>
26
27 extern std::map<std::string, int> mock_function_count_map;
28
29 #include "device/include/interop.h"
30 #include "types/raw_address.h"
31
32 #ifndef UNUSED_ATTR
33 #define UNUSED_ATTR
34 #endif
35
interop_match_addr(const interop_feature_t feature,const RawAddress * addr)36 bool interop_match_addr(const interop_feature_t feature,
37 const RawAddress* addr) {
38 mock_function_count_map[__func__]++;
39 return false;
40 }
interop_match_name(const interop_feature_t feature,const char * name)41 bool interop_match_name(const interop_feature_t feature, const char* name) {
42 mock_function_count_map[__func__]++;
43 return false;
44 }
interop_database_add(uint16_t feature,const RawAddress * addr,size_t length)45 void interop_database_add(uint16_t feature, const RawAddress* addr,
46 size_t length) {
47 mock_function_count_map[__func__]++;
48 }
interop_database_clear()49 void interop_database_clear() { mock_function_count_map[__func__]++; }
50