summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLloyd Pique <lpique@google.com>2018-11-02 14:18:40 -0700
committerLloyd Pique <lpique@google.com>2018-11-03 00:57:31 +0000
commit256bb66d02e3cae7a439594a16228d6f462ff9a1 (patch)
tree34ef6af14a8d61656c237b0bb734bd270f7ba395
parent60454ab1ccaaa5c508c8a88a2426affb5c21b603 (diff)
downloadnative-256bb66d02e3cae7a439594a16228d6f462ff9a1.tar.gz
SF: Fix DisplayTransactionTest
SetupNewDisplayDeviceInternalTest.createHwcVirtualDisplay was failing after presubmit unit tests were enabled on pi-dev-plus-aosp. It turned out somehow the test had gotten out of sync with the implementation, and the expectations did not match for one of the cases tested. This patch simply fixes the test to use the correct expectations for what calls are made for a HWC supported virtual display when one is created. Bug: 118887786 Test: Presubmit passes Change-Id: I366e51d81ae3cb048e7a287e4f859ac92c55a20f
-rw-r--r--services/surfaceflinger/tests/unittests/DisplayTransactionTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/tests/unittests/DisplayTransactionTest.cpp b/services/surfaceflinger/tests/unittests/DisplayTransactionTest.cpp
index 9ac5f3b73e..9b308bfcc8 100644
--- a/services/surfaceflinger/tests/unittests/DisplayTransactionTest.cpp
+++ b/services/surfaceflinger/tests/unittests/DisplayTransactionTest.cpp
@@ -658,7 +658,8 @@ using NonHwcVirtualDisplayCase =
using SimpleHwcVirtualDisplayVariant = HwcVirtualDisplayVariant<1024, 768, Secure::TRUE>;
using HwcVirtualDisplayCase =
Case<SimpleHwcVirtualDisplayVariant, WideColorSupportNotConfiguredVariant,
- NonHwcDisplayHdrSupportVariant, NonHwcPerFrameMetadataSupportVariant>;
+ HdrNotSupportedVariant<SimpleHwcVirtualDisplayVariant>,
+ NoPerFrameMetadataSupportVariant<SimpleHwcVirtualDisplayVariant>>;
using WideColorP3ColorimetricDisplayCase =
Case<PrimaryDisplayVariant, WideColorP3ColorimetricSupportedVariant<PrimaryDisplayVariant>,
HdrNotSupportedVariant<PrimaryDisplayVariant>,