Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Issue 2067223003: Parameterize Ash unittests to pass with material design enabled (Closed)

Created:
4 years, 6 months ago by tdanderson
Modified:
4 years, 6 months ago
Reviewers:
msw, varkha, James Cook
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Parameterize Ash unittests to pass with material design enabled Parameterize test fixtures in ash_unittests to run with the three modes used in Ash material design (non-material, material stable, and material experimental); see the runtime flag --ash-md. Also introduce the AshMdTestBase class to aid in modifying test expectations across the parameterized test runs. BUG=617296 TEST=ash_unittests Committed: https://crrev.com/0b7905b2457ab5222a853823b3ba817d4397f7a5 Cr-Commit-Position: refs/heads/master@{#401420}

Patch Set 1 #

Patch Set 2 : for further feedback #

Total comments: 23

Patch Set 3 : comments addressed, more tests added #

Patch Set 4 : address trybot failures #

Total comments: 13

Patch Set 5 : try removing OS_WIN code in DisplayManagerTestAPI #

Patch Set 6 : SupportsHostWindowResize() #

Total comments: 3

Patch Set 7 : for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -260 lines) Patch
M ash/ash.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/dip_unittest.cc View 1 2 3 4 5 6 5 chunks +22 lines, -12 lines 0 comments Download
M ash/display/display_manager_unittest.cc View 1 2 3 4 5 6 49 chunks +81 lines, -101 lines 0 comments Download
M ash/display/window_tree_host_manager_unittest.cc View 1 2 3 4 5 6 24 chunks +38 lines, -24 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 4 5 6 16 chunks +32 lines, -18 lines 0 comments Download
M ash/screen_util_unittest.cc View 1 2 3 4 5 6 6 chunks +30 lines, -18 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 1 2 3 4 5 6 9 chunks +57 lines, -32 lines 0 comments Download
A ash/test/ash_md_test_base.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A ash/test/ash_md_test_base.cc View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
M ash/wm/drag_window_resizer_unittest.cc View 1 2 3 4 5 6 14 chunks +26 lines, -14 lines 0 comments Download
M ash/wm/window_positioner_unittest.cc View 1 2 3 4 5 6 10 chunks +28 lines, -24 lines 0 comments Download
M ash/wm/window_state_unittest.cc View 1 2 3 4 5 6 13 chunks +33 lines, -17 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
tdanderson
Valery and James, can I please get your initial feedback on this CL? This does ...
4 years, 6 months ago (2016-06-16 00:50:04 UTC) #3
varkha
https://codereview.chromium.org/2067223003/diff/20001/ash/display/display_manager_unittest.cc File ash/display/display_manager_unittest.cc (right): https://codereview.chromium.org/2067223003/diff/20001/ash/display/display_manager_unittest.cc#newcode60 ash/display/display_manager_unittest.cc:60: public testing::WithParamInterface<ash::MaterialDesignController::Mode> { Here and in other fixtures that ...
4 years, 6 months ago (2016-06-16 02:55:05 UTC) #4
James Cook
Overall approach seems fine. https://codereview.chromium.org/2067223003/diff/20001/ash/dip_unittest.cc File ash/dip_unittest.cc (right): https://codereview.chromium.org/2067223003/diff/20001/ash/dip_unittest.cc#newcode32 ash/dip_unittest.cc:32: typedef ash::test::AshMDTestBase DIPTest; nit: using ...
4 years, 6 months ago (2016-06-16 16:08:56 UTC) #5
tdanderson
Hi James, can you please take another look? In particular please see my comment/question in ...
4 years, 6 months ago (2016-06-21 19:52:21 UTC) #6
James Cook
https://chromiumcodereview.appspot.com/2067223003/diff/20001/ash/dip_unittest.cc File ash/dip_unittest.cc (right): https://chromiumcodereview.appspot.com/2067223003/diff/20001/ash/dip_unittest.cc#newcode34 ash/dip_unittest.cc:34: // Note: First argument is optional and intentionally left ...
4 years, 6 months ago (2016-06-21 22:17:54 UTC) #7
varkha
https://chromiumcodereview.appspot.com/2067223003/diff/60001/ash/wm/window_state_unittest.cc File ash/wm/window_state_unittest.cc (right): https://chromiumcodereview.appspot.com/2067223003/diff/60001/ash/wm/window_state_unittest.cc#newcode331 ash/wm/window_state_unittest.cc:331: TEST_P(WindowStateTest, RestoredWindowBoundsShrink) { On 2016/06/21 22:17:54, James Cook wrote: ...
4 years, 6 months ago (2016-06-22 16:40:18 UTC) #8
tdanderson
https://chromiumcodereview.appspot.com/2067223003/diff/20001/ash/dip_unittest.cc File ash/dip_unittest.cc (right): https://chromiumcodereview.appspot.com/2067223003/diff/20001/ash/dip_unittest.cc#newcode34 ash/dip_unittest.cc:34: // Note: First argument is optional and intentionally left ...
4 years, 6 months ago (2016-06-22 16:51:56 UTC) #9
msw
https://chromiumcodereview.appspot.com/2067223003/diff/60001/ash/wm/window_state_unittest.cc File ash/wm/window_state_unittest.cc (right): https://chromiumcodereview.appspot.com/2067223003/diff/60001/ash/wm/window_state_unittest.cc#newcode331 ash/wm/window_state_unittest.cc:331: TEST_P(WindowStateTest, RestoredWindowBoundsShrink) { On 2016/06/22 16:51:55, tdanderson wrote: > ...
4 years, 6 months ago (2016-06-22 17:06:08 UTC) #11
tdanderson
James, this is ready for another look. https://chromiumcodereview.appspot.com/2067223003/diff/60001/ash/wm/window_state_unittest.cc File ash/wm/window_state_unittest.cc (right): https://chromiumcodereview.appspot.com/2067223003/diff/60001/ash/wm/window_state_unittest.cc#newcode331 ash/wm/window_state_unittest.cc:331: TEST_P(WindowStateTest, RestoredWindowBoundsShrink) ...
4 years, 6 months ago (2016-06-22 19:15:46 UTC) #12
msw
https://chromiumcodereview.appspot.com/2067223003/diff/60001/ash/wm/window_state_unittest.cc File ash/wm/window_state_unittest.cc (right): https://chromiumcodereview.appspot.com/2067223003/diff/60001/ash/wm/window_state_unittest.cc#newcode331 ash/wm/window_state_unittest.cc:331: TEST_P(WindowStateTest, RestoredWindowBoundsShrink) { On 2016/06/22 19:15:46, tdanderson wrote: > ...
4 years, 6 months ago (2016-06-22 19:26:08 UTC) #13
tdanderson
On 2016/06/22 19:26:08, msw wrote: > https://chromiumcodereview.appspot.com/2067223003/diff/60001/ash/wm/window_state_unittest.cc > File ash/wm/window_state_unittest.cc (right): > > https://chromiumcodereview.appspot.com/2067223003/diff/60001/ash/wm/window_state_unittest.cc#newcode331 > ...
4 years, 6 months ago (2016-06-22 19:30:08 UTC) #14
James Cook
LGTM. In the future can you upload the rebase as a separate patch? It makes ...
4 years, 6 months ago (2016-06-22 19:41:37 UTC) #15
tdanderson
https://chromiumcodereview.appspot.com/2067223003/diff/100001/ash/dip_unittest.cc File ash/dip_unittest.cc (right): https://chromiumcodereview.appspot.com/2067223003/diff/100001/ash/dip_unittest.cc#newcode34 ash/dip_unittest.cc:34: // The prefix has intentionally been left blank since ...
4 years, 6 months ago (2016-06-22 20:57:27 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2067223003/120001
4 years, 6 months ago (2016-06-22 20:58:14 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-22 21:53:21 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 21:56:50 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0b7905b2457ab5222a853823b3ba817d4397f7a5
Cr-Commit-Position: refs/heads/master@{#401420}

Powered by Google App Engine
This is Rietveld 408576698