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:7
20 */
21
22 #include "main/shim/metric_id_api.h"
23 #include "test/common/mock_functions.h"
24 #include "types/raw_address.h"
25
26 namespace bluetooth {
27 namespace shim {
28
InitMetricIdAllocator(const std::unordered_map<RawAddress,int> &,CallbackLegacy,CallbackLegacy)29 bool InitMetricIdAllocator(const std::unordered_map<RawAddress, int>& /* paired_device_map */,
30 CallbackLegacy /* save_id_callback */,
31 CallbackLegacy /* forget_device_callback */) {
32 inc_func_call_count(__func__);
33 return false;
34 }
CloseMetricIdAllocator()35 bool CloseMetricIdAllocator() {
36 inc_func_call_count(__func__);
37 return false;
38 }
IsEmptyMetricIdAllocator()39 bool IsEmptyMetricIdAllocator() {
40 inc_func_call_count(__func__);
41 return false;
42 }
IsValidIdFromMetricIdAllocator(const int)43 bool IsValidIdFromMetricIdAllocator(const int /* id */) {
44 inc_func_call_count(__func__);
45 return false;
46 }
SaveDeviceOnMetricIdAllocator(const RawAddress &)47 bool SaveDeviceOnMetricIdAllocator(const RawAddress& /* raw_address */) {
48 inc_func_call_count(__func__);
49 return false;
50 }
AllocateIdFromMetricIdAllocator(const RawAddress &)51 int AllocateIdFromMetricIdAllocator(const RawAddress& /* raw_address */) {
52 inc_func_call_count(__func__);
53 return 0;
54 }
ForgetDeviceFromMetricIdAllocator(const RawAddress &)55 void ForgetDeviceFromMetricIdAllocator(const RawAddress& /* raw_address */) {
56 inc_func_call_count(__func__);
57 }
58
59 } // namespace shim
60 } // namespace bluetooth
61