diff options
author | Elisey Zamakhov <EZamakhov@luxoft.com> | 2015-03-06 11:25:35 +0300 |
---|---|---|
committer | Elisey Zamakhov <EZamakhov@luxoft.com> | 2015-03-18 14:00:04 +0300 |
commit | 458a8615ce6d44853192001c16d40af90acbf184 (patch) | |
tree | 07f48d5f50fd46761a212aa636dc8082ce410876 /src/components/protocol_handler/test/incoming_data_handler_test.cc | |
parent | 2edb2f348fa50c079aa9fcfb57d1ab1b5ae81b23 (diff) | |
download | sdl_core-458a8615ce6d44853192001c16d40af90acbf184.tar.gz |
Add MalformedLimitVerification tests
Add log messages
Review/gstyle fixs
Diffstat (limited to 'src/components/protocol_handler/test/incoming_data_handler_test.cc')
-rw-r--r-- | src/components/protocol_handler/test/incoming_data_handler_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/protocol_handler/test/incoming_data_handler_test.cc b/src/components/protocol_handler/test/incoming_data_handler_test.cc index 5db5a640d2..128af89ddd 100644 --- a/src/components/protocol_handler/test/incoming_data_handler_test.cc +++ b/src/components/protocol_handler/test/incoming_data_handler_test.cc @@ -445,7 +445,7 @@ TEST_F(IncomingDataHandlerTest, MalformedPacket_Mix) { AppendPacketToTMData(*mobile_packets.back()); // Malformed packet - const uint8_t malformed_version = 5; + const uint8_t malformed_version = PROTOCOL_VERSION_MAX; const ProtocolPacket malformed_packet1( uid1, malformed_version, PROTECTION_ON, FRAME_TYPE_SINGLE, kMobileNav, FRAME_DATA_SINGLE, ++some_session_id, some_data_size, @@ -461,7 +461,7 @@ TEST_F(IncomingDataHandlerTest, MalformedPacket_Mix) { AppendPacketToTMData(*mobile_packets.back()); // Malformed packet - const uint8_t malformed_type = FRAME_TYPE_MAX_VALUE - 1; + const uint8_t malformed_type = FRAME_TYPE_MAX_VALUE; ProtocolPacket malformed_packet2( uid1, PROTOCOL_VERSION_4, PROTECTION_OFF, malformed_type, kRpc, FRAME_DATA_HEART_BEAT, some_session_id, some_data_size, |