Make FilenameUtilTest.GenerateSafeFileName independent of OS config.
This test could be sensitive to platform configuration since it relied on generating a filename extension based on a MIME type. In particular, if the platform configration associated anything other than .htm on text/html on Windows the test would fail. (Same for .html on Posix). This change refactors the test for readability, and removes its dependence on local configuration. Bug: 828954 Change-Id: Iad2b838e0f044ccdbf7eb2caf2a08d65a4dab857 Reviewed-on: https://chromium-review.googlesource.com/996354 Commit-Queue: Asanka Herath <asanka@chromium.org> Reviewed-by:Matt Menke <mmenke@chromium.org> Cr-Commit-Position: refs/heads/master@{#548548}
Showing
Please register or sign in to comment