summaryrefslogtreecommitdiff
path: root/src/components/application_manager/test/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Add RPCService unit tests (#3250)Yana Chernysheva (GitHub)2020-05-181-0/+1
| | | | | | | | | | | * Add RPCService unit tests * Add prerequisites for execution of unit tests * Rearrange and delete unused includes * Add minor changes Co-authored-by: JackLivio <jack@livio.io>
* Fix sdl versioning for vehicle data (#3049)Yaroslav Mamykin (GitHub)2020-01-151-0/+5
| | | * Fix versioning appliance for vehicle data
* Revert "Fix sdl versioning for vehicle data (#3015)"revert-3015-fix/sdl_versioning_for_vehicle_dataJacob Keeler2019-09-131-5/+0
| | | | This reverts commit 73b34832829650834ea69b3606ce8127a93ef973.
* Fix sdl versioning for vehicle data (#3015)Yaroslav Mamykin (GitHub)2019-09-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix versioning appliance for vehicle data SDL applied SyncMsgVersion=4.5.1 in case mobile app version was < 5.0 With this commit SDL applies SyncMsgVersion respectively to mobile app * Add unit test * Fix existing unit tests * fixup! Fix existing unit tests * fixup! Fix versioning appliance for vehicle data * fixup! Fix versioning appliance for vehicle data * fixup! Add unit test * fixup! Fix existing unit tests * fixup! Add unit test * fixup! Fix existing unit tests * fixup! Fix versioning appliance for vehicle data
* [SDL 0173] - Read Generic Network Signal Data Implementation (#2977)Alexander Kutsan (GitHub)2019-08-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Generate policy enums from MOBILE_API Policy manager HMI level enum reorder * Add RPC vehicle data and endpoint_properties to sdl_preloaded_pt Set default version of custom vehicle data mapping * Add VehicleDataItem to policy table SQL storage implementation for VehicleDataItems Fix validation of double values in policy table Change isDouble to isNumeric during validation double values "0" should be validated as correct double value Add validation vehicle data during PTU Send in PT snapshot only version of custom VDI - During snapshot generation remove vehicle data items section - Add validation for Policy table depended on PT type Fix wrong check for vehicle data snapshot Allow empty vehicle data in PTU Change max value of string for URL from 255 to INT_MAX * Make Policy Handler forward declared to avoid high coupling * Add vehicle_info_command_params for vehicle info plugin Vehicle info params added to hmi commands * Process CustomVehicleData in GetVehicleData request * CustomVehicleDataManager implementation * Process Custom vehicle data subscriptions Refactored code. Extracted CheckFrequency to separate method in class * Check update of content of functional groups Fixes https://github.com/smartdevicelink/sdl_core/issues/2962 Add additional check for functional group content before OnPermissionChangeNotification. * rename comparing functions to make more clear their return value sense * change variable names * extra check for null values in HasNewGroups() New unit test to cover changes within functional group * Add GetPolicyConfigurationData GetPolicyCOnfigurationData Implementation * Add CustomVehicleData functionality for POLICY_EXTERNAL flow Change max value url for external policy fixes for external flow * since unti validation for the database * empty vehicle data validation * Convert data_type to VehicleDataType enum value * Validation of VehicleDataItem name and key Introduces validation of vehicle_data_item name and key validation: * they should not contain spaces; * they should not be empty or consist only spaces; * they should not contain invalid chars like '!@#$%^&*'. * Add engineOilLife to HMI_API * Remove deprecated RPC GetUrls due to major version update * Add ability to extend Smart schema with parameters Extract SMember from CObjectSchemaItem Add methods to ISchemaItem (Using composite pattern) - GetMemberSchemaItem - AddMemberSchemaItem Add implementation of VehicleDataItemSchema class Add appropriate unit tests Add creation of vehicle_data items schemes on policy event
* Fix shutdown crash static var colission (#2939)Alexander Kutsan (GitHub)2019-08-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add apropriate destruction of plugins Add Delete exported function to each rpc plugin library Delete funciton will destroy Plugin instance. Move type defenition of PluginPtr to Plugin manager, because other components should use olugins only by referance. Add custom destructor for PluginPtr. custom destructor will call `Delete` function from shared library for plugin instance and unload plugin dl_handle. Deprecate GetPlugins method because it not used (and actualy shouldnt) by other components. Refactored LoadPlugin function, make it more readable, make this function as private RPCPluginManagerImpl private method. * Fix components dependencies after hiding libraries symbols * Add `-fvisibility=hidden` to avoid collision of static variables Remove from ABI all shared objects members except functions that needed. Fixes double destruction crash on shutdown. For the case if dynamically linked library contains same static variables as binary. System allocates the same memory for both static variables (in shared object and in binary). But during exit both binary and shared object destroying this memory. Mostly is a specific for binaries generated by gcc compiler. Inspired by https://stackoverflow.com/questions/3570355/c-fvisibility-hidden-fvisibility-inlines-hidden http://gcc.gnu.org/wiki/Visibility * Link Policy code statically SDL components like Application manager Connection Handler, etc ... requires symbols from policy library. Also policy library loaded by SDL in run-time as shared library. Having same library loaded as dynamic and shared library is definitely bad idea. This commit link extract static policy component and link policy component statically to other components. * Static linkage of plugins code un plugins unit tests Unit tests need to be portable and should not depend from dynamic libraries * Put logs_enabled_ "default" visibility attribute Logs enables is static variable and it should be shared across libraries. On SDL start if set_enabled_logs should put value shared across libraries * Changed the order of destruction of objects Changed the order of destruction of objects to avoid the crash during destruction of the RequestController. * Change the order of the waiting and finishing thread Applications using hotplug support should stop the thread at program exit and wait finishing thread after calling libusb_hotplug_deregister_callback. This call wakes up libusb_handle_events () http://libusb.sourceforge.net/api-1.0/group__libusb__asyncio.html * fixup! Add apropriate destruction of plugins * Make saftly usage of logger Added usage unique_ptr for LogMessageLoopThread to avoid the crash when delete_log_message_loop_thread was not fired.
* Update audioPassThruCapabilities in hmi_capabilities.json to arraySho Amano2019-07-251-0/+1
| | | | | Also, hmi_capabilities_impl.cc is updated to support both old and new formats of the json file.
* Implemeted unit tests for the rpc_passing_handler classShobhit Adlakha2019-05-101-0/+1
|
* Add Mobile Event Engine Testtests/mobile_event_engine_testJackLivio2019-04-161-0/+1
|
* Add basic AppServiceManager testsjacobkeeler2019-03-161-0/+1
| | | | Also add minor safety checks in AppServiceManager class
* Merge pull request #2328 from ZhdanovP/fix/remove_commented_codeJackLivio2018-07-201-1/+0
|\ | | | | Remove commented code
| * Remove commented codeZhdanovP2018-07-041-1/+0
| |
* | Fix build issues and affected unit testsAKalinich-Luxoft2018-07-031-0/+1
| |
* | Fix minor issues with help prompt manager tests after mergeJacob Keeler2018-07-021-0/+1
| |
* | Merge remote-tracking branch 'origin/develop' into ↵Jacob Keeler2018-07-021-11/+5
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | feature/handling_VR_help_requests # Conflicts: # src/components/application_manager/rpc_plugins/sdl_rpc_plugin/test/commands/mobile/set_global_properties_test.cc # src/components/application_manager/src/application_manager_impl.cc # src/components/application_manager/test/CMakeLists.txt # src/components/application_manager/test/application_manager_impl_test.cc # src/components/application_manager/test/resumption/resume_ctrl_test.cc # src/components/functional_module/test/include/mock_application.h # src/components/remote_control/test/include/mock_application.h
| * Remove remote control flagIra Lytvynenko (GitHub)2018-06-261-4/+0
| |
| * Fix build with unit tests after commands factory refactoringValerii2018-06-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Change enum name from command origin to command source - Create Mock for command factory class - Fix mock_app_manager after refactoring - Fix failed unit test Fix unit test in progress Add asser in plugin manager getter Fixed UT Application manager impl -Add method "SetRPCService" into the class ApplicationManagerImpl Fixed UT Application manager impl -Add method "SetRPCService" into the class ApplicationManagerImpl Fixed UT Application manager impl -Add method "SetRPCService" into the class ApplicationManagerImpl Fixed UTs for hmi and mobile commands.
| * Replaced all usages of passed parameters in implementation.BSolonenko2018-06-261-0/+1
| | | | | | | | | | | | | | | | | | Replaced all usages of passed parameters in implementation from application manager proxy to indirect call Add missed factories Remove commands includes
| * Plugin manager and plugin interface creationAlexander Kutsan2018-06-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add Optional type Fix compile warnings and use optional for returning plugin Add descriptions to optional Fix review issues Fix header guards Fix build with unit tests after commands factory refactoring - Change enum name from command origin to command source - Create Mock for command factory class - Fix mock_app_manager after refactoring - Fix failed unit test
* | Added tests for the HelpPromptManager.sniukalov2018-05-211-1/+8
|/
* Fix build issues and test failures when building with ENABLE_SECURITY=OFFfix/security_off_buildjacobkeeler2018-03-211-1/+4
|
* Test coverage for postponing commands during switchingAndrey Oleynik (GitHub)2018-01-181-8/+8
|
* Moves app data recall logic out of ApplicationManagerAndrey Oleynik (GitHub)2018-01-181-0/+1
|
* Update unit tests to check system capability support flagsSho Amano2017-09-131-0/+2
|
* Implementation of Remote Control pluginAlexander Kutsan2017-08-161-1/+5
| | | | | | Stype changes after integration Fix policy handler remote unit tests
* Add unit tests for application managerSho Amano2017-08-111-1/+5
|
* Renamed resumption test to avoid cmake warningfix/4.3.0_fixesJacob Keeler2017-05-161-1/+1
|
* Comment application_manager_impl_test to increase coverageIra Lytvynenko2017-02-071-1/+5
| | | | | application_manager_impl_test includes to statistics additional files, that are not fully covered. Commenting application_manager_impl_test increase coverage up to 73.1%.
* Merge branch 'release/4.3.0' into developAlex Kutsan2017-01-311-4/+8
|\
| * Fix merge conficltsAlex Kutsan2017-01-311-2/+2
| |
| * Merge release to developAlex Kutsan2017-01-271-3/+5
| |\
| | * Change policies path and fix params method usageAlex Kutsan2017-01-181-2/+4
| | |\
| | | * Adds unit tests for RequestTracker classAndrey Oleynik2017-01-031-0/+1
| | | | | | | | | | | | | | | | Relates-to: APPLINK-25591
| | | * Fix usages of policy in codeAlexander Kutsan2016-12-051-3/+4
| | | |
* | | | Move request_controller tests from pre_5_0 branch to developLitvinenkoIra2017-01-301-0/+5
|/ / / | | | | | | | | | | | | Make request_controller_test executable, move actual tests from pre_5_0 branch, move MockRequest in a separate file, raise cover functions up to 75%. Related task: SDLOPEN-583
* | | Merge pull request #1234 from pold500/feature/app_manager_impl_testsAlexander Kutsan (GitHub)2017-01-261-0/+1
|\ \ \ | | | | | | | | Moved application manager implementation tests
| * | | Move application manager implementation testsPDmytriiev2017-01-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move application manager implementation tests from pre_5_0_0 branch to develop Added: - application_manager_impl_test.cc file which contains 5 working unit test cases for ApplicationManagerImpl class: - ProcessQueryApp_ExpectSuccess - SubscribeAppForWayPoints_ExpectSubscriptionApp - UnsubscribeAppForWayPoints_ExpectUnsubscriptionApp - IsAnyAppSubscribedForWayPoints_SubcribeAppForWayPoints_ExpectCorrectResult - GetAppsSubscribedForWayPoints_SubcribeAppForWayPoints_ExpectCorrectResult
* | | | Update CMakeLists according rulesIvo Stoilov (GitHub)2017-01-251-53/+7
|/ / / | | | | | | | | | Related tasks APPLINK-30588 APPLINK-30974
* | | Move hmi_language_handler_testLitvinenkoIra2017-01-191-0/+1
|/ / | | | | | | | | Move hmi_language_handler_test from pre_5_0 branch to develop. Related task: SDLOPEN-587
* | Refactor CMake filesIvo Stoilov (GitHub)2017-01-121-93/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge components refactoring from Windows port barnch - add cmake tools - refactor protocol handler CMakeLists.txt file - refactor interfaces CMakeLists.txt file - refactor smart object CMakeLists.txt file - refactor formatters CMakeLists.txt file - refactor config profile CMakeLists.txt file - refactor policy CMakeLists.txt file - refactor resumption CMakeLists.txt file - refactor connection handler CMakeLists.txt file - refactor application manager CMakeLists.txt file - refactor security manager CMakeLists.txt file - refactor dbus CMakeLists.txt file - refactor hmi message handler CMakeLists.txt file - refactor transport manager CMakeLists.txt file - refactor utils CMakeLists.txt file - refactor components root CMakeLists.txt file - refactor utils CMakeLists.txt file - refactor components root CMakeLists.txt file - refactor media manager CMakeLists.txt file - refactor telemetry monitor CMakeLists.txt file - refactor appmain CMakeLists.txt file - refactor plugins CMakeLists.txt file - refactor 3rd party CMakeLists.txt files - create cmake helper for interface generation - refactor root CMakeLists.txt file Move cmake modules to tools Rename src/3rd_party-static/MessageBroker to message_broker Related tasks APPLINK-30588 APPLINK-30972
* | Revert "Fix/cmake files refactoring"revert-1144-fix/cmake_files_refactoringAlexander Kutsan (GitHub)2017-01-051-96/+93
| |
* | Apply code review commentsIvo Stoilov (GitHub)2017-01-031-1/+0
| | | | | | | | | | | | | | | | | | | | Fixed changed to .travis.yml Restored build configuration defaults Put back/remove files changed with refactoring Reverted changes related to MSCV Removed changes related to QT_PORT Related taks APPLINK-30588 APPLINK-30972
* | Refactor CMake filesIvo Stoilov (GitHub)2016-12-301-93/+97
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge components refactoring from Windows port barnch - add cmake tools - refactor protocol handler CMakeLists.txt file - refactor interfaces CMakeLists.txt file - refactor smart object CMakeLists.txt file - refactor formatters CMakeLists.txt file - refactor config profile CMakeLists.txt file - refactor policy CMakeLists.txt file - refactor resumption CMakeLists.txt file - refactor connection handler CMakeLists.txt file - refactor application manager CMakeLists.txt file - refactor security manager CMakeLists.txt file - refactor dbus CMakeLists.txt file - refactor hmi message handler CMakeLists.txt file - refactor transport manager CMakeLists.txt file - refactor utils CMakeLists.txt file - refactor components root CMakeLists.txt file - refactor utils CMakeLists.txt file - refactor components root CMakeLists.txt file - refactor media manager CMakeLists.txt file - refactor telemetry monitor CMakeLists.txt file - refactor appmain CMakeLists.txt file - refactor plugins CMakeLists.txt file - refactor 3rd party CMakeLists.txt files - create cmake helper for interface generation - refactor root CMakeLists.txt file Move cmake modules to tools Related taks APPLINK-30588 APPLINK-30972
* Create tools to test commandsLevchenko2016-08-231-3/+4
| | | | | | | | | | | | | | | | | | | Been done: - Added specific abstract classes for commands testing (CommandsTest and CommandRequestTest); - Been added unit tests for base command classes (CommandImpl, CommandRequestImpl, CommandResponseImpl); - Been added unit tests for next mobile response commands: - ListFilesResponse - ReadDIDResponse - AlertManeuverResponse - AlertResponse - SubscribeButtonResponse Related to: APPLINK-24911
* Common AppLaunchController functionalityAlexander Kutsan2016-08-051-0/+2
| | | | Related issue : APPLINK-24892
* Correct project structure in ApplicationManagerKozoriz2016-05-171-67/+8
| | | | | | Mocks and tests moved to correct directories CMakeFiles corrected Headers corrected
* Merge pull request #530 from ↵Artem Nosach2016-05-161-0/+2
|\ | | | | | | | | VVeremjova/feature/Complete_unit_tests_for_policy_handler Complete unit tests for policy handler
| * Add unit tests for policy handlerVeronica Veremjova2016-05-131-0/+2
| | | | | | | | Relates to APPLINK-20069
* | Fix tests for resumptionVeronica Veremjova2016-05-131-3/+3
|/ | | | Relates to APPLINK-22337
* ApplicationManager tests correctives after removing all singletonsKozoriz2016-04-251-84/+73
|