Lines Matching refs:expected
141 struct can_timing expected = { 0 }; in can_shell_test_bitrate() local
144 err = can_calc_timing(fake_can_dev, &expected, expected_bitrate, expected_sample_pnt); in can_shell_test_bitrate()
153 assert_can_timing_equal(&expected, &timing_capture); in can_shell_test_bitrate()
183 struct can_timing expected = { 0 }; in can_shell_test_dbitrate() local
188 err = can_calc_timing_data(fake_can_dev, &expected, expected_bitrate, expected_sample_pnt); in can_shell_test_dbitrate()
198 assert_can_timing_equal(&expected, &timing_capture); in can_shell_test_dbitrate()
214 struct can_timing expected = { in ZTEST() local
229 assert_can_timing_equal(&expected, &timing_capture); in ZTEST()
246 struct can_timing expected = { in ZTEST() local
264 assert_can_timing_equal(&expected, &timing_capture); in ZTEST()
300 static void can_shell_test_mode(const char *cmd, can_mode_t expected) in can_shell_test_mode() argument
310 zassert_equal(fake_can_set_mode_fake.arg1_val, expected, "wrong mode value"); in can_shell_test_mode()
365 static void can_shell_test_send(const char *cmd, const struct can_frame *expected) in can_shell_test_send() argument
376 assert_can_frame_equal(expected, &frame_capture); in can_shell_test_send()
381 const struct can_frame expected = { in ZTEST() local
388 can_shell_test_send("can send " FAKE_CAN_NAME " 010 aa 55", &expected); in ZTEST()
393 const struct can_frame expected = { in ZTEST() local
400 can_shell_test_send("can send " FAKE_CAN_NAME " -e 1024 de ad be ef", &expected); in ZTEST()
405 const struct can_frame expected = { in ZTEST() local
412 can_shell_test_send("can send " FAKE_CAN_NAME " 133", &expected); in ZTEST()
417 const struct can_frame expected = { in ZTEST() local
424 can_shell_test_send("can send " FAKE_CAN_NAME " -r 7ff", &expected); in ZTEST()
429 const struct can_frame expected = { in ZTEST() local
436 can_shell_test_send("can send " FAKE_CAN_NAME " -f 123 aa 55 aa 55 11 22 33 44", &expected); in ZTEST()
441 const struct can_frame expected = { in ZTEST() local
448 can_shell_test_send("can send " FAKE_CAN_NAME " -f -b 321 aa 55 aa 55 11 22 33", &expected); in ZTEST()
453 const struct can_frame expected = { in ZTEST() local
460 can_shell_test_send("can send " FAKE_CAN_NAME " -r -e -f -b 1024", &expected); in ZTEST()
474 static void can_shell_test_filter_add(const char *cmd, const struct can_filter *expected) in can_shell_test_filter_add() argument
486 assert_can_filter_equal(expected, &filter_capture); in can_shell_test_filter_add()
491 struct can_filter expected = { in ZTEST() local
497 can_shell_test_filter_add("can filter add " FAKE_CAN_NAME " 010", &expected); in ZTEST()
502 struct can_filter expected = { in ZTEST() local
508 can_shell_test_filter_add("can filter add " FAKE_CAN_NAME " 010 020", &expected); in ZTEST()
513 struct can_filter expected = { in ZTEST() local
519 can_shell_test_filter_add("can filter add " FAKE_CAN_NAME " -e 1024", &expected); in ZTEST()
524 struct can_filter expected = { in ZTEST() local
530 can_shell_test_filter_add("can filter add " FAKE_CAN_NAME " -e 1024 2048", &expected); in ZTEST()
535 struct can_filter expected = { in ZTEST() local
541 can_shell_test_filter_add("can filter add " FAKE_CAN_NAME " -e 2048 4096", &expected); in ZTEST()
570 static void can_shell_test_recover(const char *cmd, k_timeout_t expected) in can_shell_test_recover() argument
582 zassert_true(K_TIMEOUT_EQ(fake_can_recover_fake.arg1_val, expected), in can_shell_test_recover()