diff options
Diffstat (limited to 'src/components/policy/policy_external/test/sql_pt_representation_test.cc')
-rw-r--r-- | src/components/policy/policy_external/test/sql_pt_representation_test.cc | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/components/policy/policy_external/test/sql_pt_representation_test.cc b/src/components/policy/policy_external/test/sql_pt_representation_test.cc index ae3000fe7c..5495ef65b0 100644 --- a/src/components/policy/policy_external/test/sql_pt_representation_test.cc +++ b/src/components/policy/policy_external/test/sql_pt_representation_test.cc @@ -1726,7 +1726,7 @@ TEST_F(SQLPTRepresentationTest, 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); @@ -1833,15 +1833,19 @@ TEST_F(SQLPTRepresentationTest, 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); |