Home
last modified time | relevance | path

Searched refs:expected_size (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.4.0/tools/test_apps/protocols/mqtt/publish_connect_test/main/
Dpublish_test.c31 static size_t expected_size = 0; variable
90 if (0 == memcmp(actual_data, expected_data, expected_size)) { in mqtt_event_handler()
92 memset(actual_data, 0, expected_size); in mqtt_event_handler()
133 expected_size = pattern_size * repeat; in pattern_setup()
134 expected_data = malloc(expected_size); in pattern_setup()
135 actual_data = malloc(expected_size); in pattern_setup()
139 printf("EXPECTED STRING %.*s, SIZE:%d\n", expected_size, expected_data, expected_size); in pattern_setup()
219 …ent_enqueue(mqtt_client, CONFIG_EXAMPLE_PUBLISH_TOPIC, expected_data, expected_size, qos_test, 0, … in publish_test()
221 …ient_publish(mqtt_client, CONFIG_EXAMPLE_PUBLISH_TOPIC, expected_data, expected_size, qos_test, 0); in publish_test()
/hal_espressif-3.4.0/components/esp_ringbuf/test/
Dtest_ringbuf.c58 …no_split(RingbufHandle_t handle, const uint8_t *expected_data, size_t expected_size, TickType_t ti… in receive_check_and_return_item_no_split() argument
69 TEST_ASSERT_MESSAGE(item_size == expected_size, "Item size is incorrect"); in receive_check_and_return_item_no_split()
83 …ow_split(RingbufHandle_t handle, const uint8_t *expected_data, size_t expected_size, TickType_t ti… in receive_check_and_return_item_allow_split() argument
99 TEST_ASSERT_MESSAGE(item_size1 == expected_size, "Item size is incorrect"); in receive_check_and_return_item_allow_split()
111 … TEST_ASSERT_MESSAGE(item_size1 + item_size2 == expected_size, "Total item size is incorrect"); in receive_check_and_return_item_allow_split()
129 …e_buffer(RingbufHandle_t handle, const uint8_t *expected_data, size_t expected_size, TickType_t ti… in receive_check_and_return_item_byte_buffer() argument
135 item = (uint8_t *)xRingbufferReceiveUpToFromISR(handle, &item_size, expected_size); in receive_check_and_return_item_byte_buffer()
137 …item = (uint8_t *)xRingbufferReceiveUpTo(handle, &item_size, ticks_to_wait, expected_size); //Li… in receive_check_and_return_item_byte_buffer()
153 if (item_size < expected_size) { in receive_check_and_return_item_byte_buffer()
158 … item2 = (uint8_t *)xRingbufferReceiveUpToFromISR(handle, &item_size2, expected_size - item_size); in receive_check_and_return_item_byte_buffer()
[all …]
/hal_espressif-3.4.0/tools/
Didf_tools.py745 expected_size = download_obj.size
747 if file_size != expected_size:
748 …warn('file size mismatch for {}, expected {}, got {}'.format(local_path, expected_size, file_size))