DescriptionUseCounter: Introduce UseCounter::Observer for layout tests
This is a follow-up CL for [1]. We added some layout tests in the CL. They
assume MessagePort and UseCounter share the same IPC channel and their messages
are handled in order. However, this assumption will be untrue by MessagePort
mojofication[2] and the layout tests will be flaky.
To fix this, this CL stops assuming the message order and instead introduces a
mechanism to observe UseCounter changes.
[1] https://codereview.chromium.org/2586863002/
[2] https://codereview.chromium.org/2422793002/
BUG=376039
Review-Url: https://codereview.chromium.org/2680423006
Cr-Commit-Position: refs/heads/master@{#450241}
Committed: https://chromium.googlesource.com/chromium/src/+/452a477ff34a2af79a882b44ccc1939230c9e527
Patch Set 1 #
Total comments: 4
Patch Set 2 : address review comments #Patch Set 3 : rebase #
Total comments: 2
Patch Set 4 : instance method #Dependent Patchsets: Messages
Total messages: 30 (22 generated)
|