diff --git a/tv/cec/1.0/vts/functional/VtsHalTvCecV1_0TargetTest.cpp b/tv/cec/1.0/vts/functional/VtsHalTvCecV1_0TargetTest.cpp index 1ab040eddb..fcd1df8543 100644 --- a/tv/cec/1.0/vts/functional/VtsHalTvCecV1_0TargetTest.cpp +++ b/tv/cec/1.0/vts/functional/VtsHalTvCecV1_0TargetTest.cpp @@ -150,3 +150,14 @@ TEST_P(HdmiCecTest, EnableAudioReturnChannel) { } } } + +TEST_P(HdmiCecTest, IsConnected) { + hidl_vec ports; + Return ret = + hdmiCec->getPortInfo([&ports](hidl_vec list) { ports = list; }); + EXPECT_TRUE(ret.isOk()); + for (size_t i = 0; i < ports.size(); ++i) { + Return ret = hdmiCec->isConnected(ports[i].portId); + EXPECT_TRUE(ret.isOk()); + } +}