diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2019-04-26 15:48:56 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2019-04-26 15:48:56 -0400 |
commit | e134f54fb755e31711306c491a988894cc71afd5 (patch) | |
tree | 87d569038684b309b7d0816503ec817d06996fdb /src/components/application_manager/test | |
parent | 6b17dfb03929789ca246cda31887c7eb9e1d8eb5 (diff) | |
download | sdl_core-e134f54fb755e31711306c491a988894cc71afd5.tar.gz |
Address review comments and fix unit testshotfix/reject_duplicate_service_names
Diffstat (limited to 'src/components/application_manager/test')
-rw-r--r-- | src/components/application_manager/test/app_service_manager_test.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/application_manager/test/app_service_manager_test.cc b/src/components/application_manager/test/app_service_manager_test.cc index 960e8e31f6..526bbbdb7d 100644 --- a/src/components/application_manager/test/app_service_manager_test.cc +++ b/src/components/application_manager/test/app_service_manager_test.cc @@ -120,8 +120,11 @@ class AppServiceManagerTest : public testing::Test { } smart_objects::SmartObject PublishService( - uint32_t connection_key = kConnectionKey, bool first_run = true) { - smart_objects::SmartObject manifest = GenerateMediaManifest(true); + uint32_t connection_key = kConnectionKey, + std::string service_name = kServiceName, + bool first_run = true) { + smart_objects::SmartObject manifest = + GenerateMediaManifest(true, service_name); Json::Value empty_json; EXPECT_CALL(mock_last_state_, get_dictionary()) @@ -326,7 +329,7 @@ TEST_F(AppServiceManagerTest, ActivateAppService_TwoApps_SUCCESS) { // Register two services with the same service type, the first is activated // automatically auto record = PublishService(); - auto record2 = PublishService(kConnectionKey + 1, false); + auto record2 = PublishService(kConnectionKey + 1, kServiceName + "2", false); // No capability update smart_objects::SmartObject syscap_update_activated; |