commit | f0527a9b0c9321be0b6fd9f0fe118d4c01005e22 | [log] [tgz] |
---|---|---|
author | Alex Clarke <[email protected]> | Wed Jan 23 10:43:25 2019 |
committer | Commit Bot <[email protected]> | Wed Jan 23 10:43:25 2019 |
tree | 189947354a7643c0e747b0658c2ede75b7d97901 | |
parent | 9a9ccbc08949a7936b803e58117a57cc26b46de8 [diff] |
Make it easier to use traits with TestBrowserThreadBundle All those default values made TestBrowserThreadBundle's constructor (and ChromeRenderViewHostTestHarness and BrowserWithTestWindowTest) awkward to use and maintain (imagine if we added another trait to ScopedTaskEnvironment). This patch changes TestBrowserThreadBundle's main constructor to take zero or more traits to configure the TestBrowserThreadBundle and the underlying ScopedTaskEnvironment. Note there is a 20kb test binary size hit which we are happy to take in favour of readability for tests but that this paradigm should be used with care on non-constexpr types in prod. A number of clients of TestBrowserThreadBundle are also refactored to take advantage of this. Change-Id: I2bdb3b8c382f1389058508f870815eddb500726d Bug: 881041 Reviewed-on: https://chromium-review.googlesource.com/c/1394377 Commit-Queue: Alex Clarke <[email protected]> Reviewed-by: Ken Rockot <[email protected]> Reviewed-by: Naoki Fukino <[email protected]> Reviewed-by: Scott Violet <[email protected]> Reviewed-by: Gabriel Charette <[email protected]> Reviewed-by: François Doray <[email protected]> Cr-Commit-Position: refs/heads/master@{#625158}
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 .