summaryrefslogtreecommitdiffstats
path: root/serial_link/tests/frame_validator_tests.c
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-02-14 21:33:14 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-02-14 21:33:14 +0200
commit0eb62c4ce61e19cf7629bb74cf01d812c042ac57 (patch)
treeea73cd1a3816876f923fdfcd27120217c9061243 /serial_link/tests/frame_validator_tests.c
parent2a6696bd3d0837c2e655a99000bcbcc759b40075 (diff)
Rename recv_frame to validator_recv_frame
Diffstat (limited to 'serial_link/tests/frame_validator_tests.c')
-rw-r--r--serial_link/tests/frame_validator_tests.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/serial_link/tests/frame_validator_tests.c b/serial_link/tests/frame_validator_tests.c
index 816256f6b7..3938f3eaca 100644
--- a/serial_link/tests/frame_validator_tests.c
+++ b/serial_link/tests/frame_validator_tests.c
@@ -41,10 +41,10 @@ AfterEach(FrameValidator) {}
Ensure(FrameValidator, doesnt_validate_frames_under_5_bytes) {
never_expect(route_frame);
uint8_t data[] = {1, 2};
- recv_frame(0, 1);
- recv_frame(data, 2);
- recv_frame(data, 3);
- recv_frame(data, 4);
+ validator_recv_frame(0, 1);
+ validator_recv_frame(data, 2);
+ validator_recv_frame(data, 3);
+ validator_recv_frame(data, 4);
}
Ensure(FrameValidator, validates_one_byte_frame_with_correct_crc) {
@@ -53,13 +53,13 @@ Ensure(FrameValidator, validates_one_byte_frame_with_correct_crc) {
when(size, is_equal_to(1)),
when(data, is_equal_to_contents_of(data, 1))
);
- recv_frame(data, 5);
+ validator_recv_frame(data, 5);
}
Ensure(FrameValidator, does_not_validate_one_byte_frame_with_incorrect_crc) {
uint8_t data[] = {0x44, 0, 0, 0, 0};
never_expect(route_frame);
- recv_frame(data, 5);
+ validator_recv_frame(data, 5);
}
Ensure(FrameValidator, validates_four_byte_frame_with_correct_crc) {
@@ -68,7 +68,7 @@ Ensure(FrameValidator, validates_four_byte_frame_with_correct_crc) {
when(size, is_equal_to(4)),
when(data, is_equal_to_contents_of(data, 4))
);
- recv_frame(data, 8);
+ validator_recv_frame(data, 8);
}
Ensure(FrameValidator, validates_five_byte_frame_with_correct_crc) {
@@ -77,7 +77,7 @@ Ensure(FrameValidator, validates_five_byte_frame_with_correct_crc) {
when(size, is_equal_to(5)),
when(data, is_equal_to_contents_of(data, 5))
);
- recv_frame(data, 9);
+ validator_recv_frame(data, 9);
}
Ensure(FrameValidator, sends_one_byte_with_correct_crc) {