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:11
20  */
21 
22 #include <map>
23 #include <string>
24 
25 extern std::map<std::string, int> mock_function_count_map;
26 
27 #include <base/bind.h>
28 #include <base/bind_helpers.h>
29 #include <base/location.h>
30 #include <base/logging.h>
31 #include <base/memory/weak_ptr.h>
32 #include <base/strings/string_number_conversions.h>
33 #include <base/time/time.h>
34 #include <string.h>
35 #include <queue>
36 #include <vector>
37 #include "ble_advertiser.h"
38 #include "bt_target.h"
39 #include "device/include/controller.h"
40 #include "osi/include/alarm.h"
41 #include "stack/btm/ble_advertiser_hci_interface.h"
42 #include "stack/btm/btm_ble_int.h"
43 #include "stack/btm/btm_int_types.h"
44 
45 #ifndef UNUSED_ATTR
46 #define UNUSED_ATTR
47 #endif
48 
CleanUp()49 void BleAdvertisingManager::CleanUp() { mock_function_count_map[__func__]++; }
btm_ble_adv_init()50 void btm_ble_adv_init() { mock_function_count_map[__func__]++; }
Get()51 base::WeakPtr<BleAdvertisingManager> BleAdvertisingManager::Get() {
52   mock_function_count_map[__func__]++;
53   return nullptr;
54 }
IsInitialized()55 bool BleAdvertisingManager::IsInitialized() {
56   mock_function_count_map[__func__]++;
57   return false;
58 }
test_timeout_cb(uint8_t status)59 void test_timeout_cb(uint8_t status) { mock_function_count_map[__func__]++; }
Initialize(BleAdvertiserHciInterface * interface)60 void BleAdvertisingManager::Initialize(BleAdvertiserHciInterface* interface) {
61   mock_function_count_map[__func__]++;
62 }
btm_ble_multi_adv_cleanup(void)63 void btm_ble_multi_adv_cleanup(void) { mock_function_count_map[__func__]++; }
testRecomputeTimeout1()64 void testRecomputeTimeout1() { mock_function_count_map[__func__]++; }
testRecomputeTimeout2()65 void testRecomputeTimeout2() { mock_function_count_map[__func__]++; }
testRecomputeTimeout3()66 void testRecomputeTimeout3() { mock_function_count_map[__func__]++; }
67