Fix ThreadLocalStorageTest,UseTLSDuringDestruction to work on Fuchsia.

The original version of the test used base::SimpleThread, which uses Chrome TLS
behind the scenes. This ends up tickling a difference between Fuchsia and other
POSIX implementations with respect to the order in which pthread keys are
destroyed.

The new version of the test uses pthread APIs to avoid this, which fixes the
bug.

Change-Id: I8eaf3230a31f96f9ee03afa88a1b7ee8b770bb42
BUG: 828897, 825218
Reviewed-on: https://chromium-review.googlesource.com/996038
Reviewed-by: Erik Chen <erikchen@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Wez <wez@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548204}

CrOS-Libchrome-Original-Commit: 236ec81120c5e950fa80ec50e428aeb787af803d
1 file changed
tree: 64a9bc1632c8b8ec0891c8738f91fc7d9b7b7665
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/