DescriptionTask Manager: overhaul & re-enable task manager browser tests.
Fix some task manager bugs that showed up while working on these tests.
Those bugs, in brief:
- A couple of the resource managers didn't handle double-add properly,
although it is possible for this to happen in practice if the task
manager was opened after a tracked resource had been created, but
before it was connected (for each of these bugs there is now a test that
would fail without the fix).
- On Windows (which has USE_ASH=1), panel resources were being double
reported; they were tracked by both the Extension and the Panel
resource provider.
Eliminate a .gypi exclusion that caused the the taskmanager browser
tests to not even be compiled on Aura platforms.
Rewrite almost all tests to use a pattern of waiting for a row with
a particular title to appear in the task manager model, rather than
looking at indices. Substantially, the bread and butter of these tests
are now expectations of the form:
ASSERT_NO_FATAL_FAILURE(WaitForTaskManagerRows(1, MatchAnyTab()));
This pattern allows these tests to be more resilent around the behavior
of the GPU process, and hopefully will keep them from barfing the
next time we introduce a new process type.
For several of the tests, I've add new variants that show the task manager
only AFTER the resources are created. This is done because
the initial enumeration and the listening for new members
are rather distinct codepaths.
BUG=348836, 331947, 31663, 163931, 166322, 66957, 84719, 84850, 93158
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255118
Patch Set 1 #Patch Set 2 : Self-review fixes. #Patch Set 3 : Re-upload after 500's #
Total comments: 7
Patch Set 4 : Fixes from avi #Patch Set 5 : Retry upload #Messages
Total messages: 22 (0 generated)
|