diff options
Diffstat (limited to 'src/components/protocol_handler/test/protocol_header_validator_test.cc')
-rw-r--r-- | src/components/protocol_handler/test/protocol_header_validator_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/protocol_handler/test/protocol_header_validator_test.cc b/src/components/protocol_handler/test/protocol_header_validator_test.cc index e69e44dbac..ee48d2eb3d 100644 --- a/src/components/protocol_handler/test/protocol_header_validator_test.cc +++ b/src/components/protocol_handler/test/protocol_header_validator_test.cc @@ -491,8 +491,10 @@ TEST_F(ProtocolHeaderValidatorTest, Malformed_MessageID) { message_header.frameType = FRAME_TYPE_FIRST; message_header.version = PROTOCOL_VERSION_1; + message_header.dataSize = FIRST_FRAME_DATA_SIZE; EXPECT_EQ(RESULT_OK, header_validator.validate(message_header)); + message_header.dataSize = 0u; message_header.version = PROTOCOL_VERSION_2; EXPECT_EQ(RESULT_FAIL, header_validator.validate(message_header)); message_header.version = PROTOCOL_VERSION_3; |