• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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(
30     const std::unordered_map<RawAddress, int>& /* paired_device_map */,
31     CallbackLegacy /* save_id_callback */,
32     CallbackLegacy /* forget_device_callback */) {
33   inc_func_call_count(__func__);
34   return false;
35 }
CloseMetricIdAllocator()36 bool CloseMetricIdAllocator() {
37   inc_func_call_count(__func__);
38   return false;
39 }
IsEmptyMetricIdAllocator()40 bool IsEmptyMetricIdAllocator() {
41   inc_func_call_count(__func__);
42   return false;
43 }
IsValidIdFromMetricIdAllocator(const int)44 bool IsValidIdFromMetricIdAllocator(const int /* id */) {
45   inc_func_call_count(__func__);
46   return false;
47 }
SaveDeviceOnMetricIdAllocator(const RawAddress &)48 bool SaveDeviceOnMetricIdAllocator(const RawAddress& /* raw_address */) {
49   inc_func_call_count(__func__);
50   return false;
51 }
AllocateIdFromMetricIdAllocator(const RawAddress &)52 int AllocateIdFromMetricIdAllocator(const RawAddress& /* raw_address */) {
53   inc_func_call_count(__func__);
54   return 0;
55 }
ForgetDeviceFromMetricIdAllocator(const RawAddress &)56 void ForgetDeviceFromMetricIdAllocator(const RawAddress& /* raw_address */) {
57   inc_func_call_count(__func__);
58 }
59 
60 }  // namespace shim
61 }  // namespace bluetooth
62