Skip to content

Commit 695a0f0

Browse files
committed
SF: Fix libcompositionengine_test Expectations around display IDs
https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/native/+/31654940 seems to have introduced a regression in libcompositionengine_test around CompositionEngineTest SetUp(). This CL fixes this issue. Flag: EXEMPT bugfix Bug: 403479642 Test: libcompositionengine_test Change-Id: Ic8c05895f084faaffb2d228d2630ce995df572bd
1 parent 913c8f3 commit 695a0f0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

services/surfaceflinger/CompositionEngine/tests/CompositionEngineTest.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,15 @@ struct CompositionEngineTest : public testing::Test {
6262
void SetUp() override {
6363
EXPECT_CALL(*mOutput1, getDisplayId)
6464
.WillRepeatedly(Return(std::make_optional<DisplayId>(kDisplayId1)));
65+
EXPECT_CALL(*mOutput1, getDisplayIdVariant).WillRepeatedly(Return(kDisplayId1));
66+
6567
EXPECT_CALL(*mOutput2, getDisplayId)
6668
.WillRepeatedly(Return(std::make_optional<DisplayId>(kDisplayId2)));
69+
EXPECT_CALL(*mOutput2, getDisplayIdVariant).WillRepeatedly(Return(kDisplayId2));
70+
6771
EXPECT_CALL(*mOutput3, getDisplayId)
6872
.WillRepeatedly(Return(std::make_optional<DisplayId>(kDisplayId3)));
73+
EXPECT_CALL(*mOutput3, getDisplayIdVariant).WillRepeatedly(Return(kDisplayId3));
6974

7075
// Most tests will depend on the outputs being enabled.
7176
for (auto& state : mOutputStates) {

0 commit comments

Comments
 (0)