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()51Dumpsys* GetDumpsys() { return nullptr; } GetActivityAttribution()52activity_attribution::ActivityAttribution* GetActivityAttribution() { 53 return nullptr; 54 } GetAclManager()55hci::AclManager* GetAclManager() { return hci::testing::mock_acl_manager_; } GetController()56hci::Controller* GetController() { return hci::testing::mock_controller_; } GetHciLayer()57hci::HciLayer* GetHciLayer() { return nullptr; } GetAdvertising()58hci::LeAdvertisingManager* GetAdvertising() { return nullptr; } GetScanning()59hci::LeScanningManager* GetScanning() { return nullptr; } GetVendorSpecificEventManager()60hci::VendorSpecificEventManager* GetVendorSpecificEventManager() { 61 return nullptr; 62 } GetL2capClassicModule()63l2cap::classic::L2capClassicModule* GetL2capClassicModule() { return nullptr; } GetL2capLeModule()64l2cap::le::L2capLeModule* GetL2capLeModule() { return nullptr; } GetConnectability()65neighbor::ConnectabilityModule* GetConnectability() { return nullptr; } GetDiscoverability()66neighbor::DiscoverabilityModule* GetDiscoverability() { return nullptr; } GetInquiry()67neighbor::InquiryModule* GetInquiry() { return nullptr; } GetName()68neighbor::NameModule* GetName() { return nullptr; } GetPage()69neighbor::PageModule* GetPage() { return nullptr; } GetGdShimHandler()70os::Handler* GetGdShimHandler() { return hci::testing::mock_gd_shim_handler_; } GetSecurityModule()71security::SecurityModule* GetSecurityModule() { return nullptr; } GetStorage()72storage::StorageModule* GetStorage() { return nullptr; } 73 74 } // namespace shim 75 } // namespace bluetooth 76