Lines Matching refs:controller_
278 controller_ = static_cast<Controller*>(fake_registry_.GetModuleUnderTest(&Controller::Factory)); in SetUp()
288 Controller* controller_ = nullptr; member in bluetooth::hci::__anond77651530111::ControllerTest
295 ASSERT_EQ(controller_->GetAclPacketLength(), test_hci_layer_->acl_data_packet_length); in TEST_F()
296 ASSERT_EQ(controller_->GetNumAclPacketBuffers(), test_hci_layer_->total_num_acl_data_packets); in TEST_F()
297 ASSERT_EQ(controller_->GetScoPacketLength(), test_hci_layer_->synchronous_data_packet_length); in TEST_F()
298 …ASSERT_EQ(controller_->GetNumScoPacketBuffers(), test_hci_layer_->total_num_synchronous_data_packe… in TEST_F()
299 ASSERT_EQ(controller_->GetMacAddress(), Address::kAny); in TEST_F()
300 LocalVersionInformation local_version_information = controller_->GetLocalVersionInformation(); in TEST_F()
306 ASSERT_EQ(controller_->GetLeBufferSize().le_data_packet_length_, 0x16); in TEST_F()
307 ASSERT_EQ(controller_->GetLeBufferSize().total_num_le_packets_, 0x08); in TEST_F()
308 ASSERT_EQ(controller_->GetLeSupportedStates(), 0x001f123456789abe); in TEST_F()
309 ASSERT_EQ(controller_->GetLeMaximumDataLength().supported_max_tx_octets_, 0x12); in TEST_F()
310 ASSERT_EQ(controller_->GetLeMaximumDataLength().supported_max_tx_time_, 0x34); in TEST_F()
311 ASSERT_EQ(controller_->GetLeMaximumDataLength().supported_max_rx_octets_, 0x56); in TEST_F()
312 ASSERT_EQ(controller_->GetLeMaximumDataLength().supported_max_rx_time_, 0x78); in TEST_F()
313 ASSERT_EQ(controller_->GetLeMaximumAdvertisingDataLength(), 0x0672); in TEST_F()
314 ASSERT_EQ(controller_->GetLeNumberOfSupportedAdverisingSets(), 0xF0); in TEST_F()
318 ASSERT_EQ(controller_->GetLocalName(), "DUT"); in TEST_F()
319 controller_->WriteLocalName("New name"); in TEST_F()
320 ASSERT_EQ(controller_->GetLocalName(), "New name"); in TEST_F()
325 controller_->SetEventMask(new_event_mask); in TEST_F()
327 controller_->Reset(); in TEST_F()
333 controller_->Reset(); in TEST_F()
340 controller_->SetEventFilterInquiryResultAllDevices(); in TEST_F()
349 controller_->SetEventFilterInquiryResultClassOfDevice(class_of_device, class_of_device_mask); in TEST_F()
358 …controller_->SetEventFilterConnectionSetupAddress(bdaddr, AutoAcceptFlag::AUTO_ACCEPT_ON_ROLE_SWIT… in TEST_F()
368 controller_->HostBufferSize(0xFF00, 0xF1, 0xFF02, 0xFF03); in TEST_F()
380 controller_->LeSetEventMask(new_le_event_mask); in TEST_F()
382 controller_->Reset(); in TEST_F()
388 ASSERT_TRUE(controller_->IsSupported(OpCode::INQUIRY)); in TEST_F()
389 ASSERT_TRUE(controller_->IsSupported(OpCode::REJECT_CONNECTION_REQUEST)); in TEST_F()
390 ASSERT_TRUE(controller_->IsSupported(OpCode::ACCEPT_CONNECTION_REQUEST)); in TEST_F()
391 ASSERT_FALSE(controller_->IsSupported(OpCode::LE_REMOVE_ADVERTISING_SET)); in TEST_F()
392 ASSERT_FALSE(controller_->IsSupported(OpCode::LE_CLEAR_ADVERTISING_SETS)); in TEST_F()
393 ASSERT_FALSE(controller_->IsSupported(OpCode::LE_SET_PERIODIC_ADVERTISING_PARAM)); in TEST_F()
397 EXPECT_EQ(controller_->GetVendorCapabilities().version_supported_, 55); in TEST_F()
398 EXPECT_TRUE(controller_->IsSupported(OpCode::LE_MULTI_ADVT)); in TEST_F()
399 EXPECT_FALSE(controller_->IsSupported(OpCode::CONTROLLER_DEBUG_INFO)); in TEST_F()
400 EXPECT_FALSE(controller_->IsSupported(OpCode::CONTROLLER_A2DP_OPCODE)); in TEST_F()
405 EXPECT_EQ(controller_->GetVendorCapabilities().version_supported_, 95); in TEST_F()
406 EXPECT_TRUE(controller_->IsSupported(OpCode::LE_MULTI_ADVT)); in TEST_F()
407 EXPECT_FALSE(controller_->IsSupported(OpCode::CONTROLLER_DEBUG_INFO)); in TEST_F()
408 EXPECT_FALSE(controller_->IsSupported(OpCode::CONTROLLER_A2DP_OPCODE)); in TEST_F()
413 EXPECT_EQ(controller_->GetVendorCapabilities().version_supported_, 96); in TEST_F()
414 EXPECT_TRUE(controller_->IsSupported(OpCode::LE_MULTI_ADVT)); in TEST_F()
415 EXPECT_FALSE(controller_->IsSupported(OpCode::CONTROLLER_DEBUG_INFO)); in TEST_F()
416 EXPECT_FALSE(controller_->IsSupported(OpCode::CONTROLLER_A2DP_OPCODE)); in TEST_F()
421 EXPECT_EQ(controller_->GetVendorCapabilities().version_supported_, 98); in TEST_F()
422 EXPECT_TRUE(controller_->IsSupported(OpCode::LE_MULTI_ADVT)); in TEST_F()
423 EXPECT_FALSE(controller_->IsSupported(OpCode::CONTROLLER_DEBUG_INFO)); in TEST_F()
424 EXPECT_TRUE(controller_->IsSupported(OpCode::CONTROLLER_A2DP_OPCODE)); in TEST_F()
446 controller_->RegisterCompletedAclPacketsCallback(client_handler_->Bind(&CheckReceivedCredits)); in TEST_F()
457 controller_->RegisterCompletedAclPacketsCallback(handler.Bind(&CheckReceivedCredits)); in TEST_F()
461 controller_->UnregisterCompletedAclPacketsCallback(); in TEST_F()