diff --git a/libwvdrmengine/cdm/core/test/duration_use_case_test.cpp b/libwvdrmengine/cdm/core/test/duration_use_case_test.cpp index 7346e510..e9c003ef 100644 --- a/libwvdrmengine/cdm/core/test/duration_use_case_test.cpp +++ b/libwvdrmengine/cdm/core/test/duration_use_case_test.cpp @@ -128,6 +128,12 @@ class CdmDurationTest : public WvCdmTestBaseWithEngine, // appended to it. void SetUp() override { WvCdmTestBase::SetUp(); + // TODO: b/305093063 - Remove when Drm Reprovisioning server is implemented. + if (wvoec::global_features.provisioning_method == + OEMCrypto_DrmReprovisioning) { + GTEST_SKIP() + << "Skipping until Drm Reprovisioning server support is implemented."; + } EnsureProvisioned(); license_holder_.set_can_persist(GetParam()); ASSERT_NO_FATAL_FAILURE(license_holder_.OpenSession()); @@ -152,6 +158,14 @@ class CdmDurationTest : public WvCdmTestBaseWithEngine, } void TearDown() override { + // TODO: b/305093063 - Remove when Drm Reprovisioning server is implemented. + if (wvoec::global_features.provisioning_method == + OEMCrypto_DrmReprovisioning) { + // Since the session was not opened above. We can skip closing the session + // here too. This should be removed when EnsureProvisioning no longer + // skips this test. + return; + } license_holder_.CloseSession(); // Log the time used in this test suite. When this comment was written, // these tests took over three hours. If we want to improve that, we need to