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. Review URL: https://codereview.chromium.org/563193002 Cr-Commit-Position: refs/heads/master@{#294867}
Showing
Please register or sign in to comment