/packages/modules/Bluetooth/tools/rootcanal/test/controller/le/ |
D | le_set_periodic_advertising_data_test.cc | 37 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetPeriodicAdvertisingDataTest 41 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 49 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingParameters(0, 0x6, 0xffff, false), in TEST_F() 53 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingData(0, Operation::COMPLETE_ADVERTISEMENT, in TEST_F() 59 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 67 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingParameters(0, 0x6, 0xffff, false), in TEST_F() 71 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingData(0, Operation::COMPLETE_ADVERTISEMENT, in TEST_F() 75 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingEnable(true, false, 0), ErrorCode::SUCCESS); in TEST_F() 77 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingData(0, Operation::UNCHANGED_DATA, {}), in TEST_F() 82 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() [all …]
|
D | le_set_extended_advertising_enable_test.cc | 38 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetExtendedAdvertisingEnableTest 42 ASSERT_EQ(controller_.LeSetExtendedAdvertisingEnable(false, {}), ErrorCode::SUCCESS); in TEST_F() 46 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 54 ASSERT_EQ(controller_.LeSetExtendedAdvertisingEnable(false, {MakeEnabledSet(0, 0, 0)}), in TEST_F() 59 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 67 ASSERT_EQ(controller_.LeSetExtendedAdvertisingEnable(true, {MakeEnabledSet(0, 0, 0)}), in TEST_F() 72 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 80 ASSERT_EQ(controller_.LeSetExtendedAdvertisingEnable(true, {MakeEnabledSet(0, 0x40, 0)}), in TEST_F() 85 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 93 ASSERT_EQ(controller_.LeSetAdvertisingSetRandomAddress(0, Address{1}), ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_extended_scan_response_data_test.cc | 38 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetExtendedScanResponseDataTest 42 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 51 ASSERT_EQ(controller_.LeSetExtendedScanResponseData(0, Operation::COMPLETE_ADVERTISEMENT, in TEST_F() 58 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 66 ASSERT_EQ(controller_.LeSetExtendedScanResponseData(0, Operation::COMPLETE_ADVERTISEMENT, in TEST_F() 73 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 82 ASSERT_EQ(controller_.LeSetExtendedScanResponseData(0, Operation::COMPLETE_ADVERTISEMENT, in TEST_F() 87 ASSERT_EQ(controller_.LeSetExtendedAdvertisingEnable(true, {MakeEnabledSet(0, 0, 0)}), in TEST_F() 90 ASSERT_EQ(controller_.LeSetExtendedScanResponseData( in TEST_F() 96 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() [all …]
|
D | le_set_extended_advertising_data_test.cc | 38 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetExtendedAdvertisingDataTest 42 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 51 ASSERT_EQ(controller_.LeSetExtendedAdvertisingData(0, Operation::COMPLETE_ADVERTISEMENT, in TEST_F() 58 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 67 ASSERT_EQ(controller_.LeSetExtendedAdvertisingData(0, Operation::COMPLETE_ADVERTISEMENT, in TEST_F() 72 ASSERT_EQ(controller_.LeSetExtendedAdvertisingEnable(true, {MakeEnabledSet(0, 0, 0)}), in TEST_F() 75 ASSERT_EQ(controller_.LeSetExtendedAdvertisingData( in TEST_F() 81 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 93 ASSERT_EQ(controller_.LeSetExtendedAdvertisingData(0, Operation::FIRST_FRAGMENT, in TEST_F() 98 ASSERT_EQ(controller_.LeSetExtendedAdvertisingData(0, Operation::INTERMEDIATE_FRAGMENT, in TEST_F() [all …]
|
D | le_extended_create_connection_test.cc | 36 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeExtendedCreateConnectionTest 40 ASSERT_EQ(controller_.LeExtendedCreateConnection( in TEST_F() 49 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 50 ASSERT_EQ(controller_.LeExtendedCreateConnection( in TEST_F() 59 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 60 ASSERT_EQ(controller_.LeExtendedCreateConnection( in TEST_F() 70 ASSERT_EQ(controller_.LeExtendedCreateConnection( in TEST_F() 77 ASSERT_EQ(controller_.LeExtendedCreateConnection( in TEST_F() 86 ASSERT_EQ(controller_.LeExtendedCreateConnection( in TEST_F() 93 ASSERT_EQ(controller_.LeExtendedCreateConnection( in TEST_F() [all …]
|
D | le_create_connection_test.cc | 33 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeCreateConnectionTest 37 ASSERT_EQ(controller_.LeCreateConnection( in TEST_F() 45 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 46 ASSERT_EQ(controller_.LeCreateConnection( in TEST_F() 54 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 55 ASSERT_EQ(controller_.LeCreateConnection( in TEST_F() 64 ASSERT_EQ(controller_.LeCreateConnection( in TEST_F() 70 ASSERT_EQ(controller_.LeCreateConnection( in TEST_F() 78 ASSERT_EQ(controller_.LeCreateConnection( in TEST_F() 84 ASSERT_EQ(controller_.LeCreateConnection( in TEST_F() [all …]
|
D | le_set_extended_scan_enable_test.cc | 33 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetExtendedScanEnableTest 46 ASSERT_EQ(controller_.LeSetExtendedScanParameters( in TEST_F() 50 ASSERT_EQ(controller_.LeSetExtendedScanEnable(true, FilterDuplicates::DISABLED, 0, 0), in TEST_F() 55 ASSERT_EQ(controller_.LeSetExtendedScanParameters( in TEST_F() 59 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 60 ASSERT_EQ(controller_.LeSetExtendedScanEnable(true, FilterDuplicates::DISABLED, 0, 0), in TEST_F() 66 controller_.LeSetExtendedScanParameters( in TEST_F() 70 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 71 ASSERT_EQ(controller_.LeSetExtendedScanEnable(true, FilterDuplicates::DISABLED, 0, 0), in TEST_F() 76 ASSERT_EQ(controller_.LeSetExtendedScanParameters( in TEST_F() [all …]
|
D | le_set_periodic_advertising_enable_test.cc | 34 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetPeriodicAdvertisingEnableTest 38 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 46 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingParameters(0, 0x6, 0xffff, false), in TEST_F() 50 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingData(0, Operation::COMPLETE_ADVERTISEMENT, in TEST_F() 54 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingEnable(true, false, 0), ErrorCode::SUCCESS); in TEST_F() 58 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 66 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingParameters(0, 0x6, 0xffff, false), in TEST_F() 69 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingEnable(false, false, 0), ErrorCode::SUCCESS); in TEST_F() 73 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingEnable(true, false, 0), in TEST_F() 76 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingEnable(false, false, 0), in TEST_F() [all …]
|
D | le_add_device_to_resolving_list_test.cc | 38 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeAddDeviceToResolvingListTest 42 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 47 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 54 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 59 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 64 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 71 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 72 controller_.LeSetScanEnable(true, false); in TEST_F() 74 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 81 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_periodic_advertising_parameters_test.cc | 34 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetPeriodicAdvertisingParametersTest 38 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 46 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingParameters(0, 0x6, 0xffff, false), in TEST_F() 51 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingParameters(0, 0x6, 0xffff, false), in TEST_F() 56 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 64 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingParameters(0, 0x0, 0xffff, false), in TEST_F() 67 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingParameters(0, 0xffff, 0x6, false), in TEST_F() 72 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 82 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 90 ASSERT_EQ(controller_.LeSetPeriodicAdvertisingParameters(0, 0x6, 0xffff, false), in TEST_F() [all …]
|
D | le_remove_device_from_resolving_list_test.cc | 38 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeRemoveDeviceFromResolvingListTest 42 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 47 ASSERT_EQ(controller_.LeRemoveDeviceFromResolvingList( in TEST_F() 53 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 58 ASSERT_EQ(controller_.LeRemoveDeviceFromResolvingList( in TEST_F() 64 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 69 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 70 controller_.LeSetScanEnable(true, false); in TEST_F() 72 ASSERT_EQ(controller_.LeRemoveDeviceFromResolvingList( in TEST_F() 78 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() [all …]
|
D | le_set_extended_advertising_parameters_test.cc | 37 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetExtendedAdvertisingParametersTest 41 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 51 ASSERT_EQ(controller_.LeSetScanParameters(LeScanType::PASSIVE, 0x2000, 0x200, in TEST_F() 56 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 66 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 74 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 82 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 92 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 102 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 111 ASSERT_EQ(controller_.LeSetExtendedAdvertisingData(0, Operation::COMPLETE_ADVERTISEMENT, in TEST_F() [all …]
|
D | le_remove_device_from_filter_accept_list_test.cc | 38 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeRemoveDeviceFromFilterAcceptListTest 42 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 46 ASSERT_EQ(controller_.LeRemoveDeviceFromFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 52 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 56 ASSERT_EQ(controller_.LeRemoveDeviceFromFilterAcceptList(FilterAcceptListAddressType::RANDOM, in TEST_F() 62 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 66 controller_.LeSetScanParameters(LeScanType::PASSIVE, 0x400, 0x200, in TEST_F() 69 controller_.LeSetScanEnable(true, false); in TEST_F() 71 ASSERT_EQ(controller_.LeRemoveDeviceFromFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 77 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() [all …]
|
D | le_clear_resolving_list_test.cc | 38 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeClearResolvingListTest 42 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 47 ASSERT_EQ(controller_.LeClearResolvingList(), ErrorCode::SUCCESS); in TEST_F() 51 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 56 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 57 controller_.LeSetScanEnable(true, false); in TEST_F() 59 ASSERT_EQ(controller_.LeClearResolvingList(), ErrorCode::COMMAND_DISALLOWED); in TEST_F() 63 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 68 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 69 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_clear_filter_accept_list_test.cc | 38 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeClearFilterAcceptListTest 42 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 46 ASSERT_EQ(controller_.LeClearFilterAcceptList(), ErrorCode::SUCCESS); in TEST_F() 50 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 54 controller_.LeSetScanParameters(LeScanType::PASSIVE, 0x400, 0x200, in TEST_F() 57 controller_.LeSetScanEnable(true, false); in TEST_F() 59 ASSERT_EQ(controller_.LeClearFilterAcceptList(), ErrorCode::COMMAND_DISALLOWED); in TEST_F() 63 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 67 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 72 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_advertising_enable_test.cc | 33 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetAdvertisingEnableTest 37 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 42 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 46 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 51 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 52 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 56 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 62 ASSERT_EQ(controller_.LeAddDeviceToResolvingList( in TEST_F() 66 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 70 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_add_device_to_filter_accept_list_test.cc | 38 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeAddDeviceToFilterAcceptListTest 42 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 46 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::RANDOM, in TEST_F() 52 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 56 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 60 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 66 controller_.LeSetScanParameters(LeScanType::PASSIVE, 0x400, 0x200, in TEST_F() 69 controller_.LeSetScanEnable(true, false); in TEST_F() 71 ASSERT_EQ(controller_.LeAddDeviceToFilterAcceptList(FilterAcceptListAddressType::PUBLIC, in TEST_F() 77 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() [all …]
|
D | le_set_scan_enable_test.cc | 33 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetScanEnableTest 37 ASSERT_EQ(controller_.LeSetScanParameters(LeScanType::PASSIVE, 0x2000, 0x200, in TEST_F() 41 ASSERT_EQ(controller_.LeSetScanEnable(true, false), ErrorCode::SUCCESS); in TEST_F() 45 ASSERT_EQ(controller_.LeSetScanParameters(LeScanType::PASSIVE, 0x2000, 0x200, in TEST_F() 49 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 50 ASSERT_EQ(controller_.LeSetScanEnable(true, false), ErrorCode::SUCCESS); in TEST_F() 54 ASSERT_EQ(controller_.LeSetScanParameters(LeScanType::PASSIVE, 0x2000, 0x200, in TEST_F() 58 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 59 ASSERT_EQ(controller_.LeSetScanEnable(true, false), ErrorCode::SUCCESS); in TEST_F() 63 ASSERT_EQ(controller_.LeSetScanEnable(false, false), ErrorCode::SUCCESS); in TEST_F() [all …]
|
D | le_set_address_resolution_enable_test.cc | 34 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetAddressResolutionEnableTest 38 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::SUCCESS); in TEST_F() 39 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(false), ErrorCode::SUCCESS); in TEST_F() 43 controller_.LeSetScanEnable(true, false); in TEST_F() 44 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::COMMAND_DISALLOWED); in TEST_F() 45 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(false), ErrorCode::COMMAND_DISALLOWED); in TEST_F() 49 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 50 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(true), ErrorCode::COMMAND_DISALLOWED); in TEST_F() 51 ASSERT_EQ(controller_.LeSetAddressResolutionEnable(false), ErrorCode::COMMAND_DISALLOWED); in TEST_F() 55 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() [all …]
|
D | le_add_device_to_periodic_advertiser_list_test.cc | 38 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeAddDeviceToPeriodicAdvertiserListTest 42 ASSERT_EQ(controller_.LeAddDeviceToPeriodicAdvertiserList( in TEST_F() 46 ASSERT_EQ(controller_.LeAddDeviceToPeriodicAdvertiserList( in TEST_F() 50 ASSERT_EQ(controller_.LeAddDeviceToPeriodicAdvertiserList( in TEST_F() 56 ASSERT_EQ(controller_.LeAddDeviceToPeriodicAdvertiserList( in TEST_F() 60 ASSERT_EQ(controller_.LeAddDeviceToPeriodicAdvertiserList( in TEST_F() 64 ASSERT_EQ(controller_.LeAddDeviceToPeriodicAdvertiserList( in TEST_F() 68 ASSERT_EQ(controller_.LeAddDeviceToPeriodicAdvertiserList( in TEST_F() 74 ASSERT_EQ(controller_.LeAddDeviceToPeriodicAdvertiserList( in TEST_F() 78 ASSERT_EQ(controller_.LeAddDeviceToPeriodicAdvertiserList( in TEST_F() [all …]
|
D | le_set_extended_scan_parameters_test.cc | 33 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetExtendedScanParametersTest 46 ASSERT_EQ(controller_.LeSetExtendedScanParameters( in TEST_F() 54 ASSERT_EQ(controller_.LeSetExtendedScanParameters( in TEST_F() 59 ASSERT_EQ(controller_.LeSetExtendedScanEnable(true, FilterDuplicates::DISABLED, 0, 0), in TEST_F() 62 ASSERT_EQ(controller_.LeSetExtendedScanParameters( in TEST_F() 70 ASSERT_EQ(controller_.LeSetExtendedScanParameters( in TEST_F() 77 ASSERT_EQ(controller_.LeSetExtendedScanParameters(OwnAddressType::PUBLIC_DEVICE_ADDRESS, in TEST_F() 81 ASSERT_EQ(controller_.LeSetExtendedScanParameters( in TEST_F() 89 ASSERT_EQ(controller_.LeSetExtendedScanParameters( in TEST_F() 96 ASSERT_EQ(controller_.LeSetExtendedScanParameters( in TEST_F() [all …]
|
D | le_set_random_address_test.cc | 34 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetRandomAddressTest 38 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F() 42 controller_.LeSetScanEnable(true, false); in TEST_F() 43 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::COMMAND_DISALLOWED); in TEST_F() 47 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 48 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::COMMAND_DISALLOWED); in TEST_F() 52 ASSERT_EQ(controller_.LeSetExtendedAdvertisingParameters( in TEST_F() 59 ASSERT_EQ(controller_.LeSetExtendedAdvertisingEnable(true, {MakeEnabledSet(0, 0, 0)}), in TEST_F() 67 ASSERT_EQ(controller_.LeSetRandomAddress(Address{1}), ErrorCode::SUCCESS); in TEST_F()
|
D | le_set_advertising_parameters_test.cc | 33 LinkLayerController controller_{address_, properties_}; member in rootcanal::LeSetAdvertisingParametersTest 37 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 45 ASSERT_EQ(controller_.LeSetAdvertisingEnable(true), ErrorCode::SUCCESS); in TEST_F() 47 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 55 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 63 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 69 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 75 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 81 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F() 87 ASSERT_EQ(controller_.LeSetAdvertisingParameters( in TEST_F()
|
/packages/modules/Bluetooth/system/gd/hci/ |
D | controller_test.cc | 295 controller_ = static_cast<Controller*>(fake_registry_.GetModuleUnderTest(&Controller::Factory)); in SetUp() 303 Controller* controller_ = nullptr; member in bluetooth::hci::__anon9e3178180211::ControllerTest 385 ASSERT_EQ(controller_->GetAclPacketLength(), test_hci_layer_->acl_data_packet_length); in TEST_F() 386 ASSERT_EQ(controller_->GetNumAclPacketBuffers(), test_hci_layer_->total_num_acl_data_packets); in TEST_F() 387 ASSERT_EQ(controller_->GetScoPacketLength(), test_hci_layer_->synchronous_data_packet_length); in TEST_F() 388 ASSERT_EQ(controller_->GetNumScoPacketBuffers(), in TEST_F() 390 ASSERT_EQ(controller_->GetMacAddress(), Address::kAny); in TEST_F() 391 LocalVersionInformation local_version_information = controller_->GetLocalVersionInformation(); in TEST_F() 397 ASSERT_EQ(0x16, controller_->GetLeBufferSize().le_data_packet_length_); in TEST_F() 398 ASSERT_EQ(0x08, controller_->GetLeBufferSize().total_num_le_packets_); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/gd/hci/acl_manager/ |
D | round_robin_scheduler_test.cc | 77 controller_ = new TestController(); in SetUp() 78 round_robin_scheduler_ = new RoundRobinScheduler(handler_, controller_, hci_queue_.GetUpEnd()); in SetUp() 87 delete controller_; in TearDown() 160 TestController* controller_; member in bluetooth::hci::acl_manager::__anond0aaf5ec0111::RoundRobinSchedulerTest 196 ASSERT_EQ(round_robin_scheduler_->GetCredits(), controller_->max_acl_packet_credits_ - 2); in TEST_F() 223 ASSERT_EQ(round_robin_scheduler_->GetCredits(), controller_->max_acl_packet_credits_ - 1); in TEST_F() 224 ASSERT_EQ(round_robin_scheduler_->GetLeCredits(), controller_->le_max_acl_packet_credits_ - 1); in TEST_F() 251 controller_->SendCompletedAclPacketsCallback(0x01, 10); in TEST_F() 264 controller_->SendCompletedAclPacketsCallback(0x00, 1); in TEST_F() 266 EXPECT_EQ(round_robin_scheduler_->GetCredits(), controller_->max_acl_packet_credits_); in TEST_F() [all …]
|