spelling: malformed

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2025-01-28 15:03:45 -05:00
parent 0527df21d1
commit 04822e0ea5
2 changed files with 10 additions and 10 deletions

View File

@ -222,7 +222,7 @@ void test_gatt_service_changed_client__handle_indication_service_changed(void) {
fake_gatt_is_service_discovery_start_count()); fake_gatt_is_service_discovery_start_count());
} }
void test_gatt_service_changed_client__handle_indication_service_changed_malformatted(void) { void test_gatt_service_changed_client__handle_indication_service_changed_malformed(void) {
fake_gatt_put_discovery_indication_gatt_profile_service(TEST_GATT_CONNECTION_ID, fake_gatt_put_discovery_indication_gatt_profile_service(TEST_GATT_CONNECTION_ID,
true /* has_service_changed_characteristic */); true /* has_service_changed_characteristic */);
const uint16_t att_handle = fake_gatt_gatt_profile_service_service_changed_att_handle(); const uint16_t att_handle = fake_gatt_gatt_profile_service_service_changed_att_handle();

View File

@ -296,19 +296,19 @@ void test_music_endpoint__receive_zero_length_now_playing(void) {
cl_assert_equal_b(music_has_now_playing(), false); cl_assert_equal_b(music_has_now_playing(), false);
} }
void test_music_endpoint__ignore_malformatted_messages(void) { void test_music_endpoint__ignore_malformed_messages(void) {
// Android app connects: // Android app connects:
prv_receive_app_info_event(true /* is_android */); prv_receive_app_info_event(true /* is_android */);
const uint8_t malformatted_artist[] = { const uint8_t malformed_artist[] = {
0x10, 14, 'o', 'n', 'e', 3, 't', 'w', 'o', 5, 't', 'h', 'r', 'e', 'e' 0x10, 14, 'o', 'n', 'e', 3, 't', 'w', 'o', 5, 't', 'h', 'r', 'e', 'e'
}; };
const uint8_t malformatted_album[] = { const uint8_t malformed_album[] = {
0x10, 3, 'o', 'n', 'e', 10, 't', 'w', 'o', 5, 't', 'h', 'r', 'e', 'e' 0x10, 3, 'o', 'n', 'e', 10, 't', 'w', 'o', 5, 't', 'h', 'r', 'e', 'e'
}; };
const uint8_t malformatted_title[] = { const uint8_t malformed_title[] = {
0x10, 3, 'o', 'n', 'e', 3, 't', 'w', 'o', 6, 't', 'h', 'r', 'e', 'e' 0x10, 3, 'o', 'n', 'e', 3, 't', 'w', 'o', 6, 't', 'h', 'r', 'e', 'e'
}; };
const uint8_t malformatted_player[] = { const uint8_t malformed_player[] = {
0x13, 17, 'c', 'o', 'm', '.', 's', 'p', 'o', 't', 'i', 'f', 'y', '.', 'm', 'u', 's', 'i', 'c', 0x13, 17, 'c', 'o', 'm', '.', 's', 'p', 'o', 't', 'i', 'f', 'y', '.', 'm', 'u', 's', 'i', 'c',
9, 'S', 'p', 'o', 't', 'i', 'f', 'y' 9, 'S', 'p', 'o', 't', 'i', 'f', 'y'
}; };
@ -316,10 +316,10 @@ void test_music_endpoint__ignore_malformatted_messages(void) {
const uint8_t *data; const uint8_t *data;
uint16_t length; uint16_t length;
} test_vectors[] = { } test_vectors[] = {
{ malformatted_artist, sizeof(malformatted_artist) }, { malformed_artist, sizeof(malformed_artist) },
{ malformatted_album, sizeof(malformatted_album) }, { malformed_album, sizeof(malformed_album) },
{ malformatted_title, sizeof(malformatted_title) }, { malformed_title, sizeof(malformed_title) },
{ malformatted_player, sizeof(malformatted_player) } { malformed_player, sizeof(malformed_player) }
}; };
for (int i = 0; i < ARRAY_LENGTH(test_vectors); ++i) { for (int i = 0; i < ARRAY_LENGTH(test_vectors); ++i) {
prv_receive_pp_data(test_vectors[i].data, test_vectors[i].length); prv_receive_pp_data(test_vectors[i].data, test_vectors[i].length);