Crc16 --> TransferCRC

This commit is contained in:
Pavel Kirienko
2014-02-25 17:58:31 +04:00
parent 366c5f5460
commit a6ab9c416f
9 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -7,9 +7,9 @@
#include <uavcan/internal/transport/crc.hpp>
TEST(Crc16, Correctness)
TEST(TransportCRC, Correctness)
{
uavcan::Crc16 crc;
uavcan::TransportCRC crc;
ASSERT_EQ(0x0000, crc.get());
@@ -22,5 +22,5 @@ TEST(Crc16, Correctness)
ASSERT_EQ(53881, crc.get());
// Initializing constructor
ASSERT_EQ(crc.get(), uavcan::Crc16(reinterpret_cast<const uint8_t*>("123Foobar"), 9).get());
ASSERT_EQ(crc.get(), uavcan::TransportCRC(reinterpret_cast<const uint8_t*>("123Foobar"), 9).get());
}