commit | 43847232a20919639d2f38fcbf248d777d6b8a56 | [log] [tgz] |
---|---|---|
author | Gabriel Charette <gab@chromium.org> | Fri Nov 16 14:42:38 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Nov 16 14:42:38 2018 |
tree | 07a698797ca2d7242d8721a8052b0d58b93bf547 | |
parent | 76c35f614ce131b4ac257f8c15dd45760bf21bb5 [diff] |
[ScopedTaskEnvironment] Enable MTA in unit test thread pools This is a prereq for https://chromium-review.googlesource.com/c/chromium/src/+/1338221 without this change, the MTA assertions fail in unit tests even though they are correct in prod. This change matches the browser process' params @ content/browser/startup_helper.cc It has the adverse side-effect however of enabling the MTA in renderer unit tests but the downside there is not as bad as it just means some COM asserts may pass in unit tests where they wouldn't in integration tests or prod. I think that's okay because unit tests are already generally very loose on allowing I/O, waits, etc. Misuse will still be caught, but that's just not unit tests' main role. R=fdoray@chromium.org Bug: 708584, 707362 Change-Id: I68c5e41c24396885af43427d09c11e1e84ecea43 Reviewed-on: https://chromium-review.googlesource.com/c/1338305 Commit-Queue: Gabriel Charette <gab@chromium.org> Reviewed-by: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#608772}
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 .