Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Issue 93243003: Add CDM FileIO tests. (Closed)

Created:
7 years ago by xhwang
Modified:
7 years ago
Reviewers:
ddorwin
CC:
chromium-reviews, yusukes+watch_chromium.org, raymes+watch_chromium.org, feature-media-reviews_chromium.org, teravest+watch_chromium.org, yzshen+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, binji, ihf+watch_chromium.org
Visibility:
Public.

Description

Add CDM FileIO tests. - Add CdmFileIOTest, which tests CdmFileIO in ClearKeyCdm. - Update EncryptedMediaTest to check the result of CdmFileIOTest. BUG=324134 TEST=Tests added pass on Linux. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242027

Patch Set 1 #

Total comments: 78

Patch Set 2 : rebase only #

Patch Set 3 : more rebase cleanup #

Patch Set 4 : comments addressed #

Total comments: 33

Patch Set 5 : comments addressed; adds more tests; fixes impl #

Total comments: 59

Patch Set 6 : comments addressed #

Total comments: 10

Patch Set 7 : rebase only #

Patch Set 8 : rebase only #

Patch Set 9 : comments addressed #

Patch Set 10 : rebase on 102503002 #

Patch Set 11 : rebase only #

Patch Set 12 : rebase only #

Patch Set 13 : rebase only #

Patch Set 14 : not to use base::MessageLoopProxy::current() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+719 lines, -19 lines) Patch
M chrome/browser/media/encrypted_media_browsertest.cc View 1 2 3 4 4 chunks +13 lines, -2 lines 0 comments Download
M chrome/renderer/media/chrome_key_systems.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/test/data/media/encrypted_media_utils.js View 1 2 3 4 3 chunks +45 lines, -4 lines 0 comments Download
A media/cdm/ppapi/cdm_file_io_test.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +157 lines, -0 lines 0 comments Download
A media/cdm/ppapi/cdm_file_io_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +437 lines, -0 lines 0 comments Download
M media/cdm/ppapi/clear_key_cdm.h View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -2 lines 0 comments Download
M media/cdm/ppapi/clear_key_cdm.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +42 lines, -7 lines 0 comments Download
M media/media_cdm.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
xhwang
There are still a lot to be done. But I'd like you to take a ...
7 years ago (2013-11-28 00:47:24 UTC) #1
ddorwin
Thanks. https://codereview.chromium.org/93243003/diff/1/chrome/test/data/media/encrypted_media_utils.js File chrome/test/data/media/encrypted_media_utils.js (right): https://codereview.chromium.org/93243003/diff/1/chrome/test/data/media/encrypted_media_utils.js#newcode26 chrome/test/data/media/encrypted_media_utils.js:26: for (var i = 0; i < prefix.length; ...
7 years ago (2013-12-04 05:27:03 UTC) #2
xhwang
rebase only
7 years ago (2013-12-09 21:42:09 UTC) #3
xhwang
more rebase cleanup
7 years ago (2013-12-09 22:00:07 UTC) #4
xhwang
comments addressed
7 years ago (2013-12-10 01:19:55 UTC) #5
xhwang
Comments resolved. I'll start looking at the TODO's in the CL description. I hope to ...
7 years ago (2013-12-10 01:24:25 UTC) #6
ddorwin
https://codereview.chromium.org/93243003/diff/1/chrome/test/data/media/encrypted_media_utils.js File chrome/test/data/media/encrypted_media_utils.js (right): https://codereview.chromium.org/93243003/diff/1/chrome/test/data/media/encrypted_media_utils.js#newcode149 chrome/test/data/media/encrypted_media_utils.js:149: return String.fromCharCode(e.message[result_index]) == 1; On 2013/12/10 01:24:25, xhwang wrote: ...
7 years ago (2013-12-11 21:16:16 UTC) #7
xhwang
comments addressed; adds more tests; fixes impl
7 years ago (2013-12-13 02:39:58 UTC) #8
xhwang
Comments addressed. Also I fixed some implementation error and added tests. In this CL, the ...
7 years ago (2013-12-13 02:51:47 UTC) #9
xhwang
https://codereview.chromium.org/93243003/diff/60001/media/cdm/ppapi/cdm_file_io_test.cc File media/cdm/ppapi/cdm_file_io_test.cc (right): https://codereview.chromium.org/93243003/diff/60001/media/cdm/ppapi/cdm_file_io_test.cc#newcode23 media/cdm/ppapi/cdm_file_io_test.cc:23: // TODO(xhwang): Add tests that test multiple reads (needs ...
7 years ago (2013-12-13 05:03:06 UTC) #10
ddorwin
I still need to review the tests .cc file. https://codereview.chromium.org/93243003/diff/80001/media/cdm/ppapi/cdm_adapter.h File media/cdm/ppapi/cdm_adapter.h (right): https://codereview.chromium.org/93243003/diff/80001/media/cdm/ppapi/cdm_adapter.h#newcode105 media/cdm/ppapi/cdm_adapter.h:105: ...
7 years ago (2013-12-14 20:44:04 UTC) #11
ddorwin
https://codereview.chromium.org/93243003/diff/80001/media/cdm/ppapi/cdm_file_io_test.cc File media/cdm/ppapi/cdm_file_io_test.cc (right): https://codereview.chromium.org/93243003/diff/80001/media/cdm/ppapi/cdm_file_io_test.cc#newcode13 media/cdm/ppapi/cdm_file_io_test.cc:13: #define FILE_IO_DVLOG(level) DVLOG(level) << "File IO Test: " I ...
7 years ago (2013-12-16 18:16:51 UTC) #12
xhwang
comments addressed
7 years ago (2013-12-16 23:01:33 UTC) #13
xhwang
PTAL again. https://codereview.chromium.org/93243003/diff/80001/media/cdm/ppapi/cdm_adapter.h File media/cdm/ppapi/cdm_adapter.h (right): https://codereview.chromium.org/93243003/diff/80001/media/cdm/ppapi/cdm_adapter.h#newcode105 media/cdm/ppapi/cdm_adapter.h:105: virtual cdm::FileIO* CreateFileIO(cdm::FileIOClient* client) OVERRIDE; On 2013/12/14 ...
7 years ago (2013-12-16 23:04:29 UTC) #14
xhwang
rebase only
7 years ago (2013-12-16 23:29:15 UTC) #15
ddorwin
LGTM with comments https://codereview.chromium.org/93243003/diff/80001/media/cdm/ppapi/cdm_file_io_test.cc File media/cdm/ppapi/cdm_file_io_test.cc (right): https://codereview.chromium.org/93243003/diff/80001/media/cdm/ppapi/cdm_file_io_test.cc#newcode155 media/cdm/ppapi/cdm_file_io_test.cc:155: START_TEST_CASE("ReadEmptyFile") On 2013/12/16 23:04:29, xhwang wrote: ...
7 years ago (2013-12-17 00:17:03 UTC) #16
xhwang
Comments only on cdm_file_io_impl.cc https://codereview.chromium.org/93243003/diff/90001/media/cdm/ppapi/cdm_file_io_impl.cc File media/cdm/ppapi/cdm_file_io_impl.cc (right): https://codereview.chromium.org/93243003/diff/90001/media/cdm/ppapi/cdm_file_io_impl.cc#newcode349 media/cdm/ppapi/cdm_file_io_impl.cc:349: // For *_WHILE_IN_USE errors, do ...
7 years ago (2013-12-17 00:31:29 UTC) #17
xhwang
rebase only
7 years ago (2013-12-17 07:28:20 UTC) #18
xhwang
comments addressed
7 years ago (2013-12-17 18:24:23 UTC) #19
xhwang
Now I use a stack to store opened FileIO objects. Thanks for the suggestion! https://codereview.chromium.org/93243003/diff/90001/media/cdm/ppapi/cdm_file_io_test.h ...
7 years ago (2013-12-17 18:25:02 UTC) #20
ddorwin
lgtm
7 years ago (2013-12-17 19:47:10 UTC) #21
xhwang
rebase only
7 years ago (2013-12-19 07:23:02 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/93243003/190001
7 years ago (2013-12-19 07:23:40 UTC) #23
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=207028
7 years ago (2013-12-19 07:41:44 UTC) #24
xhwang
rebase only
7 years ago (2013-12-19 08:48:00 UTC) #25
xhwang
rebase only
7 years ago (2013-12-19 09:01:47 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/93243003/230001
7 years ago (2013-12-19 09:14:07 UTC) #27
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=207086
7 years ago (2013-12-19 11:54:02 UTC) #28
xhwang
not to use base::MessageLoopProxy::current()
7 years ago (2013-12-19 22:57:34 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/93243003/250001
7 years ago (2013-12-19 23:44:15 UTC) #30
commit-bot: I haz the power
7 years ago (2013-12-20 07:26:22 UTC) #31
Message was sent while issue was closed.
Change committed as 242027

Powered by Google App Engine
This is Rietveld 408576698