Commit Graph

1698 Commits

Author SHA1 Message Date
Rahul Frias
ae28e74144 am 496bfc87: Correct android release version number in tests
* commit '496bfc87b31fc31d4a04542cb1877d7be28ec911':
  Correct android release version number in tests
2015-08-05 07:11:32 +00:00
Rahul Frias
496bfc87b3 Correct android release version number in tests
[ Merge of http://go/wv/15293 ]

b/22916797

Change-Id: I120bae5e656c6d766f8ab7a21d578f17ff22d37a
2015-08-04 14:59:08 -07:00
Jeff Tinker
4f970c721c Merge "Make widevine sample player assets clickable on TVs" 2015-07-24 05:09:25 +00:00
Jeff Tinker
82c10da53a Make widevine sample player assets clickable on TVs
bug: 22489517

Change-Id: Ibcc9ea222a3ba04ead12b0fd6eb9049ce5be28d1
2015-07-23 21:52:01 +00:00
Rahul Frias
bd8b7f231a am 93f5f1cd: am bf100619: Merge "Verification of client identification in Secure Stop messages" into mnc-dev
* commit '93f5f1cda8986f0455d400bcae348ef2cd024b32':
  Verification of client identification in Secure Stop messages
2015-07-14 16:52:42 +00:00
Rahul Frias
93f5f1cda8 am bf100619: Merge "Verification of client identification in Secure Stop messages" into mnc-dev
* commit 'bf10061929aebb2ddf088b4daad42458ac8eefa4':
  Verification of client identification in Secure Stop messages
2015-07-14 16:30:22 +00:00
Rahul Frias
bf10061929 Merge "Verification of client identification in Secure Stop messages" into mnc-dev 2015-07-13 18:45:18 +00:00
Jeff Tinker
a87caa88bd am 59a9f8e3: am 47014df2: Return specific error code when decrypting on invalid session
* commit '59a9f8e37eb723780d6f463531a07d00a8b753b2':
  Return specific error code when decrypting on invalid session
2015-07-08 02:07:29 +00:00
Jeff Tinker
59a9f8e37e am 47014df2: Return specific error code when decrypting on invalid session
* commit '47014df2e8b8a3bc350a170ae3d15230332a505a':
  Return specific error code when decrypting on invalid session
2015-07-08 01:37:28 +00:00
Jeff Tinker
47014df2e8 Return specific error code when decrypting on invalid session
bug: 22235465
Change-Id: I7b4d47d86d35270291ced02112a96800ba03ed1a
2015-07-07 08:55:22 -07:00
Rahul Frias
12ccd847cf Verification of client identification in Secure Stop messages
[ Merge of http://go/wvgerrit/14993 ]

b/22047007

Change-Id: I8f3de72f0746fad4a2382a826cb301408398a4c4
2015-07-06 15:23:24 -07:00
Fred Gylys-Colwell
b1ddcf1495 am 03f523ca: am e280ba6c: Merge "Add Short Key ID Test" into mnc-dev
* commit '03f523cab014cc3169d603d289dd51f9ca9ee71e':
  Add Short Key ID Test
2015-07-04 08:04:40 +00:00
Kyle Alexander
c6ff29c6c3 am bc14139f: am 86adf4a2: Add secure VP9 content to GTS content list.
* commit 'bc14139fc02caad4ded8faa4dbbf7697e50924f2':
  Add secure VP9 content to GTS content list.
2015-07-04 08:04:40 +00:00
Fred Gylys-Colwell
03f523cab0 am e280ba6c: Merge "Add Short Key ID Test" into mnc-dev
* commit 'e280ba6c4149f4631df9f7e301b81c44aa228dc6':
  Add Short Key ID Test
2015-07-02 01:09:42 +00:00
Kyle Alexander
bc14139fc0 am 86adf4a2: Add secure VP9 content to GTS content list.
* commit '86adf4a25ce0f1ead40c9877ff981d30f5c9cbc2':
  Add secure VP9 content to GTS content list.
2015-07-02 01:09:41 +00:00
Fred Gylys-Colwell
e280ba6c41 Merge "Add Short Key ID Test" into mnc-dev 2015-07-01 22:50:10 +00:00
Fred Gylys-Colwell
4b3c02267a Add Short Key ID Test
Merge from widevine repo of http://go/wvgerrit/14970

Even if devices cannot handle key ids with different lengths in the
same license, they should still handle keys with a shorter key id.

This is a partial fix for:
bug: 21935358

Change-Id: Ibc84f0b5d7d9bc5d24a2081f0581a2b256e51f44
2015-07-01 13:21:21 -07:00
Kyle Alexander
86adf4a25c Add secure VP9 content to GTS content list.
ExoPlayerDemo build is based on the demo-debug.apk built from:
google3/third_party/java_src/android_libs/exoplayer

Supporting cl in google3: cl/97176187

Bug: 19571315
Change-Id: I611e9e5f363ecfeb66e4813c1f6939abbf855d09
2015-07-01 10:02:49 -07:00
Fred Gylys-Colwell
84efb88c28 Do not depend on wvcdm::Clock in OEC tests
Merge from widevine repo of http://go/wvgerrit/14669

This fixes two timing-related test failures when running the OEMCrypto
tests in the CE test suite.  The failures were caused by the TestHost
Clock implementation, which is a fake.  Since there is no clear reason
for OEMCrypto/mock to rely on wvcdm::Clock, this replaces it with
time(NULL).  Incidentally, this also makes the time source consistent
with the tests themselves, which were already using time(NULL).

Change-Id: I0fad51f14d45f99526146da05b757d4ba7b6aba0
2015-06-29 18:17:15 -07:00
Fred Gylys-Colwell
54bb6ea3c8 Add Comment to DecryptWithNearWrap
Merge from widevine repo of http://go/wvgerrit/14933

There was some confusion what the test DecryptWithNearWrap is
testing.  This CL adds some expanatory comments.

Change-Id: I9228830d81c089f80e0878f647e7e94c3e49896a
2015-06-29 18:16:21 -07:00
Rahul Frias
fe4288c5d5 am 49022130: am 460d24b1: Merge "Return Client Identification information in Secure Stop" into mnc-dev
* commit '49022130db6ee0b644a90166a1ce4c6f345a4833':
  Return Client Identification information in Secure Stop
2015-06-29 23:39:29 +00:00
Rahul Frias
951c82bd9d am 5bda8071: am 6e2cc1a3: Avoid multiple deletions of a usage entry
* commit '5bda8071614eeffedc743f38586e503effd38d5b':
  Avoid multiple deletions of a usage entry
2015-06-29 23:39:29 +00:00
Rahul Frias
49022130db am 460d24b1: Merge "Return Client Identification information in Secure Stop" into mnc-dev
* commit '460d24b135bc601f712b432ba915bd2009fe230a':
  Return Client Identification information in Secure Stop
2015-06-29 23:26:02 +00:00
Rahul Frias
5bda807161 am 6e2cc1a3: Avoid multiple deletions of a usage entry
* commit '6e2cc1a3ed53d2fed2ad87edbcda4fac37313fb0':
  Avoid multiple deletions of a usage entry
2015-06-29 23:26:01 +00:00
Rahul Frias
460d24b135 Merge "Return Client Identification information in Secure Stop" into mnc-dev 2015-06-29 22:59:47 +00:00
Rahul Frias
6e2cc1a3ed Avoid multiple deletions of a usage entry
[ Merge of http://go/wvgerrit/14900 ]

When releasing a license, usage entries were being released twice with
both OEMCrypto_DeleteUsageEntry and OEMCrypto_ForceDeleteUsageEntry being
called. The second call would always fail because the usage information had
already been released. The CdmSession::DeleteLicense methods will now only
handles deletion of license metadata and leave deletion of usage entries to
the CdmLicense class.
b/22097805

Change-Id: Ic55764d5357043d136e7d88583f709a4ceea3e64
2015-06-29 14:47:24 -07:00
Rahul Frias
d220d41425 Return Client Identification information in Secure Stop
[ Merge of http://go/wvgerrit/14920 ]

The renew_with_client_id field was not being correctly set when licenses
were being restored for usage reporting.

b/22047007

Change-Id: Ib769431b1e49bb498f53d8153a970b6c0a2776d2
2015-06-29 14:06:17 -07:00
Chad Jones
03be1e6f79 am 756fedb6: am 53d9ade2: Merge "Revert "Add XtsMediaTestCases.apk to google-tests.zip"" into mnc-dev
* commit '756fedb6c593e6b83ae2430994ce18b71e99c42a':
  Revert "Add XtsMediaTestCases.apk to google-tests.zip"
2015-06-26 16:11:02 +00:00
Chad Jones
756fedb6c5 am 53d9ade2: Merge "Revert "Add XtsMediaTestCases.apk to google-tests.zip"" into mnc-dev
* commit '53d9ade2ef834a562b191aaf2d291e9dfec94ced':
  Revert "Add XtsMediaTestCases.apk to google-tests.zip"
2015-06-26 15:59:40 +00:00
Chad Jones
53d9ade2ef Merge "Revert "Add XtsMediaTestCases.apk to google-tests.zip"" into mnc-dev 2015-06-26 15:34:45 +00:00
Chad Jones
c72407657a Revert "Add XtsMediaTestCases.apk to google-tests.zip"
This reverts commit fe71d17236.

Change-Id: I8119b307b7fa4dd0a9971e37c6c004de10400233
2015-06-26 15:33:56 +00:00
Kyle Alexander
c32e936f59 am 090bb6f2: am 7c1c5f77: Merge "Add XtsMediaTestCases.apk to google-tests.zip" into mnc-dev
* commit '090bb6f2f6ef6a5a08c4c1b1bd89d1cf07bffcfa':
  Add XtsMediaTestCases.apk to google-tests.zip
2015-06-25 22:29:04 +00:00
Kyle Alexander
090bb6f2f6 am 7c1c5f77: Merge "Add XtsMediaTestCases.apk to google-tests.zip" into mnc-dev
* commit '7c1c5f77cc33b2678919d250733356f1c0796ed4':
  Add XtsMediaTestCases.apk to google-tests.zip
2015-06-25 22:14:55 +00:00
Kyle Alexander
7c1c5f77cc Merge "Add XtsMediaTestCases.apk to google-tests.zip" into mnc-dev 2015-06-25 21:52:57 +00:00
Kyle Alexander
fe71d17236 Add XtsMediaTestCases.apk to google-tests.zip
Need to add our Xts Media tests to the test package, so that we can
execute those tests with our nightly regression.

Bug: 22094009
Change-Id: I7e7ed8bf5f6edb905832495bea6347f97b6c5894
2015-06-25 12:22:36 -07:00
Rahul Frias
1b8049a88a am d58ac809: am 57eb7cb6: Merge "Add unit tests for offline licenses without session usage" into mnc-dev
* commit 'd58ac8094fcc679795efd6e85dee8116d978d8d2':
  Add unit tests for offline licenses without session usage
2015-06-25 15:21:50 +00:00
Rahul Frias
d58ac8094f am 57eb7cb6: Merge "Add unit tests for offline licenses without session usage" into mnc-dev
* commit '57eb7cb6ba415634aa90fbb2d7b63561f1b6416d':
  Add unit tests for offline licenses without session usage
2015-06-25 15:12:30 +00:00
Rahul Frias
57eb7cb6ba Merge "Add unit tests for offline licenses without session usage" into mnc-dev 2015-06-25 06:40:21 +00:00
Fred Gylys-Colwell
18dac6dd6c am 3f34e492: am 66603102: Make MaxSessionsOpenCloseAPI10 More Lenient
* commit '3f34e492b953234f1e2eba9f63f9bf93448154e8':
  Make MaxSessionsOpenCloseAPI10 More Lenient
2015-06-25 05:36:04 +00:00
Fred Gylys-Colwell
3f34e492b9 am 66603102: Make MaxSessionsOpenCloseAPI10 More Lenient
* commit '666031026ca8e85a87b90922e4af1b8b633b3aac':
  Make MaxSessionsOpenCloseAPI10 More Lenient
2015-06-25 05:20:54 +00:00
Fred Gylys-Colwell
666031026c Make MaxSessionsOpenCloseAPI10 More Lenient
Merge from widevine repo of http://go/wvgerrit/14870

OEMCrypto_GetMaxNumberOfSessions is not required to return a hard
limit for the number of sessions.  This CL adjusts the test to verify
we can open within 5% of the maximum number of sessions.

bug: 22029687
Change-Id: I6e72e39338cead8d547cdb194a32fb7e7dc53037
2015-06-24 17:49:06 -07:00
Tim Kilbourn
f41862dd80 am c74222f5: Rename the internal copy of gmock.
* commit 'c74222f52366993e49058b18d2deba1e07218ba7':
  Rename the internal copy of gmock.
2015-06-23 23:18:26 +00:00
Tim Kilbourn
c74222f523 Rename the internal copy of gmock.
The external/gmock project does not include the patches needed for
widevine, so renaming the internal copy allows both to coexist in the
build system.

(cherry-pick of 5b830f19b6 with conflict.)

Change-Id: I77c956db30921afffe31d11e1cd2d99541925f35
2015-06-23 16:00:47 -07:00
Rahul Frias
f5f2e826f2 Add unit tests for offline licenses without session usage
[ Merge of http://go/wvgerrit/14824 ]

OEMCrypto v9 added support for secure usage reporting with the help of
a session usage table. This was enabled through the replay control bits
in the key control block. It was expected that streaming licenses
would enable the nonce required bit, while offline licenses would
enable session usage table entry flag. There are certain cases
where content providers would prefer not to enable the flag for offline
licenses and this test verifies that this scenario works.

b/17514500

Change-Id: Icd1bea8cec2fd52be2be249424891ce1755d5f25
2015-06-22 15:38:33 -07:00
John "Juce" Bruce
91f3e16c22 am 9fcaf2c6: Merge "Update Widevine Classic to 4.5.0.10139" into mnc-dev
* commit '9fcaf2c6ecb6ffc897cc535f6d8c8bd8ede273fa':
  Update Widevine Classic to 4.5.0.10139
2015-06-22 19:36:50 +00:00
John "Juce" Bruce
9fcaf2c6ec Merge "Update Widevine Classic to 4.5.0.10139" into mnc-dev 2015-06-22 19:10:57 +00:00
Rahul Frias
a180715f45 am 9aca14e4: Merge "Allow interspersed provisioning attempts to succeed." into mnc-dev
* commit '9aca14e4fe09d9b70d3801a49c263685d1a7ad06':
  Allow interspersed provisioning attempts to succeed.
2015-06-20 05:43:41 +00:00
John "Juce" Bruce
5bd0e73b3e resolved conflicts for merge of 256dd1a5 to master
Change-Id: Iffef557a3d9d3df321b5ae38e891d5a2a3e88e70
2015-06-19 19:49:36 -07:00
Rahul Frias
9aca14e4fe Merge "Allow interspersed provisioning attempts to succeed." into mnc-dev 2015-06-20 01:06:01 +00:00
John "Juce" Bruce
88c3e74f08 am da8e2beb: Merge "Do Not Use GNU-Style Hashing on MIPS" into mnc-dev
* commit 'da8e2beb28c9f38393b76cbdbd1bd237677f12ce':
  Do Not Use GNU-Style Hashing on MIPS
2015-06-20 01:00:58 +00:00