DescriptionCDM 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
Messages
Total messages: 9 (2 generated)
|