/aosp12/system/bt/packet/tests/avrcp/ |
H A D | register_notification_packet_test.cc | 30 auto test_packet = in TEST() local 38 auto test_packet = in TEST() local 60 builder->Serialize(test_packet); in TEST() 65 auto test_packet = in TEST() local 74 auto test_packet = in TEST() local 110 builder->Serialize(test_packet); in TEST() 119 builder->Serialize(test_packet); in TEST() 129 builder->Serialize(test_packet); in TEST() 138 builder->Serialize(test_packet); in TEST() 147 builder->Serialize(test_packet); in TEST() [all …]
|
H A D | pass_through_packet_test.cc | 32 builder->Serialize(test_packet); in TEST() 37 test_packet = TestPassThroughPacket::Make(); in TEST() 38 builder->Serialize(test_packet); in TEST() 43 auto test_packet = in TEST() local 46 ASSERT_EQ(test_packet->GetOperationId(), 0x44); in TEST() 50 ASSERT_EQ(test_packet->GetOperationId(), 0x44); in TEST() 54 auto test_packet = in TEST() local 56 ASSERT_TRUE(test_packet->IsValid()); in TEST() 59 ASSERT_TRUE(test_packet->IsValid()); in TEST() 66 ASSERT_FALSE(test_packet->IsValid()); in TEST() [all …]
|
H A D | change_path_packet_test.cc | 34 auto test_packet = TestChangePathReqPacket::Make(); in TEST() local 35 builder->Serialize(test_packet); in TEST() 46 auto test_packet = TestChangePathReqPacket::Make(); in TEST() local 47 builder->Serialize(test_packet); in TEST() 54 ASSERT_EQ(test_packet->GetUidCounter(), 0x0000u); in TEST() 56 ASSERT_EQ(test_packet->GetUid(), 0x0000000000000002u); in TEST() 61 ASSERT_TRUE(test_packet->IsValid()); in TEST() 68 ASSERT_FALSE(test_packet->IsValid()); in TEST() 72 ASSERT_FALSE(test_packet->IsValid()); in TEST() 79 auto test_packet = TestChangePathReqPacket::Make(); in TEST() local [all …]
|
H A D | get_folder_items_packet_test.cc | 46 builder->Serialize(test_packet); in TEST() 84 builder->Serialize(test_packet); in TEST() 126 builder->Serialize(test_packet); in TEST() 151 builder->Serialize(test_packet); in TEST() 157 builder->Serialize(test_packet); in TEST() 163 builder->Serialize(test_packet); in TEST() 176 builder->Serialize(test_packet); in TEST() 185 builder->Serialize(test_packet); in TEST() 213 auto test_packet = in TEST() local 231 builder->Serialize(test_packet); in TEST() [all …]
|
H A D | set_absolute_volume_packet_test.cc | 32 auto test_packet = TestSetVolumeRspPacket::Make(); in TEST() local 33 builder->Serialize(test_packet); in TEST() 40 auto test_packet = TestSetVolumeRspPacket::Make(); in TEST() local 41 builder->Serialize(test_packet); in TEST() 48 ASSERT_EQ(test_packet->GetVolume(), 0x43); in TEST() 54 ASSERT_TRUE(test_packet->IsValid()); in TEST() 61 ASSERT_FALSE(test_packet->IsValid()); in TEST() 64 test_packet = TestSetVolumeRspPacket::Make(short_packet); in TEST() 65 ASSERT_FALSE(test_packet->IsValid()); in TEST() 69 test_packet = TestSetVolumeRspPacket::Make(wrong_ctype); in TEST() [all …]
|
H A D | get_item_attributes_packet_test.cc | 50 auto test_packet = TestGetItemAttrsReqPacket::Make(); in TEST() local 51 builder->Serialize(test_packet); in TEST() 77 builder->Serialize(test_packet); in TEST() 89 builder->Serialize(test_packet); in TEST() 94 auto test_packet = TestGetItemAttrsReqPacket::Make( in TEST() local 98 ASSERT_EQ(test_packet->GetUidCounter(), 0x0000u); in TEST() 100 ASSERT_EQ(test_packet->GetNumAttributes(), 7); in TEST() 112 auto test_packet = TestGetItemAttrsReqPacket::Make( in TEST() local 114 ASSERT_TRUE(test_packet->IsValid()); in TEST() 121 ASSERT_FALSE(test_packet->IsValid()); in TEST() [all …]
|
H A D | get_element_attributes_packet_test.cc | 30 auto test_packet = in TEST() local 33 ASSERT_EQ(test_packet->GetIdentifier(), 0u); in TEST() 41 test_packet = 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() 71 ASSERT_FALSE(test_packet->IsValid()); in TEST() 76 ASSERT_FALSE(test_packet->IsValid()); in TEST() 102 builder->Serialize(test_packet); in TEST() [all …]
|
H A D | set_browsed_player_packet_test.cc | 33 auto test_packet = TestSetBrowsedPlayerPacket::Make(); in TEST() local 34 builder->Serialize(test_packet); in TEST() 44 auto test_packet = TestSetBrowsedPlayerPacket::Make(); in TEST() local 45 builder->Serialize(test_packet); 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() 66 ASSERT_FALSE(test_packet->IsValid()); in TEST() 69 test_packet = TestSetBrowsedPlayerPacket::Make(short_packet); in TEST() [all …]
|
H A 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() 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() 48 ASSERT_TRUE(test_packet->IsValid()); in TEST() 54 auto test_packet = TestPlayItemReqPacket::Make(packet_copy); in TEST() local 55 ASSERT_FALSE(test_packet->IsValid()); in TEST() 58 test_packet = TestPlayItemReqPacket::Make(short_packet); in TEST() [all …]
|
H A 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() 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() 66 ASSERT_FALSE(test_packet->IsValid()); in TEST() [all …]
|
H A 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 …]
|
H A 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() 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() 116 auto test_packet = GetCapRequestTestPacket::Make(); in TEST() local [all …]
|
H A 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 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() 132 ASSERT_FALSE(test_packet->IsValid()); in TEST_F() 135 test_packet = TestVendorPacket::Make(short_packet); in TEST_F() [all …]
|
/aosp12/system/bt/vendor_libs/test_vendor_lib/test/ |
H A D | l2cap_test.cc | 88 test_packet.clear(); in TEST_F() 106 test_packet.clear(); in TEST_F() 120 test_packet.clear(); in TEST_F() 135 test_packet.clear(); in TEST_F() 148 test_packet.clear(); in TEST_F() 162 test_packet.clear(); in TEST_F() 178 test_packet.clear(); in TEST_F() 195 test_packet.clear(); in TEST_F() 211 test_packet.clear(); in TEST_F() 225 test_packet.clear(); in TEST_F() [all …]
|
/aosp12/system/bt/packet/tests/fuzzers/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|