summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Lloyd Pique <lpique@google.com> 2018-11-02 14:18:40 -0700
committer Xin Li <delphij@google.com> 2018-12-12 22:30:07 +0000
commit07c3bc4ef7006656de8b7e697172a11a40cbca2c (patch)
tree665c51dfdc1070fc39ca1cd8e12e8144fbdd106e
parent90b6da972dd4fa92c26016dc53009219ed075204 (diff)
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 (cherry picked from commit 256bb66d02e3cae7a439594a16228d6f462ff9a1)
-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>,