summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_regular/test/sql_pt_representation_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/policy/policy_regular/test/sql_pt_representation_test.cc')
-rw-r--r--src/components/policy/policy_regular/test/sql_pt_representation_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/policy/policy_regular/test/sql_pt_representation_test.cc b/src/components/policy/policy_regular/test/sql_pt_representation_test.cc
index 0055ce2ee9..675d708843 100644
--- a/src/components/policy/policy_regular/test/sql_pt_representation_test.cc
+++ b/src/components/policy/policy_regular/test/sql_pt_representation_test.cc
@@ -1730,18 +1730,18 @@ TEST_F(SQLPTRepresentationTest, Save_SetPolicyTableThenSave_ExpectSavedToPT) {
EXPECT_EQ(3u, devices.size());
const std::string kAppId = "1234";
- const std::string media_str = "MEDIA";
+ const std::string kServiceType = "MEDIA";
policy_table::AppServiceParameters app_service_parameters;
GatherAppServiceParameters(kAppId, &app_service_parameters);
- ASSERT_FALSE(app_service_parameters.find(media_str) ==
+ ASSERT_FALSE(app_service_parameters.find(kServiceType) ==
app_service_parameters.end());
- auto service_names = *(app_service_parameters[media_str].service_names);
+ auto service_names = *(app_service_parameters[kServiceType].service_names);
EXPECT_TRUE(service_names.is_initialized());
ASSERT_EQ(service_names.size(), 2u);
EXPECT_EQ(static_cast<std::string>(service_names[0]), "SDL App");
EXPECT_EQ(static_cast<std::string>(service_names[1]), "SDL Music");
- auto handled_rpcs = app_service_parameters[media_str].handled_rpcs;
+ auto handled_rpcs = app_service_parameters[kServiceType].handled_rpcs;
EXPECT_TRUE(handled_rpcs.is_initialized());
EXPECT_EQ(handled_rpcs[0].function_id, 41);