OSDN Git Service

Fix VtsHalDrmV1_0Target clearkey tests.
authorEdwin Wong <edwinwong@google.com>
Fri, 29 Sep 2017 22:58:37 +0000 (15:58 -0700)
committerEdwin Wong <edwinwong@google.com>
Wed, 4 Oct 2017 03:31:27 +0000 (03:31 +0000)
commit48311a8c274e54d27fb804204353bc1dc0a11ef7
treefec5492568c23b330bcaa76ba44b45c8ff82e7d2
parent072811f5fbfcb98b31b9106f69683c04bbbb865b
Fix VtsHalDrmV1_0Target clearkey tests.

1. Fix the following issues:
  - queryKeyStatus is now implemented, do not return
    ERROR_DRM_CANNOT_HANDLE anymore
  - expectedKeyRequest and knownKeyResponse should use
    '-' and '_' instead of '+' and '/' for base64Url encode;
    one uint8_t change from 0x2b to 0x2d for each vector

2. Add tests to create clearkey drm and crypto plugin using
both common pssh box format system ID and clearkey scheme
UUID.

Test: Vts test on Marlin and Taimen
  adb shell /data/nativetest/VtsHalDrmV1_0TargetTest/
  VtsHalDrmV1_0TargetTest

Test: Cts ClearKeyTest on Marlin and Taimen
  ANDROIOP= ./android-cts/tools/cts-tradefed run cts
  -m CtsMediaTestCases
  --test android.media.cts.ClearKeySystemTest

Test: ClearKey plugin unit tests
  adb shell LD_LIBRARY_PATH="/vendor/lib/mediadrm"
  /data/nativetest/ClearKeyDrmUnitTest/ClearKeyDrmUnitTest

Test: netflix and Play Movies & TV for sanity check

bug: 66327050
Change-Id: Icfbe715cf246a7c5253d5f104d0fd446618b18bd
drm/1.0/vts/functional/drm_hal_clearkey_test.cpp