Chromium Code Reviews
Descriptionmash: Prerequisites for removing ShelfDelegate.
This CL splits out some optionally prerequisite work from:
https://codereview.chromium.org/2791463002/
Most changes are test-only, and shouldn't affect production.
Nix unused CreatePanel function in accelerator_controller_unittest.cc
Nix UserMetricsRecorderTest::CreateTestWindow, add ShelfModel items.
Nix unnecessary ShelfTooltipManagerTest and ShelfTest item delegates.
Make ShelfApplicationMenuModel work with a null item delegate.
(supports a simplification in the test file)
Make AshTestBase set the shelf item type property for test panels.
(uses ShelfWindowWatcher for test panels, similar to production)
Cleanup shelf_view_unittest.cc:
-Base classes on ash::ShelfItemDelegate, not TestShelfItemDelegate.
-Track the count of selections, rather than a bool & Reset().
-Add ShelfModel items directly instead of making windows for items.
-Nix TestShelfDelegateForShelfView, rely on TestShelfDelegate instead.
-Refactor helper functions for adding shelf items.
Make TestShelfDelegate directly manipulate ShelfModel items.
(behaves much more like CLC, the production ShelfDelegate impl)
Move ShelfInitializer from TestShelfDelegate to TestShellDelegate.
(TestShelfDelegate will be removed, but tests still need shelf init)
Exclude a few expectations for mash in PanelLayoutManagerTest.*
Refine PanelWindowResizerTest comments and expectations.
-Expect panel ordering like production (added right to left).
-Skip testing a panel as a transient child of a panel (odd, broken).
BUG=557406, 698887
TEST=No Chrome OS shelf behavior changes. Tests pass.
R=jamescook@chomium.org
TBR=yusukes@chromium.org
Review-Url: https://codereview.chromium.org/2825533003
Cr-Commit-Position: refs/heads/master@{#465272}
Committed: https://chromium.googlesource.com/chromium/src/+/448103a0613cc1d0170c2fddf815c5d39ba411f7
Patch Set 1 #Patch Set 2 : Refine TestShelfDelegate::IsAppPinned; cleanup. #
Total comments: 23
Patch Set 3 : Make TestShelfDelegate work more like production. #Patch Set 4 : Address comments. #Patch Set 5 : Expand CheckWindowAndItemPlacement comment. #Messages
Total messages: 38 (28 generated)
|