CEC: Add VTS test to check is connected am: b75639ca66
am: de3c301a52
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1584905 Change-Id: Ic83c0e8b1b516ad661fc324cdf0f3f9638db3557
This commit is contained in:
commit
ae30530f38
1 changed files with 11 additions and 0 deletions
|
@ -150,3 +150,14 @@ TEST_P(HdmiCecTest, EnableAudioReturnChannel) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
TEST_P(HdmiCecTest, IsConnected) {
|
||||
hidl_vec<HdmiPortInfo> ports;
|
||||
Return<void> ret =
|
||||
hdmiCec->getPortInfo([&ports](hidl_vec<HdmiPortInfo> list) { ports = list; });
|
||||
EXPECT_TRUE(ret.isOk());
|
||||
for (size_t i = 0; i < ports.size(); ++i) {
|
||||
Return<bool> ret = hdmiCec->isConnected(ports[i].portId);
|
||||
EXPECT_TRUE(ret.isOk());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue