test fix
This commit is contained in:
1 parent
317025087d
commit
a049147149
3 files changed
+9
-7
No files matched your search
@@ -28,7 +28,7 @@ namespace Tests
|
||||
"canRenew": false
|
||||
})
|
||||
m.assertEqual(parsed.license.ToHexString(), "010203FBFF")
|
||||
m.assertEqual(parsed.payload, { "responseContext": responseContext, "status": "LICENSE_STATUS_OK", "authorizedFormats": authorizedFormats, "canRenew": false })
|
||||
m.assertEqual(FormatJson(parsed.payload), FormatJson({ "responseContext": responseContext, "status": "LICENSE_STATUS_OK", "authorizedFormats": authorizedFormats, "canRenew": false }))
|
||||
end function
|
||||
|
||||
@it("a license that decodes to no bytes is an error, with the response as sent")
|
||||
|
||||
@@ -303,7 +303,7 @@ namespace Tests
|
||||
requests = { "sent": 2, "responses": [{ "error": "timeout" }, { "payload": { "status": "LICENSE_STATUS_OK", "authorizedFormats": [{ "trackType": "DRM_TRACK_TYPE_SD", "keyId": "a" }] } }] }
|
||||
VideoLoadHandoff.Write(DRM_LICENSE_REQUESTS_PATH, "load1", requests)
|
||||
summary = m.SendAt(1000)
|
||||
m.assertEqual(summary.drm_license_requests, requests)
|
||||
m.assertEqual(FormatJson(summary.drm_license_requests), FormatJson(requests))
|
||||
m.assertEqual(summary.widevine_security_level, CreateObject("roDeviceInfo").GetDrmInfoEx().Widevine.securityLevel)
|
||||
m.assertFalse(m.SendAt(2000).DoesExist("drm_license_requests"), "read once")
|
||||
end function
|
||||
|
||||
Reference in new issue
Block a user