Lines Matching refs:mock_backend
31 static struct mock_log_backend mock_backend; variable
38 int off = id - mock_backend.last_id[ctx_id] - 1; in handle_msg()
40 mock_backend.cnt[ctx_id]++; in handle_msg()
45 mock_backend.missing += off; in handle_msg()
48 mock_backend.last_id[ctx_id] = id; in handle_msg()
75 mock_backend.dropped += cnt; in dropped()
97 out_cnt += mock_backend.cnt[i]; in validate()
100 out_cnt += mock_backend.dropped; in validate()
102 zassert_equal(mock_backend.dropped, mock_backend.missing, in validate()
104 mock_backend.dropped, mock_backend.missing); in validate()
165 memset(&mock_backend, 0, sizeof(mock_backend)); in test_stress()