Descriptionscheduler: Always create a real scheduler in unit tests
Previously we would create a dummy scheduler in any test which uses
TestBlinkWebUnitTestSupport without first initializing a message loop.
This causes problems because the dummy scheduler ignores all tasks it
is given.
This patch makes the tests more realistic by always creating a real
renderer scheduler regardless of whether we have a message loop or not.
This is achieved by lazily binding the scheduler to the message loop
the first time it is needed.
Longer term we would like to refactor these test suites to ensure Blink
always has a valid message loop when it is initialized, but this will
involve rewiring several tests.
BUG=463143, 495659
Committed: https://crrev.com/087644f1eab41927823a1a2fc2df08bd4e10fe18
Cr-Commit-Position: refs/heads/master@{#332685}
Committed: https://crrev.com/ae456cc035b8bb76c11d47f28b2efab3dea0c26d
Cr-Commit-Position: refs/heads/master@{#332818}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Open bug about fixing the tests. #Patch Set 3 : Alex's comments. #Patch Set 4 : Windows build fix. #
Total comments: 4
Patch Set 5 : Split into test only module. #Patch Set 6 : Rebased. #Patch Set 7 : Fix windows build. #Patch Set 8 : Really fix the windows build. #Patch Set 9 : DEPS typo. #Patch Set 10 : Build a static library for GN too. #Patch Set 11 : Remember the message loop binding. #
Messages
Total messages: 38 (17 generated)
|