diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2020-08-19 15:09:06 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2020-08-19 15:09:06 -0400 |
commit | 353df862996dba555b5bd01f3bc60e137c42b2ff (patch) | |
tree | 20b27ca6c7df9ebb70c3afd2f7b56ec2fb6b6931 | |
parent | 755b30598060c2b2e6da0679bd9ae47930aee3bf (diff) | |
download | sdl_core-fix/subtle_notifications_non_mandatory.tar.gz |
Fix broken tests on regular policy buildfix/subtle_notifications_non_mandatory
-rw-r--r-- | src/components/policy/policy_regular/test/sql_pt_representation_test.cc | 22 |
1 files changed, 13 insertions, 9 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 8da9158999..880e9ca4f9 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 @@ -1893,7 +1893,7 @@ TEST_F(SQLPTRepresentationTest, Save_SetPolicyTableThenSave_ExpectSavedToPT) { EXPECT_EQ(0u, config.seconds_between_retries.size()); EXPECT_EQ(0u, config.endpoints.size()); EXPECT_EQ(0u, config.notifications_per_minute_by_priority.size()); - EXPECT_EQ(0u, config.subtle_notifications_per_minute_by_priority.size()); + EXPECT_EQ(0u, (*config.subtle_notifications_per_minute_by_priority).size()); policy_table::ConsumerFriendlyMessages messages; GatherConsumerFriendlyMessages(&messages); @@ -2001,15 +2001,19 @@ TEST_F(SQLPTRepresentationTest, Save_SetPolicyTableThenSave_ExpectSavedToPT) { ASSERT_EQ(4, config.notifications_per_minute_by_priority["communication"]); ASSERT_EQ(5, config.notifications_per_minute_by_priority["normal"]); ASSERT_EQ(6, config.notifications_per_minute_by_priority["none"]); - ASSERT_EQ(6u, config.subtle_notifications_per_minute_by_priority.size()); - ASSERT_EQ(7, config.subtle_notifications_per_minute_by_priority["emergency"]); - ASSERT_EQ(8, - config.subtle_notifications_per_minute_by_priority["navigation"]); - ASSERT_EQ(9, config.subtle_notifications_per_minute_by_priority["VOICECOMM"]); + ASSERT_EQ(6u, (*config.subtle_notifications_per_minute_by_priority).size()); + ASSERT_EQ(7, + (*config.subtle_notifications_per_minute_by_priority)["emergency"]); ASSERT_EQ( - 10, config.subtle_notifications_per_minute_by_priority["communication"]); - ASSERT_EQ(11, config.subtle_notifications_per_minute_by_priority["normal"]); - ASSERT_EQ(12, config.subtle_notifications_per_minute_by_priority["none"]); + 8, (*config.subtle_notifications_per_minute_by_priority)["navigation"]); + ASSERT_EQ(9, + (*config.subtle_notifications_per_minute_by_priority)["VOICECOMM"]); + ASSERT_EQ( + 10, + (*config.subtle_notifications_per_minute_by_priority)["communication"]); + ASSERT_EQ(11, + (*config.subtle_notifications_per_minute_by_priority)["normal"]); + ASSERT_EQ(12, (*config.subtle_notifications_per_minute_by_priority)["none"]); EXPECT_EQ(1u, config.endpoints.size()); policy_table::ServiceEndpoints& service_endpoints = config.endpoints; EXPECT_EQ("0x00", service_endpoints.begin()->first); |