Migrate PasswordCSVWriter test off of CSVReader
Currently the PasswordCSVWriter test uses CSVReader to check serializations of passwords into CSV, the result of the tested code. However, CSVReader will be soon removed together with its main client, the PasswordCSVReader. This CL replaces CSVReader use in PasswordCSVWriter test with the replacement of PasswordCSVReader: the CSVPasswordSequence. This has an additional benefit: CSVPasswordSequence both decodes CSV and constructs a PasswordForm out of it, unlike CSVReader, which only does the former. Therefore, the test must no longer include implementation details of PasswordCSVWriter, and can instead just verify that PasswordCSVWriter is the reverse operation of CSVPasswordSequence. Bug: 934326 Change-Id: If010b42c7c46dd1ece8f6ef96e85eddbd49d09e5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1920122 Commit-Queue: Vaclav Brozek <vabr@chromium.org> Reviewed-by:Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#717641}
Showing
Please register or sign in to comment