/system/bt/packet/tests/avrcp/ |
D | register_notification_packet_test.cc | 30 auto test_packet = in TEST() local 33 ASSERT_EQ(test_packet->GetEventRegistered(), Event::PLAYBACK_STATUS_CHANGED); in TEST() 34 ASSERT_EQ(test_packet->GetInterval(), 5u); in TEST() 38 auto test_packet = in TEST() local 40 ASSERT_TRUE(test_packet->IsValid()); in TEST() 46 auto test_packet = TestRegNotifReqPacket::Make(packet_copy); in TEST() local 47 ASSERT_FALSE(test_packet->IsValid()); in TEST() 50 test_packet = TestRegNotifReqPacket::Make(short_packet); in TEST() 51 ASSERT_FALSE(test_packet->IsValid()); in TEST() 59 auto test_packet = TestRegNotifReqPacket::Make(); in TEST() local [all …]
|
D | pass_through_packet_test.cc | 31 auto test_packet = TestPassThroughPacket::Make(); in TEST() local 32 builder->Serialize(test_packet); in TEST() 33 ASSERT_EQ(test_packet->GetData(), pass_through_command_play_pushed); in TEST() 37 test_packet = TestPassThroughPacket::Make(); in TEST() 38 builder->Serialize(test_packet); in TEST() 39 ASSERT_EQ(test_packet->GetData(), pass_through_command_play_released); in TEST() 43 auto test_packet = in TEST() local 45 ASSERT_EQ(test_packet->GetKeyState(), KeyState::PUSHED); in TEST() 46 ASSERT_EQ(test_packet->GetOperationId(), 0x44); in TEST() 48 test_packet = TestPassThroughPacket::Make(pass_through_command_play_released); in TEST() [all …]
|
D | change_path_packet_test.cc | 34 auto test_packet = TestChangePathReqPacket::Make(); in TEST() local 35 builder->Serialize(test_packet); in TEST() 36 ASSERT_EQ(test_packet->GetData(), change_path_response); in TEST() 46 auto test_packet = TestChangePathReqPacket::Make(); in TEST() local 47 builder->Serialize(test_packet); in TEST() 48 ASSERT_EQ(test_packet->GetData(), change_path_error_response); in TEST() 52 auto test_packet = TestChangePathReqPacket::Make(change_path_request); in TEST() local 54 ASSERT_EQ(test_packet->GetUidCounter(), 0x0000u); in TEST() 55 ASSERT_EQ(test_packet->GetDirection(), Direction::DOWN); in TEST() 56 ASSERT_EQ(test_packet->GetUid(), 0x0000000000000002u); in TEST() [all …]
|
D | set_absolute_volume_packet_test.cc | 32 auto test_packet = TestSetVolumeRspPacket::Make(); in TEST() local 33 builder->Serialize(test_packet); in TEST() 34 ASSERT_EQ(test_packet->GetData(), set_absolute_volume_request); in TEST() 40 auto test_packet = TestSetVolumeRspPacket::Make(); in TEST() local 41 builder->Serialize(test_packet); in TEST() 42 ASSERT_EQ(test_packet->GetData(), set_absolute_volume_request); in TEST() 46 auto test_packet = TestSetVolumeRspPacket::Make(set_absolute_volume_response); in TEST() local 48 ASSERT_EQ(test_packet->GetVolume(), 0x43); in TEST() 52 auto test_packet = TestSetVolumeRspPacket::Make(set_absolute_volume_response); in TEST() local 54 ASSERT_TRUE(test_packet->IsValid()); in TEST() [all …]
|
D | play_item_packet_test.cc | 32 auto test_packet = TestPlayItemReqPacket::Make(); in TEST() local 33 builder->Serialize(test_packet); in TEST() 34 ASSERT_EQ(test_packet->GetData(), play_item_response); in TEST() 38 auto test_packet = TestPlayItemReqPacket::Make(play_item_request); in TEST() local 40 ASSERT_EQ(test_packet->GetScope(), Scope::NOW_PLAYING); in TEST() 41 ASSERT_EQ(test_packet->GetUid(), 0x0000000000000003u); in TEST() 42 ASSERT_EQ(test_packet->GetUidCounter(), 0x0000u); in TEST() 46 auto test_packet = TestPlayItemReqPacket::Make(play_item_request); in TEST() local 48 ASSERT_TRUE(test_packet->IsValid()); in TEST() 54 auto test_packet = TestPlayItemReqPacket::Make(packet_copy); in TEST() local [all …]
|
D | set_browsed_player_packet_test.cc | 33 auto test_packet = TestSetBrowsedPlayerPacket::Make(); in TEST() local 34 builder->Serialize(test_packet); in TEST() 35 ASSERT_EQ(test_packet->GetData(), set_browsed_player_response); in TEST() 44 auto test_packet = TestSetBrowsedPlayerPacket::Make(); in TEST() local 45 builder->Serialize(test_packet); in TEST() 46 ASSERT_EQ(test_packet->GetData(), player_not_browsable_status); in TEST() 50 auto test_packet = in TEST() local 53 ASSERT_EQ(test_packet->GetPlayerId(), 0x0002u); in TEST() 57 auto test_packet = in TEST() local 59 ASSERT_TRUE(test_packet->IsValid()); in TEST() [all …]
|
D | get_total_number_of_items_packet_test.cc | 34 auto test_packet = TestGetTotalNumItemsReqPacket::Make(); in TEST() local 35 builder->Serialize(test_packet); in TEST() 36 ASSERT_EQ(test_packet->GetData(), get_total_number_of_items_response); in TEST() 45 auto test_packet = TestGetTotalNumItemsReqPacket::Make(); in TEST() local 46 builder->Serialize(test_packet); in TEST() 47 ASSERT_EQ(test_packet->GetData(), inv_scope_status_packet); in TEST() 51 auto test_packet = TestGetTotalNumItemsReqPacket::Make( in TEST() local 53 ASSERT_EQ(test_packet->GetScope(), Scope::NOW_PLAYING); in TEST() 57 auto test_packet = TestGetTotalNumItemsReqPacket::Make( in TEST() local 59 ASSERT_TRUE(test_packet->IsValid()); in TEST() [all …]
|
D | get_folder_items_packet_test.cc | 45 auto test_packet = TestGetFolderItemsReqPacket::Make(); in TEST() local 46 builder->Serialize(test_packet); in TEST() 47 ASSERT_EQ(test_packet->GetData(), get_folder_items_media_player_response); in TEST() 83 auto test_packet = TestGetFolderItemsReqPacket::Make(); in TEST() local 84 builder->Serialize(test_packet); in TEST() 85 ASSERT_EQ(test_packet->GetData(), get_folder_items_folder_response); in TEST() 125 auto test_packet = TestGetFolderItemsReqPacket::Make(); in TEST() local 126 builder->Serialize(test_packet); in TEST() 127 ASSERT_EQ(test_packet->GetData(), get_folder_items_song_response); in TEST() 150 auto test_packet = TestGetFolderItemsReqPacket::Make(); in TEST() local [all …]
|
D | get_item_attributes_packet_test.cc | 50 auto test_packet = TestGetItemAttrsReqPacket::Make(); in TEST() local 51 builder->Serialize(test_packet); in TEST() 52 ASSERT_EQ(test_packet->GetData(), get_item_attributes_song_response); in TEST() 76 auto test_packet = TestGetItemAttrsReqPacket::Make(); in TEST() local 77 builder->Serialize(test_packet); in TEST() 79 ASSERT_EQ(truncated_packet->GetData(), test_packet->GetData()); in TEST() 88 auto test_packet = TestGetItemAttrsReqPacket::Make(); in TEST() local 89 builder->Serialize(test_packet); in TEST() 90 ASSERT_EQ(test_packet->GetData(), does_not_exist_status); in TEST() 94 auto test_packet = TestGetItemAttrsReqPacket::Make( in TEST() local [all …]
|
D | set_addressed_player_packet_test.cc | 33 auto test_packet = TestSetAddrPlayerPacket::Make(); in TEST() local 34 builder->Serialize(test_packet); in TEST() 35 ASSERT_EQ(test_packet->GetData(), set_addressed_player_response); in TEST() 39 auto test_packet = in TEST() local 42 ASSERT_EQ(test_packet->GetPlayerId(), 0x0000u); in TEST() 46 auto test_packet = in TEST() local 48 ASSERT_TRUE(test_packet->IsValid()); in TEST() 54 auto test_packet = TestSetAddrPlayerPacket::Make(packet_copy); in TEST() local 55 ASSERT_FALSE(test_packet->IsValid()); in TEST() 58 test_packet = TestSetAddrPlayerPacket::Make(short_packet); in TEST() [all …]
|
D | get_element_attributes_packet_test.cc | 30 auto test_packet = in TEST() local 33 ASSERT_EQ(test_packet->GetIdentifier(), 0u); in TEST() 35 auto attribute_list = test_packet->GetAttributesRequested(); in TEST() 41 test_packet = in TEST() 44 ASSERT_EQ(test_packet->GetIdentifier(), 0u); in TEST() 46 attribute_list = test_packet->GetAttributesRequested(); in TEST() 58 auto test_packet = in TEST() local 60 ASSERT_TRUE(test_packet->IsValid()); in TEST() 62 test_packet = in TEST() 64 ASSERT_TRUE(test_packet->IsValid()); in TEST() [all …]
|
D | get_capabilities_packet_test.cc | 30 auto test_packet = GetCapRequestTestPacket::Make(get_capabilities_request); in TEST() local 32 ASSERT_EQ(test_packet->GetCapabilityRequested(), in TEST() 37 auto test_packet = GetCapRequestTestPacket::Make(get_capabilities_request); in TEST() local 38 ASSERT_TRUE(test_packet->IsValid()); in TEST() 44 auto test_packet = GetCapRequestTestPacket::Make(packet_copy); in TEST() local 45 ASSERT_FALSE(test_packet->IsValid()); in TEST() 50 test_packet = GetCapRequestTestPacket::Make(short_packet); in TEST() 51 ASSERT_FALSE(test_packet->IsValid()); in TEST() 104 auto test_packet = GetCapRequestTestPacket::Make(); in TEST() local 105 builder->Serialize(test_packet); in TEST() [all …]
|
D | vendor_packet_test.cc | 77 auto test_packet = TestVendorPacket::Make(); in TEST() local 78 builder->Serialize(test_packet); in TEST() 79 ASSERT_EQ(test_packet->GetData(), get_capabilities_request); in TEST() 115 auto test_packet = TestVendorPacket::Make(GetPacketData()); in TEST_P() local 117 ASSERT_EQ(test_packet->GetCompanyId(), BLUETOOTH_COMPANY_ID); in TEST_P() 118 ASSERT_EQ(test_packet->GetCommandPdu(), GetCommandPdu()); in TEST_P() 119 ASSERT_EQ(test_packet->GetPacketType(), PacketType::SINGLE); in TEST_P() 124 auto test_packet = TestVendorPacket::Make(GetPacketData()); in TEST_P() local 125 ASSERT_TRUE(test_packet->IsValid()); in TEST_P() 131 auto test_packet = TestVendorPacket::Make(get_capabilities_request_copy); in TEST_F() local [all …]
|
D | get_play_status_packet_test.cc | 33 auto test_packet = TestGetPlayStatusRspPacket::Make(); in TEST() local 34 builder->Serialize(test_packet); in TEST() 35 ASSERT_EQ(test_packet->GetData(), get_play_status_response); in TEST()
|
D | general_reject_packet_test.cc | 33 auto test_packet = TestGeneralRejectPacket::Make(); in TEST() local 34 builder->Serialize(test_packet); in TEST() 35 ASSERT_EQ(test_packet->GetData(), general_reject_invalid_command_packet); in TEST()
|
D | avrcp_reject_packet_test.cc | 34 auto test_packet = TestAvrcpPacket::Make(); in TEST() local 35 builder->Serialize(test_packet); in TEST() 36 ASSERT_EQ(test_packet->GetData(), reject_player_app_settings_response); in TEST()
|
D | avrcp_browse_packet_test.cc | 75 auto test_packet = TestBrowsePacket::Make(); in TEST() local 76 builder->Serialize(test_packet); in TEST() 77 ASSERT_EQ(test_packet->GetData(), get_folder_items_request); in TEST()
|
D | avrcp_packet_test.cc | 75 auto test_packet = TestAvrcpPacket::Make(); in TEST() local 76 builder->Serialize(test_packet); in TEST() 77 ASSERT_EQ(test_packet->GetData(), get_capabilities_request); in TEST()
|
/system/bt/vendor_libs/test_vendor_lib/test/ |
D | l2cap_test.cc | 74 vector<std::shared_ptr<L2capSdu> > test_packet; in TEST_F() local 77 test_packet.push_back(L2capSdu::L2capSduConstructor(good_sdu[0])); in TEST_F() 78 test_packet.push_back(L2capSdu::L2capSduConstructor(good_sdu[1])); in TEST_F() 79 test_packet.push_back(L2capSdu::L2capSduConstructor(good_sdu[2])); in TEST_F() 81 shared_ptr<L2capPacket> test_1 = L2capPacket::assemble(test_packet); in TEST_F() 88 test_packet.clear(); in TEST_F() 90 test_packet.push_back(L2capSdu::L2capSduConstructor(l2cap_test_packet_1)); in TEST_F() 91 test_packet.push_back(L2capSdu::L2capSduConstructor(l2cap_test_packet_2)); in TEST_F() 92 test_packet.push_back(L2capSdu::L2capSduConstructor(l2cap_test_packet_3)); in TEST_F() 93 test_packet.push_back(L2capSdu::L2capSduConstructor(l2cap_test_packet_4)); in TEST_F() [all …]
|
/system/bt/gd/security/test/ |
D | fake_l2cap_test.cc | 96 …auto test_packet = EncryptionChangeBuilder::Create(ErrorCode::SUCCESS, 0x0020, EncryptionEnabled::… in TEST_F() local 99 enqueue_buffer.Enqueue(std::move(test_packet), handler_); in TEST_F()
|