• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2019 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 #include "gd/hci/acl_manager_mock.h"
18 #include "gd/hci/controller_mock.h"
19 #include "gd/hci/hci_layer.h"
20 #include "gd/hci/le_advertising_manager_mock.h"
21 #include "gd/hci/le_scanning_manager_mock.h"
22 #include "gd/neighbor/connectability.h"
23 #include "gd/neighbor/discoverability.h"
24 #include "gd/neighbor/inquiry.h"
25 #include "gd/neighbor/inquiry_mock.h"
26 #include "gd/neighbor/name.h"
27 #include "gd/neighbor/page.h"
28 #include "gd/os/handler.h"
29 #include "gd/security/security_module.h"
30 #include "gd/storage/storage_module.h"
31 #include "main/shim/entry.h"
32 #include "main/shim/stack.h"
33 
34 namespace bluetooth {
35 namespace hci {
36 namespace testing {
37 
38 MockAclManager* mock_acl_manager_{nullptr};
39 MockController* mock_controller_{nullptr};
40 os::Handler* mock_gd_shim_handler_{nullptr};
41 MockLeAdvertisingManager* mock_le_advertising_manager_{nullptr};
42 MockLeScanningManager* mock_le_scanning_manager_{nullptr};
43 
44 }  // namespace testing
45 }  // namespace hci
46 
47 class Dumpsys;
48 
49 namespace shim {
50 
GetDumpsys()51 Dumpsys* GetDumpsys() { return nullptr; }
GetActivityAttribution()52 activity_attribution::ActivityAttribution* GetActivityAttribution() {
53   return nullptr;
54 }
GetAclManager()55 hci::AclManager* GetAclManager() { return hci::testing::mock_acl_manager_; }
GetController()56 hci::Controller* GetController() { return hci::testing::mock_controller_; }
GetHciLayer()57 hci::HciLayer* GetHciLayer() { return nullptr; }
GetAdvertising()58 hci::LeAdvertisingManager* GetAdvertising() {
59   return hci::testing::mock_le_advertising_manager_;
60 }
GetScanning()61 hci::LeScanningManager* GetScanning() {
62   return hci::testing::mock_le_scanning_manager_;
63 }
GetVendorSpecificEventManager()64 hci::VendorSpecificEventManager* GetVendorSpecificEventManager() {
65   return nullptr;
66 }
GetL2capClassicModule()67 l2cap::classic::L2capClassicModule* GetL2capClassicModule() { return nullptr; }
GetL2capLeModule()68 l2cap::le::L2capLeModule* GetL2capLeModule() { return nullptr; }
GetConnectability()69 neighbor::ConnectabilityModule* GetConnectability() { return nullptr; }
GetDiscoverability()70 neighbor::DiscoverabilityModule* GetDiscoverability() { return nullptr; }
GetInquiry()71 neighbor::InquiryModule* GetInquiry() { return nullptr; }
GetName()72 neighbor::NameModule* GetName() { return nullptr; }
GetPage()73 neighbor::PageModule* GetPage() { return nullptr; }
GetGdShimHandler()74 os::Handler* GetGdShimHandler() { return hci::testing::mock_gd_shim_handler_; }
GetSecurityModule()75 security::SecurityModule* GetSecurityModule() { return nullptr; }
GetStorage()76 storage::StorageModule* GetStorage() { return nullptr; }
GetCounterMetrics()77 metrics::CounterMetrics* GetCounterMetrics() { return nullptr; }
78 
79 
80 }  // namespace shim
81 }  // namespace bluetooth
82