Move TestExtraData classes to anonymous namespace.

We were previously declaring two different classes with the name
blink::TestExtraData, which is an ODR violation. As it happens,
their implementations compiled to the same machine code, which
allowed the tests to pass in most normal circumstances. However,
the ODR violation causes test failures in CFI mode (e.g. [1]) as a
result of stricter type checking. The fix is to move both classes to
an anonymous namespace which makes them internal to their TUs.

[1] https://build.chromium.org/p/chromium.fyi/builders/CFI%20Linux/builds/5924/steps/webkit_unit_tests/logs/WebURLResponseTest.ExtraData

BUG=464797
R=thakis@chromium.org

Review-Url: https://codereview.chromium.org/2119683002
Cr-Commit-Position: refs/heads/master@{#403338}
2 files changed