Normalize line endings when generating accessibility tree dumps

We already tolerate \r characters that exist in accessibility tree dump
files, but some PDFs have been observed to produce \r characters in the
generated "actual" tree dump, which can throw off the diff. This change
normalizes line endings when generating a tree dump.

Bug: 974397
Change-Id: I40f3f78398d890ef2f3536bfb0f807c455a96dbe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1673840
Reviewed-by: Nektarios Paisios <nektar@chromium.org>
Commit-Queue: Kevin Babbitt <kbabbitt@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#672098}
1 file changed