@@ -213,18 +213,21 @@ TEST_F(LayerInfoTest, getRefreshRateVote_explicitVote) {
213213TEST_F (LayerInfoTest, getRefreshRateVote_explicitVoteWithCategory) {
214214 LayerInfo::LayerVote vote = {.type = LayerHistory::LayerVoteType::ExplicitDefault,
215215 .fps = 20_Hz,
216- .category = FrameRateCategory::High};
216+ .category = FrameRateCategory::High,
217+ .categorySmoothSwitchOnly = true };
217218 layerInfo.setLayerVote (vote);
218219
219220 auto actualVotes =
220221 layerInfo.getRefreshRateVote (*mScheduler ->refreshRateSelector (), systemTime ());
221222 ASSERT_EQ (actualVotes.size (), 2u );
222223 ASSERT_EQ (actualVotes[0 ].type , LayerHistory::LayerVoteType::ExplicitCategory);
223224 ASSERT_EQ (actualVotes[0 ].category , vote.category );
225+ ASSERT_TRUE (actualVotes[0 ].categorySmoothSwitchOnly );
224226 ASSERT_EQ (actualVotes[1 ].type , vote.type );
225227 ASSERT_EQ (actualVotes[1 ].fps , vote.fps );
226228 ASSERT_EQ (actualVotes[1 ].seamlessness , vote.seamlessness );
227- ASSERT_EQ (actualVotes[1 ].category , vote.category );
229+ ASSERT_EQ (actualVotes[1 ].category , FrameRateCategory::Default);
230+ ASSERT_TRUE (actualVotes[1 ].categorySmoothSwitchOnly );
228231}
229232
230233TEST_F (LayerInfoTest, getRefreshRateVote_explicitCategory) {
0 commit comments