Home
last modified time | relevance | path

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

/Zephyr-latest/tests/subsys/logging/log_output/src/
Dlog_output_test.c27 static uint8_t mock_buffer[512]; variable
34 memset(mock_buffer, 0, sizeof(mock_buffer)); in reset_mock_buffer()
39 memcpy(&mock_buffer[mock_len], buf, size); in mock_output_func()
59 mock_buffer[mock_len] = '\0'; in ZTEST()
60 zassert_str_equal(exp_str, mock_buffer); in ZTEST()
75 mock_buffer[mock_len] = '\0'; in ZTEST()
76 zassert_str_equal(exp_str, mock_buffer); in ZTEST()
90 mock_buffer[mock_len] = '\0'; in ZTEST()
91 zassert_str_equal(exp_str, mock_buffer); in ZTEST()
107 mock_buffer[mock_len] = '\0'; in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/logging/log_output_net/src/
Dlog_output_test.c28 static uint8_t mock_buffer[512]; variable
35 memset(mock_buffer, 0, sizeof(mock_buffer)); in reset_mock_buffer()
40 memcpy(&mock_buffer[mock_len], buf, size); in mock_output_func()
68 mock_buffer[mock_len] = '\0'; in ZTEST()
69 zassert_str_equal(exp_str, mock_buffer, "expected: %s, is: %s", exp_str, mock_buffer); in ZTEST()
/Zephyr-latest/tests/subsys/logging/log_timestamp/src/
Dlog_timestamp_test.c28 static uint8_t mock_buffer[512]; variable
35 memset(mock_buffer, 0, sizeof(mock_buffer)); in reset_mock_buffer()
40 memcpy(&mock_buffer[mock_len], buf, size); in mock_output_func()
77 mock_buffer[mock_len] = '\0'; in ZTEST()
78 zassert_str_equal(exp_str, mock_buffer); in ZTEST()