Lines Matching refs:mock

13 	struct mock_log_backend *mock = backend->cb->ctx;  in mock_log_backend_reset()  local
15 mock->msg_rec_idx = 0; in mock_log_backend_reset()
16 mock->msg_proc_idx = 0; in mock_log_backend_reset()
17 mock->do_check = true; in mock_log_backend_reset()
18 mock->exp_drop_cnt = 0; in mock_log_backend_reset()
19 mock->drop_cnt = 0; in mock_log_backend_reset()
20 mock->panic = false; in mock_log_backend_reset()
25 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_check_enable() local
27 mock->do_check = true; in mock_log_backend_check_enable()
32 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_check_disable() local
34 mock->do_check = false; in mock_log_backend_check_disable()
39 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_dummy_record() local
42 mock->exp_msgs[mock->msg_rec_idx + i].check = false; in mock_log_backend_dummy_record()
45 mock->msg_rec_idx += cnt; in mock_log_backend_dummy_record()
50 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_drop_record() local
52 mock->exp_drop_cnt = cnt; in mock_log_backend_drop_record()
72 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_generic_record() local
73 struct mock_log_backend_msg *exp = &mock->exp_msgs[mock->msg_rec_idx]; in mock_log_backend_generic_record()
93 mock->msg_rec_idx++; in mock_log_backend_generic_record()
98 struct mock_log_backend *mock = backend->cb->ctx; in mock_log_backend_validate() local
100 zassert_equal(mock->exp_drop_cnt, mock->drop_cnt, in mock_log_backend_validate()
101 "Got: %u, Expected: %u", mock->drop_cnt, mock->exp_drop_cnt); in mock_log_backend_validate()
102 zassert_equal(mock->msg_rec_idx, mock->msg_proc_idx, in mock_log_backend_validate()
103 "%p Recored:%d, Got: %d", mock, mock->msg_rec_idx, mock->msg_proc_idx); in mock_log_backend_validate()
104 zassert_equal(mock->panic, panic); in mock_log_backend_validate()
108 zassert_true(mock->evt_notified); in mock_log_backend_validate()
129 struct mock_log_backend *mock = backend->cb->ctx; in process() local
130 struct mock_log_backend_msg *exp = &mock->exp_msgs[mock->msg_proc_idx]; in process()
132 if (!mock->do_check) { in process()
136 mock->msg_proc_idx++; in process()
206 struct mock_log_backend *mock = backend->cb->ctx; in panic() local
208 mock->panic = true; in panic()
213 struct mock_log_backend *mock = backend->cb->ctx; in dropped() local
215 mock->drop_cnt += cnt; in dropped()
225 struct mock_log_backend *mock = backend->cb->ctx; in notify() local
227 mock->evt_notified = true; in notify()