commit | 523f7fcdbbe0ff85549f13f4e13d4ea63ea9c398 | [log] [tgz] |
---|---|---|
author | Evan Stade <estade@chromium.org> | Sat Mar 02 19:20:51 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Mar 02 19:20:51 2019 |
tree | c2b97fcd13af8f23612ac2f348f7af281b7bac90 | |
parent | 7cdfe3acfe05dc858c5b150a5d53fe46cda0d753 [diff] |
Extract PowerManagerClient from DBusThreadManager Tests can now use [Fake]PowerManagerClient::Get() instead of creating their own FakePowerManagerClient. The presence or absence of the system bus is used to determine whether to make FakePowerManagerClient or PowerManagerClientImpl. Many tests are updated. Most of the more substantive-looking changes are just refactoring code to do more setup/teardown in SetUp and TearDown instead of in ctor/dtor, which is necessary since we're enforcing that PowerManagerClient is a singleton. Bug: 647367,644348 Change-Id: I42da97755ae839d7c98bcae2e5d02c7341c38580 Reviewed-on: https://chromium-review.googlesource.com/c/1484852 Commit-Queue: Evan Stade <estade@chromium.org> Reviewed-by: Karan Bhatia <karandeepb@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: Sergey Poromov <poromov@chromium.org> Reviewed-by: Steven Bennetts <stevenjb@chromium.org> Cr-Commit-Position: refs/heads/master@{#637139}
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 .