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

Issue 563193002: CDM FileIOTest: Explictly test corrupted file. (Closed)

Created:
6 years, 3 months ago by xhwang
Modified:
6 years, 3 months ago
Reviewers:
ddorwin
CC:
chromium-reviews, feature-media-reviews_chromium.org, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, eme-reviews_chromium.org, teravest+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@set_length
Project:
chromium
Visibility:
Public.

Description

CDM FileIOTest: Explictly test corrupted file. Since Write() takes two (or more) steps to finish, it's possible for CdmFileIOImpl to be destructed after SetLength() is called but before WriteFile() is called. In that case, since we SetLength(data_size), we could end up with a corrupted file. This CL update FileIOTest to explictly cover this case. BUG=410630 TEST=ECKEncryptedMediaTest.FileIOTest still passes. Committed: https://crrev.com/f6b40dd68203de747ee018c8c913fe688c69e821 Cr-Commit-Position: refs/heads/master@{#294867}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -0 lines) Patch
M media/cdm/ppapi/cdm_file_io_test.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/cdm/ppapi/cdm_file_io_test.cc View 3 chunks +40 lines, -0 lines 4 comments Download

Messages

Total messages: 9 (2 generated)
xhwang
This CL is split from https://codereview.chromium.org/562063002/ PTAL
6 years, 3 months ago (2014-09-12 05:05:47 UTC) #2
ddorwin
https://codereview.chromium.org/563193002/diff/1/media/cdm/ppapi/cdm_file_io_test.cc File media/cdm/ppapi/cdm_file_io_test.cc (right): https://codereview.chromium.org/563193002/diff/1/media/cdm/ppapi/cdm_file_io_test.cc#newcode78 media/cdm/ppapi/cdm_file_io_test.cc:78: // Generate |corrupted_big_data_|. Do we really need a member ...
6 years, 3 months ago (2014-09-12 20:25:24 UTC) #3
xhwang
https://codereview.chromium.org/563193002/diff/1/media/cdm/ppapi/cdm_file_io_test.cc File media/cdm/ppapi/cdm_file_io_test.cc (right): https://codereview.chromium.org/563193002/diff/1/media/cdm/ppapi/cdm_file_io_test.cc#newcode78 media/cdm/ppapi/cdm_file_io_test.cc:78: // Generate |corrupted_big_data_|. On 2014/09/12 20:25:24, ddorwin wrote: > ...
6 years, 3 months ago (2014-09-13 01:19:30 UTC) #4
ddorwin
lgtm
6 years, 3 months ago (2014-09-13 01:21:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/563193002/1
6 years, 3 months ago (2014-09-15 18:02:18 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1) as 5564096ba6f9b171bd775b9e76052f19fc84164b
6 years, 3 months ago (2014-09-15 19:33:29 UTC) #8
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 19:37:35 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f6b40dd68203de747ee018c8c913fe688c69e821
Cr-Commit-Position: refs/heads/master@{#294867}

Powered by Google App Engine
This is Rietveld 408576698