mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
A2B: Fix get & set with upstream direction
This commit is contained in:
committed by
Kyle Schwarz
parent
cb22e622b3
commit
16b60d5ca0
@@ -71,6 +71,21 @@ TEST_F(A2BEncoderDecoderTest, PacketEncoderTest)
|
||||
|
||||
packetEncoder->encode(*packetizer, bytestream, messagePtr);
|
||||
EXPECT_EQ(bytestream, testBytes);
|
||||
|
||||
message.setChannelSample(
|
||||
icsneo::A2BMessage::Direction::Upstream,
|
||||
static_cast<uint8_t>(1u),
|
||||
0u,
|
||||
-102,
|
||||
icsneo::PCMType::L16
|
||||
);
|
||||
|
||||
EXPECT_EQ(message.getChannelSample(
|
||||
icsneo::A2BMessage::Direction::Upstream,
|
||||
static_cast<uint8_t>(1u),
|
||||
0u,
|
||||
icsneo::PCMType::L16
|
||||
), -102);
|
||||
}
|
||||
|
||||
TEST_F(A2BEncoderDecoderTest, PacketDecoderTest)
|
||||
|
||||
Reference in New Issue
Block a user