commit | c343f7e919935651ecbc4bd26a837d86bab4e49c | [log] [tgz] |
---|---|---|
author | Bruce Long <brlong@microsoft.com> | Sat May 11 02:20:12 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Sat May 11 02:20:12 2019 |
tree | 7f0ad321e088a62eda4103533116acef3c81d8a2 | |
parent | d91f59f7d1351a13f0ea0038e482dc2dd2ff273e [diff] |
Update ui_base_unittests to consistently use long paths (as opposed to 8.3 paths). If a username isn't a valid 8.3 short file name (even just a lengthy name like "user with long name"), Windows will set the TMP and TEMP environment variables to be 8.3 paths: TMP=C:\Users\USERWI~1\AppData\Local\Temp TEMP=C:\Users\USERWI~1\AppData\Local\Temp base::GetTempDir internally calls ::GetTempPath, which just uses the value specified by TMP or TEMP, and so can return a short path. This behavior can make checks on whether temp files that back virtual files are actually created in the temp directory fail, because of potential mismatches between normal/long and 8.3/short filenames. The bug is fixed by adding a new Windows FileUtil method to normalize a path (internally ::GetLongPathName is used). The method is currently only used in test code so there will be no product code regressions. Bug: 957925 Change-Id: Id6310aa99a8feb86b08c84a358b571454241f46b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1592044 Commit-Queue: Bruce Long <brlong@microsoft.com> Reviewed-by: Will Harris <wfh@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Darwin Huang <huangdarwin@chromium.org> Cr-Commit-Position: refs/heads/master@{#658866}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .