/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 …]
|
/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/packet/tests/fuzzers/ |
D | pass_through_packet_fuzzer.cc | 39 auto test_packet = in LLVMFuzzerTestOneInput() local 41 test_packet->GetKeyState(); in LLVMFuzzerTestOneInput() 42 test_packet->GetOperationId(); in LLVMFuzzerTestOneInput() 44 test_packet = in LLVMFuzzerTestOneInput() 46 test_packet->GetKeyState(); in LLVMFuzzerTestOneInput() 47 test_packet->GetOperationId(); in LLVMFuzzerTestOneInput() 48 test_packet->GetData(); in LLVMFuzzerTestOneInput() 49 test_packet->IsValid(); in LLVMFuzzerTestOneInput() 50 test_packet->ToString(); in LLVMFuzzerTestOneInput()
|
D | get_folder_items_req_fuzzer.cc | 37 auto test_packet = in LLVMFuzzerTestOneInput() local 40 test_packet->GetScope(); in LLVMFuzzerTestOneInput() 41 test_packet->GetStartItem(); in LLVMFuzzerTestOneInput() 42 test_packet->GetEndItem(); in LLVMFuzzerTestOneInput() 43 test_packet->GetNumAttributes(); in LLVMFuzzerTestOneInput() 44 test_packet->IsValid(); in LLVMFuzzerTestOneInput() 45 test_packet->ToString(); in LLVMFuzzerTestOneInput()
|
D | vendor_packet_fuzzer.cc | 52 auto test_packet = TestVendorPacket::Make(short_vendor_packet); in LLVMFuzzerTestOneInput() local 54 test_packet->GetCompanyId(); in LLVMFuzzerTestOneInput() 55 test_packet->GetCommandPdu(); in LLVMFuzzerTestOneInput() 56 test_packet->GetPacketType(); in LLVMFuzzerTestOneInput() 57 test_packet->GetParameterLength(); in LLVMFuzzerTestOneInput() 58 test_packet->IsValid(); in LLVMFuzzerTestOneInput() 59 test_packet->ToString(); in LLVMFuzzerTestOneInput()
|
D | play_item_packet_fuzzer.cc | 42 auto test_packet = TestPlayItemReqPacket::Make(play_item_request); in LLVMFuzzerTestOneInput() local 44 test_packet->GetScope(); in LLVMFuzzerTestOneInput() 45 test_packet->GetUid(); in LLVMFuzzerTestOneInput() 46 test_packet->GetUidCounter(); in LLVMFuzzerTestOneInput() 47 test_packet->IsValid(); in LLVMFuzzerTestOneInput() 48 test_packet->GetData(); in LLVMFuzzerTestOneInput()
|
D | change_path_req_fuzzer.cc | 42 auto test_packet = TestChangePathReqPacket::Make(change_path_request_data); in LLVMFuzzerTestOneInput() local 44 test_packet->GetUidCounter(); in LLVMFuzzerTestOneInput() 45 test_packet->GetDirection(); in LLVMFuzzerTestOneInput() 46 test_packet->GetUid(); in LLVMFuzzerTestOneInput() 47 test_packet->IsValid(); in LLVMFuzzerTestOneInput() 48 test_packet->ToString(); in LLVMFuzzerTestOneInput()
|
D | set_browsed_player_req_fuzzer.cc | 39 auto test_packet = in LLVMFuzzerTestOneInput() local 42 test_packet->GetPlayerId(); in LLVMFuzzerTestOneInput() 43 test_packet->GetData(); in LLVMFuzzerTestOneInput() 44 test_packet->IsValid(); in LLVMFuzzerTestOneInput() 45 test_packet->ToString(); in LLVMFuzzerTestOneInput()
|
D | register_notification_packet_fuzzer.cc | 45 auto test_packet = in LLVMFuzzerTestOneInput() local 48 test_packet->GetEventRegistered(); in LLVMFuzzerTestOneInput() 49 test_packet->GetInterval(); in LLVMFuzzerTestOneInput() 50 test_packet->GetData(); in LLVMFuzzerTestOneInput() 51 test_packet->ToString(); in LLVMFuzzerTestOneInput()
|
D | get_folder_items_res_fuzzer.cc | 40 auto test_packet = TestGetFolderItemsReqPacket::Make(); in LLVMFuzzerTestOneInput() local 41 builder->Serialize(test_packet); in LLVMFuzzerTestOneInput() 42 test_packet->GetData(); in LLVMFuzzerTestOneInput() 50 test_packet = TestGetFolderItemsReqPacket::Make(); in LLVMFuzzerTestOneInput() 51 builder2->Serialize(test_packet); in LLVMFuzzerTestOneInput() 52 test_packet->GetData(); in LLVMFuzzerTestOneInput()
|
D | get_total_number_of_items_req_fuzzer.cc | 40 auto test_packet = TestGetTotalNumItemsReqPacket::Make( in LLVMFuzzerTestOneInput() local 42 test_packet->GetScope(); in LLVMFuzzerTestOneInput() 43 test_packet->IsValid(); in LLVMFuzzerTestOneInput() 44 test_packet->GetData(); in LLVMFuzzerTestOneInput()
|
D | set_browsed_player_res_fuzzer.cc | 37 auto test_packet = in LLVMFuzzerTestOneInput() local 40 test_packet->GetPlayerId(); in LLVMFuzzerTestOneInput() 41 test_packet->GetData(); in LLVMFuzzerTestOneInput() 42 test_packet->IsValid(); in LLVMFuzzerTestOneInput()
|
D | set_absolute_volume_packet_fuzzer.cc | 40 auto test_packet = in LLVMFuzzerTestOneInput() local 43 test_packet->IsValid(); in LLVMFuzzerTestOneInput() 44 test_packet->GetVolume(); in LLVMFuzzerTestOneInput() 45 test_packet->GetData(); in LLVMFuzzerTestOneInput()
|