Normalize paths in GN.

Most SourceFile creation goes through SourceDir.Resolve which normalizes "." and "..". But there are a few cases that just go through the SourceFile constructor directly. Explicitly normalize those cases.

This updates the PathOutput unit test since it was written to assume SourceFiles were not normalized. This is testing escaping which is orthogonal, so I changed the test accordingly. Some changed to OutputFiles which are already considered processed and not normalized, and I just deleted another backslash case which was redundantly testing the same thing.

BUG=505816

Review URL: https://codereview.chromium.org/1214933007

Cr-Original-Commit-Position: refs/heads/master@{#336854}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 8440203c77e972d5d5289f75ead381821e0756c5
5 files changed
tree: ab67856d5e2e461f81d52b671adf53f0bf3f42fd
  1. tools/