Home
last modified time | relevance | path

Searched refs:fake_registry_ (Results 1 – 12 of 12) sorted by relevance

/system/bt/gd/hal/
Dhci_hal_android_hidl_test.cc41 ModuleRegistry fake_registry_; member in bluetooth::hal::__anon88edad510111::HciHalHidlTest
46 fake_registry_.Start<HciHal>(thread_); in TEST_F()
47 fake_registry_.StopAll(); in TEST_F()
Dhci_hal_host_rootcanal_test.cc144 hal_ = fake_registry_.Start<HciHal>(thread_); in SetUp()
153 fake_registry_.StopAll(); in TearDown()
167 ModuleRegistry fake_registry_; member in bluetooth::hal::__anonb60c79700111::HciHalRootcanalTest
/system/bt/gd/shim/
Ddumpsys_test.cc75 fake_registry_.InjectTestModule(&shim::Dumpsys::Factory, dumpsys_module_); in SetUp()
79 fake_registry_.StopAll(); in TearDown()
98 TestModuleRegistry fake_registry_; member in testing::DumpsysTest
99 os::Thread& thread_ = fake_registry_.GetTestThread();
Dl2cap_test.cc259fake_registry_.InjectTestModule(&l2cap::classic::L2capClassicModule::Factory, test_l2cap_classic_m… in SetUp()
261 fake_registry_.Start<shim::L2cap>(&thread_); in SetUp()
262 … shim_l2cap_ = static_cast<shim::L2cap*>(fake_registry_.GetModuleUnderTest(&shim::L2cap::Factory)); in SetUp()
266 fake_registry_.StopAll(); in TearDown()
274 TestModuleRegistry fake_registry_; member in bluetooth::shim::__anon12bd56b70111::ShimL2capTest
275 os::Thread& thread_ = fake_registry_.GetTestThread();
/system/bt/gd/hci/
Dle_scanning_manager_test.cc235 fake_registry_.InjectTestModule(&HciLayer::Factory, test_hci_layer_); in SetUp()
236 fake_registry_.InjectTestModule(&Controller::Factory, test_controller_); in SetUp()
237 fake_registry_.InjectTestModule(&AclManager::Factory, test_acl_manager_); in SetUp()
238 client_handler_ = fake_registry_.GetTestModuleHandler(&HciLayer::Factory); in SetUp()
242 fake_registry_.Start<LeScanningManager>(&thread_); in SetUp()
244 … static_cast<LeScanningManager*>(fake_registry_.GetModuleUnderTest(&LeScanningManager::Factory)); in SetUp()
251fake_registry_.SynchronizeModuleHandler(&LeScanningManager::Factory, std::chrono::milliseconds(20)… in TearDown()
252 fake_registry_.StopAll(); in TearDown()
260 TestModuleRegistry fake_registry_; member in bluetooth::hci::__anone6f257030111::LeScanningManagerTest
264 os::Thread& thread_ = fake_registry_.GetTestThread();
Dacl_manager_test.cc312 fake_registry_.InjectTestModule(&HciLayer::Factory, test_hci_layer_); in SetUp()
313 fake_registry_.InjectTestModule(&Controller::Factory, test_controller_); in SetUp()
314 client_handler_ = fake_registry_.GetTestModuleHandler(&HciLayer::Factory); in SetUp()
317 fake_registry_.Start<AclManager>(&thread_); in SetUp()
318 … acl_manager_ = static_cast<AclManager*>(fake_registry_.GetModuleUnderTest(&AclManager::Factory)); in SetUp()
344 fake_registry_.SynchronizeModuleHandler(&AclManager::Factory, std::chrono::milliseconds(20)); in TearDown()
345 fake_registry_.StopAll(); in TearDown()
348 TestModuleRegistry fake_registry_; member in bluetooth::hci::acl_manager::__anon0d2b85f20111::AclManagerNoCallbacksTest
351 os::Thread& thread_ = fake_registry_.GetTestThread();
466 fake_registry_.SynchronizeModuleHandler(&HciLayer::Factory, std::chrono::milliseconds(20)); in TearDown()
[all …]
Dle_advertising_manager_test.cc272 fake_registry_.InjectTestModule(&HciLayer::Factory, test_hci_layer_); in SetUp()
273 fake_registry_.InjectTestModule(&Controller::Factory, test_controller_); in SetUp()
274 fake_registry_.InjectTestModule(&AclManager::Factory, test_acl_manager_); in SetUp()
275 client_handler_ = fake_registry_.GetTestModuleHandler(&HciLayer::Factory); in SetUp()
278 le_advertising_manager_ = fake_registry_.Start<LeAdvertisingManager>(&thread_); in SetUp()
282fake_registry_.SynchronizeModuleHandler(&LeAdvertisingManager::Factory, std::chrono::milliseconds(… in TearDown()
283 fake_registry_.StopAll(); in TearDown()
286 TestModuleRegistry fake_registry_; member in bluetooth::hci::__anon003212320111::LeAdvertisingManagerTest
290 os::Thread& thread_ = fake_registry_.GetTestThread();
Dcontroller_test.cc269 fake_registry_.InjectTestModule(&HciLayer::Factory, test_hci_layer_); in SetUp()
270 client_handler_ = fake_registry_.GetTestModuleHandler(&HciLayer::Factory); in SetUp()
271 fake_registry_.Start<Controller>(&thread_); in SetUp()
272 controller_ = static_cast<Controller*>(fake_registry_.GetModuleUnderTest(&Controller::Factory)); in SetUp()
276 fake_registry_.StopAll(); in TearDown()
279 TestModuleRegistry fake_registry_; member in bluetooth::hci::__anonea0b95cc0111::ControllerTest
281 os::Thread& thread_ = fake_registry_.GetTestThread();
Dhci_layer_test.cc285 fake_registry_.InjectTestModule(&hal::HciHal::Factory, hal); in SetUp()
286 fake_registry_.Start<DependsOnHci>(&fake_registry_.GetTestThread()); in SetUp()
287 hci = static_cast<HciLayer*>(fake_registry_.GetModuleUnderTest(&HciLayer::Factory)); in SetUp()
288 upper = static_cast<DependsOnHci*>(fake_registry_.GetModuleUnderTest(&DependsOnHci::Factory)); in SetUp()
289 ASSERT_TRUE(fake_registry_.IsStarted<HciLayer>()); in SetUp()
311 fake_registry_.StopAll(); in TearDown()
325 TestModuleRegistry fake_registry_; member in bluetooth::hci::HciTest
/system/bt/gd/neighbor/
Dinquiry_test.cc340 fake_registry_.InjectTestModule(&hci::HciLayer::Factory, test_hci_layer_); in SetUp()
341 client_handler_ = fake_registry_.GetTestModuleHandler(&hci::HciLayer::Factory); in SetUp()
342 fake_registry_.Start<InquiryModule>(&thread_); in SetUp()
344 …inquiry_module_ = static_cast<InquiryModule*>(fake_registry_.GetModuleUnderTest(&InquiryModule::Fa… in SetUp()
356 fake_registry_.StopAll(); in TearDown()
359 TestModuleRegistry fake_registry_; member in bluetooth::neighbor::__anon1f5daf130111::InquiryTest
361 os::Thread& thread_ = fake_registry_.GetTestThread();
/system/bt/gd/security/pairing/
Dclassic_pairing_handler_unittest.cc131 fake_registry_.InjectTestModule(&FakeHciLayer::Factory, hci_layer_); in SetUp()
132 handler_ = fake_registry_.GetTestModuleHandler(&FakeHciLayer::Factory); in SetUp()
147 fake_registry_.StopAll(); in TearDown()
155 fake_registry_.SynchronizeModuleHandler(&FakeHciLayer::Factory, std::chrono::milliseconds(20)); in synchronize()
191 TestModuleRegistry fake_registry_; member in bluetooth::security::channel::__anoned5ad9ed0111::ClassicPairingHandlerTest
192 Thread& thread_ = fake_registry_.GetTestThread();
/system/bt/gd/security/channel/
Dsecurity_manager_channel_unittest.cc224 fake_registry_.InjectTestModule(&FakeHciLayer::Factory, hci_layer_); in SetUp()
225 fake_registry_.Start<FakeHciLayer>(&thread_); in SetUp()
236 fake_registry_.StopAll(); in TearDown()
244 fake_registry_.SynchronizeModuleHandler(&FakeHciLayer::Factory, std::chrono::milliseconds(20)); in synchronize()
247 TestModuleRegistry fake_registry_; member in bluetooth::security::channel::__anon855c6ade0111::SecurityManagerChannelTest
248 Thread& thread_ = fake_registry_.GetTestThread();