Merge "composer 2.4: Add new test case for getDisplayCapabilities"

This commit is contained in:
TreeHugger Robot 2019-12-23 11:38:00 +00:00 committed by Android (Google) Code Review
commit d97b9ab2e2

View file

@ -184,6 +184,13 @@ TEST_P(GraphicsComposerHidlTest, getDisplayCapabilitiesBadDisplay) {
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) {
IComposerClient::DisplayConnectionType type;
EXPECT_EQ(Error::BAD_DISPLAY,