summaryrefslogtreecommitdiff
path: root/src/components/application_manager/test
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2019-04-26 15:48:56 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2019-04-26 15:48:56 -0400
commite134f54fb755e31711306c491a988894cc71afd5 (patch)
tree87d569038684b309b7d0816503ec817d06996fdb /src/components/application_manager/test
parent6b17dfb03929789ca246cda31887c7eb9e1d8eb5 (diff)
downloadsdl_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.cc9
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;