[Application] Refactor app_control_h construction. Fix minor bugs. 58/192558/3
authorPawel Wasowski <p.wasowski2@partner.samsung.com>
Mon, 5 Nov 2018 09:27:50 +0000 (10:27 +0100)
committerPawel Wasowski <p.wasowski2@partner.samsung.com>
Tue, 20 Nov 2018 15:43:39 +0000 (16:43 +0100)
commit422fe41731821f77e94ee0d468efd8fbb90eba6f
tree9aabb89ae7e336ca634795d1dffef053d2ed29c0
parent9a38cd77a4df2f2dbfda013a688a21bbfd02a395
[Application] Refactor app_control_h construction. Fix minor bugs.

ApplicationUtils::ApplicationControlToService() function did not set
launch_mode in an app_control_h object. As a result, methods using the
function had to set launch_mode. Now the function sets the launch mode.

Apart from that change, this commit introduces minor fixes:
* error codes returned by native functions in
ApplicationUtils::ApplicationControlToService() and
ApplicationUtils::ApplicationControlDataToServiceExtraData()
are now tested
* log messages in modified functions are more informative
* ApplicationManager::LaunchAppControl() no longer sets launch_mode of
an app_control_h object

[Verification] TCT pass rate: 100%

Change-Id: Ibc4c2625ce795c872560d13454895671777c6f2b
Signed-off-by: Pawel Wasowski <p.wasowski2@partner.samsung.com>
src/application/application_manager.cc
src/application/application_utils.cc
src/application/application_utils.h