Descriptionchromeos: power: Refactor RendererFreezer and add tests
Refactor the RendererFreezer class so that untestable code is moved into
a delegate and add unit tests. Modify FakePowerManagerClient so that it
provides more information for tests.
Also use a CancelableClosure for the asynchronous suspend readiness
callback in case we get a SuspendDone before we've had a chance to run
OnReadyForSuspend().
BUG=364339, 414396
Signed-off-by: Chirantan Ekbote <chirantan@chromium.org>
Committed: https://crrev.com/b651946eea95c8af526e4df1e06809385f8cb822
Cr-Commit-Position: refs/heads/master@{#295111}
Patch Set 1 #Patch Set 2 : add more tests #
Total comments: 10
Patch Set 3 : Address comments. #
Total comments: 6
Patch Set 4 : address comments and add new test #Patch Set 5 : fix merge conflicts #
Total comments: 1
Patch Set 6 : include base/macros.h #Messages
Total messages: 11 (2 generated)
|