Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bccd5f6 authored by Michal Olech's avatar Michal Olech
Browse files

CEC: Add VTS test to check is connected (HAL 1.1)

Test: atest VtsHalTvCecV1_1TargetTest
Bug: 172316717
Change-Id: Ia4f78f53bef7ce151b0f711b7e7d8595c068c9ef
parent 91c9697d
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -197,3 +197,13 @@ TEST_P(HdmiCecTest, EnableAudioReturnChannel) {
        }
    }
}

TEST_P(HdmiCecTest, IsConnected) {
    hidl_vec<HdmiPortInfo> ports;
    Return<void> ret =
            hdmiCec->getPortInfo([&ports](hidl_vec<HdmiPortInfo> list) { ports = list; });
    for (size_t i = 0; i < ports.size(); ++i) {
        Return<bool> ret = hdmiCec->isConnected(ports[i].portId);
        EXPECT_TRUE(ret.isOk());
    }
}