commit | 1ef212bd9089eeef23b2e4692ff8a9ebed09c4ee | [log] [tgz] |
---|---|---|
author | Gabriel Charette <gab@chromium.org> | Sun Dec 03 12:47:21 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Sun Dec 03 12:47:21 2017 |
tree | d40c9bb96b4811641ffd3a92b851ea8e8e8afd20 | |
parent | 46c535d207b3648ddefdf3f9a588b69ac5ef31f2 [diff] |
Introduce RunLoop::OverrideDelegateForCurrentThreadForTesting(). This is a prerequisite to enable ScopedTaskEnvironment MOCK_TIME on top of any RunLoop::Delegate (i.e. on top of MessageLoopForUI/ForIO). This CL also removes RunLoop::Delegate::Client::IsNested() as it was a mere shortcut for its TLS complement and had to switch to using TLS itself to remain valid in override scenarios... Ran base_perftests.exe --gtest_filter=*MessageLoop* in static/Release and things look the same. Bug: 708584 Change-Id: I143f6e6afb47de11f95702c337dbe63eb0887596 Reviewed-on: https://chromium-review.googlesource.com/784214 Commit-Queue: Gabriel Charette <gab@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#521228}
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 .