Lines Matching refs:exp
73 struct mock_log_backend_msg *exp = &mock->exp_msgs[mock->msg_rec_idx]; in mock_log_backend_generic_record() local
75 exp->check = true; in mock_log_backend_generic_record()
76 exp->timestamp = timestamp; in mock_log_backend_generic_record()
77 exp->source_id = source_id; in mock_log_backend_generic_record()
78 exp->domain_id = domain_id; in mock_log_backend_generic_record()
79 exp->level = level; in mock_log_backend_generic_record()
83 __ASSERT_NO_MSG(len < sizeof(exp->str)); in mock_log_backend_generic_record()
85 memcpy(exp->str, str, len); in mock_log_backend_generic_record()
86 exp->str[len] = 0; in mock_log_backend_generic_record()
88 if (data_len <= sizeof(exp->data)) { in mock_log_backend_generic_record()
89 memcpy(exp->data, data, data_len); in mock_log_backend_generic_record()
91 exp->data_len = data_len; in mock_log_backend_generic_record()
130 struct mock_log_backend_msg *exp = &mock->exp_msgs[mock->msg_proc_idx]; in process() local
138 if (!exp->check) { in process()
142 zassert_equal(msg->log.hdr.timestamp, exp->timestamp, in process()
148 msg->log.hdr.timestamp, exp->timestamp); in process()
149 zassert_equal(msg->log.hdr.desc.level, exp->level); in process()
150 zassert_equal(msg->log.hdr.desc.domain, exp->domain_id); in process()
155 if (exp->level == LOG_LEVEL_INTERNAL_RAW_STRING) { in process()
163 zassert_equal(source_id, exp->source_id, "source_id:%p (exp: %d)", in process()
164 source_id, exp->source_id); in process()
172 zassert_equal(exp->data_len, len); in process()
173 if (exp->data_len <= sizeof(exp->data)) { in process()
174 zassert_equal(memcmp(data, exp->data, len), 0); in process()
195 zassert_equal(strcmp(str, exp->str), 0, "Got \"%s\", Expected:\"%s\"", in process()
196 str, exp->str); in process()