diff options
author | Ivo Stoilov (GitHub) <istoilov@luxoft.com> | 2017-01-19 20:51:56 +0200 |
---|---|---|
committer | Ivo Stoilov (GitHub) <istoilov@luxoft.com> | 2017-01-25 16:50:56 +0200 |
commit | ce0c872262dd03afded8a0429d5825307708ea44 (patch) | |
tree | 64b687f1e989e1556ea855909d94c123aca5acef /src/components/application_manager/test/mobile_message_handler_test.cc | |
parent | d9b374ebd524075c1a2f27e656e63591e86b6135 (diff) | |
download | sdl_core-ce0c872262dd03afded8a0429d5825307708ea44.tar.gz |
Correct coding style in mock/test files
Related tasks APPLINK-30588 APPLINK-30974
Diffstat (limited to 'src/components/application_manager/test/mobile_message_handler_test.cc')
-rw-r--r-- | src/components/application_manager/test/mobile_message_handler_test.cc | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/components/application_manager/test/mobile_message_handler_test.cc b/src/components/application_manager/test/mobile_message_handler_test.cc index f92050d8c7..07b523c56e 100644 --- a/src/components/application_manager/test/mobile_message_handler_test.cc +++ b/src/components/application_manager/test/mobile_message_handler_test.cc @@ -163,12 +163,13 @@ class MobileMessageHandlerTest : public testing::Test { EXPECT_EQ(application_manager::MessageType::kNotification, message->type()); } - MobileMessage CreateMessageForSending(uint32_t protocol_version, - uint32_t function_id, - uint32_t correlation_id, - uint32_t connection_key, - const std::string& json_msg, - application_manager::BinaryData* data = NULL) { + MobileMessage CreateMessageForSending( + uint32_t protocol_version, + uint32_t function_id, + uint32_t correlation_id, + uint32_t connection_key, + const std::string& json_msg, + application_manager::BinaryData* data = NULL) { MobileMessage message = utils::MakeShared<Message>( MessagePriority::FromServiceType(ServiceType::kRpc)); message->set_function_id(function_id); @@ -217,7 +218,8 @@ class MobileMessageHandlerTest : public testing::Test { void TestHandlingOutgoingMessageProtocolWithBinaryData( const uint32_t protocol_version) { // Arrange - application_manager::BinaryData* bin_dat = new application_manager::BinaryData; + application_manager::BinaryData* bin_dat = + new application_manager::BinaryData; bin_dat->push_back('\a'); const uint32_t function_id = 247u; @@ -254,7 +256,8 @@ TEST(mobile_message_test, basic_test) { MobileMessage message = utils::MakeShared<Message>(protocol_handler::MessagePriority::kDefault); EXPECT_FALSE(message->has_binary_data()); - application_manager::BinaryData* binary_data = new application_manager::BinaryData; + application_manager::BinaryData* binary_data = + new application_manager::BinaryData; binary_data->push_back('X'); message->set_binary_data(binary_data); EXPECT_TRUE(message->has_binary_data()); |