commit | 4987441d6a3b2ee763ee3169be88bddf545b8a83 | [log] [tgz] |
---|---|---|
author | Shraddha Basantwani <shraddha.basantwani@ittiam.com> | Tue Mar 30 13:18:00 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Mar 30 13:18:00 2021 +0000 |
tree | 1acc4d495eda6c4ca42048772f479b919ff53fc1 | |
parent | aaca3204c48f57e399fed45971dd4897e3990d29 [diff] | |
parent | 5b0feb94248b0fcd7e0022dc84ca494f9f5940a0 [diff] |
CEC: Add VTS test to get Vendor Id am: b494d6140f am: 8cdd1dc38d am: ae6d450222 am: 5b0feb9424 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1556541 Change-Id: I2a4a88a87af5003dba11b7ca14a2c716f47311d4
diff --git a/tv/cec/1.0/vts/functional/VtsHalTvCecV1_0TargetTest.cpp b/tv/cec/1.0/vts/functional/VtsHalTvCecV1_0TargetTest.cpp index c4c6e04..db6839d 100644 --- a/tv/cec/1.0/vts/functional/VtsHalTvCecV1_0TargetTest.cpp +++ b/tv/cec/1.0/vts/functional/VtsHalTvCecV1_0TargetTest.cpp
@@ -32,6 +32,7 @@ using ::android::hardware::tv::cec::V1_0::Result; #define CEC_VERSION 0x05 +#define INCORRECT_VENDOR_ID 0x00 // The main test class for TV CEC HAL. class HdmiCecTest : public ::testing::TestWithParam<std::string> { @@ -69,3 +70,8 @@ Return<int32_t> ret = hdmiCec->getCecVersion(); EXPECT_GE(ret, CEC_VERSION); } + +TEST_P(HdmiCecTest, VendorId) { + Return<uint32_t> ret = hdmiCec->getVendorId(); + EXPECT_NE(ret, INCORRECT_VENDOR_ID); +}