• 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/btaa/activity_attribution.h"
18 #include "gd/module.h"
19 
20 #include "gd/hci/acl_manager_mock.h"
21 #include "gd/hci/controller_mock.h"
22 #include "gd/hci/hci_layer.h"
23 #include "gd/hci/le_advertising_manager.h"
24 #include "gd/hci/le_scanning_manager.h"
25 #include "gd/neighbor/connectability.h"
26 #include "gd/neighbor/discoverability.h"
27 #include "gd/neighbor/inquiry.h"
28 #include "gd/neighbor/inquiry_mock.h"
29 #include "gd/neighbor/name.h"
30 #include "gd/neighbor/page.h"
31 #include "gd/os/handler.h"
32 #include "gd/security/security_module.h"
33 #include "gd/shim/dumpsys.h"
34 #include "gd/storage/storage_module.h"
35 #include "main/shim/entry.h"
36 #include "main/shim/stack.h"
37 
38 namespace bluetooth {
39 namespace hci {
40 namespace testing {
41 
42 MockAclManager* mock_acl_manager_{nullptr};
43 MockController* mock_controller_{nullptr};
44 os::Handler* mock_gd_shim_handler_{nullptr};
45 
46 }  // namespace testing
47 }  // namespace hci
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() { return nullptr; }
GetScanning()59 hci::LeScanningManager* GetScanning() { return nullptr; }
GetVendorSpecificEventManager()60 hci::VendorSpecificEventManager* GetVendorSpecificEventManager() {
61   return nullptr;
62 }
GetL2capClassicModule()63 l2cap::classic::L2capClassicModule* GetL2capClassicModule() { return nullptr; }
GetL2capLeModule()64 l2cap::le::L2capLeModule* GetL2capLeModule() { return nullptr; }
GetConnectability()65 neighbor::ConnectabilityModule* GetConnectability() { return nullptr; }
GetDiscoverability()66 neighbor::DiscoverabilityModule* GetDiscoverability() { return nullptr; }
GetInquiry()67 neighbor::InquiryModule* GetInquiry() { return nullptr; }
GetName()68 neighbor::NameModule* GetName() { return nullptr; }
GetPage()69 neighbor::PageModule* GetPage() { return nullptr; }
GetGdShimHandler()70 os::Handler* GetGdShimHandler() { return hci::testing::mock_gd_shim_handler_; }
GetSecurityModule()71 security::SecurityModule* GetSecurityModule() { return nullptr; }
GetStorage()72 storage::StorageModule* GetStorage() { return nullptr; }
73 
74 }  // namespace shim
75 }  // namespace bluetooth
76