Merge "drm aidl vts: proper skip tests without vendor module" into android13-tests-dev am: 05f5fd842d am: de820c8d7c am: 0c7cdd0cfa

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2379389

Change-Id: I9928cdfe0d423ba89a39949b94e507155000ef23
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Shubhangi Pawar
2023-01-26 06:04:09 +00:00
committed by Automerger Merge Worker

View File

@@ -187,6 +187,12 @@ void DrmHalTest::SetUp() {
auto svc = GetParamService();
const string drmInstance = HalFullName(kDrmIface, svc);
if (!vendorModule) {
ASSERT_NE(drmInstance, HalFullName(kDrmIface, "widevine")) << "Widevine requires vendor module.";
ASSERT_NE(drmInstance, HalFullName(kDrmIface, "clearkey")) << "Clearkey requires vendor module.";
GTEST_SKIP() << "No vendor module installed";
}
if (drmInstance.find("IDrmFactory") != std::string::npos) {
drmFactory = IDrmFactory::fromBinder(
::ndk::SpAIBinder(AServiceManager_waitForService(drmInstance.c_str())));
@@ -195,12 +201,6 @@ void DrmHalTest::SetUp() {
cryptoPlugin = createCryptoPlugin();
}
if (!vendorModule) {
ASSERT_NE(drmInstance, "widevine") << "Widevine requires vendor module.";
ASSERT_NE(drmInstance, "clearkey") << "Clearkey requires vendor module.";
GTEST_SKIP() << "No vendor module installed";
}
ASSERT_EQ(HalBaseName(drmInstance), vendorModule->getServiceName());
contentConfigurations = vendorModule->getContentConfigurations();