composer 2.4: Add new test case for getDisplayCapabilities

The original test case was only tested with bad display. The patch adds the
test case with normal displays.

Test: atest VtsHalGraphicsComposerV2_4TargetTest
Bug: 145566569
Change-Id: Id6a25ebc1f63092194ca1d8837cd450e5bc19def
This commit is contained in:
Yichi Chen 2019-12-17 21:01:57 +08:00
parent 5b867b94b5
commit 7337e0581b

View file

@ -184,6 +184,13 @@ TEST_P(GraphicsComposerHidlTest, getDisplayCapabilitiesBadDisplay) {
EXPECT_EQ(Error::BAD_DISPLAY, error); EXPECT_EQ(Error::BAD_DISPLAY, error);
} }
TEST_P(GraphicsComposerHidlTest, getDisplayCapabilities) {
for (Display display : mComposerCallback->getDisplays()) {
std::vector<IComposerClient::DisplayCapability> capabilities;
EXPECT_EQ(Error::NONE, mComposerClient->getDisplayCapabilities(display, &capabilities));
}
}
TEST_P(GraphicsComposerHidlTest, getDisplayConnectionType) { TEST_P(GraphicsComposerHidlTest, getDisplayConnectionType) {
IComposerClient::DisplayConnectionType type; IComposerClient::DisplayConnectionType type;
EXPECT_EQ(Error::BAD_DISPLAY, EXPECT_EQ(Error::BAD_DISPLAY,