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

Issue 2186363002: Set Ash material design mode in tests properly (Closed)

Created:
4 years, 4 months ago by mohsen
Modified:
4 years, 4 months ago
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

Set Ash material design mode in tests properly Currently, in Ash tests, material design mode is set after call to AshTestBase::SetUp(). This is not right as some setup in AshTestBase might depend on material mode. This CL allows setting material mode before calling AshTestBase::SetUp(). BUG=620093 Committed: https://crrev.com/c66d687b9ffbd366ff3a1ca85acb6c0c4eab1ab1 Cr-Commit-Position: refs/heads/master@{#408837}

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 1

Patch Set 3 : Rebased #

Patch Set 4 : Fixed compile errors after rebase #

Total comments: 14

Patch Set 5 : Improved comments #

Patch Set 6 : Rebased #

Total comments: 2

Patch Set 7 : Added a CHECK #

Total comments: 2

Patch Set 8 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -57 lines) Patch
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 3 chunks +4 lines, -16 lines 0 comments Download
M ash/test/ash_md_test_base.h View 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M ash/test/ash_md_test_base.cc View 1 3 4 5 1 chunk +23 lines, -20 lines 0 comments Download
M ash/test/ash_test_base.h View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M ash/test/ash_test_base.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M ash/test/ash_test_helper.h View 1 2 3 4 5 3 chunks +10 lines, -4 lines 0 comments Download
M ash/test/ash_test_helper.cc View 1 2 3 4 5 4 chunks +8 lines, -2 lines 0 comments Download
M ash/test/ash_test_helper_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 3 4 5 3 chunks +1 line, -8 lines 0 comments Download
M chrome/test/base/browser_with_test_window_test.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 51 (37 generated)
mohsen
tdanderson@, bruthig@: Please take a look...
4 years, 4 months ago (2016-07-28 21:31:33 UTC) #4
bruthig
https://codereview.chromium.org/2186363002/diff/40001/ash/test/ash_test_base.h File ash/test/ash_test_base.h (right): https://codereview.chromium.org/2186363002/diff/40001/ash/test/ash_test_base.h#newcode145 ash/test/ash_test_base.h:145: material_mode_ = material_mode; Can you add 'CHECK(setup_called_)' here?
4 years, 4 months ago (2016-07-28 21:40:25 UTC) #12
tdanderson
Mohsen, thanks again for looking into this. The approach lgtm and I have left a ...
4 years, 4 months ago (2016-07-29 15:16:50 UTC) #20
bruthig
https://codereview.chromium.org/2186363002/diff/100001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2186363002/diff/100001/ash/shelf/shelf_view_unittest.cc#newcode2119 ash/shelf/shelf_view_unittest.cc:2119: class ShelfViewInkDropTest : public ShelfViewTest { On 2016/07/29 15:16:50, ...
4 years, 4 months ago (2016-07-29 16:13:04 UTC) #21
mohsen
https://codereview.chromium.org/2186363002/diff/100001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2186363002/diff/100001/ash/shelf/shelf_view_unittest.cc#newcode2119 ash/shelf/shelf_view_unittest.cc:2119: class ShelfViewInkDropTest : public ShelfViewTest { On 2016/07/29 at ...
4 years, 4 months ago (2016-07-29 18:05:20 UTC) #27
bruthig
lgtm with nit https://codereview.chromium.org/2186363002/diff/160001/ash/test/ash_test_base.h File ash/test/ash_test_base.h (right): https://codereview.chromium.org/2186363002/diff/160001/ash/test/ash_test_base.h#newcode145 ash/test/ash_test_base.h:145: material_mode_ = material_mode; (In case this ...
4 years, 4 months ago (2016-07-29 19:53:25 UTC) #30
mohsen
oshima@: Can you take a look, please? https://codereview.chromium.org/2186363002/diff/160001/ash/test/ash_test_base.h File ash/test/ash_test_base.h (right): https://codereview.chromium.org/2186363002/diff/160001/ash/test/ash_test_base.h#newcode145 ash/test/ash_test_base.h:145: material_mode_ = ...
4 years, 4 months ago (2016-07-29 20:03:52 UTC) #32
oshima
lgtm
4 years, 4 months ago (2016-07-29 20:12:24 UTC) #33
mohsen
thestig@: Can you please take an OWNERS look at chrome/test/base/browser_with_test_window_test.cc?
4 years, 4 months ago (2016-07-29 20:16:25 UTC) #37
Lei Zhang
lgtm if you IWYU. Also please note chrome/test/OWNERS exists. https://codereview.chromium.org/2186363002/diff/180001/chrome/test/base/browser_with_test_window_test.cc File chrome/test/base/browser_with_test_window_test.cc (right): https://codereview.chromium.org/2186363002/diff/180001/chrome/test/base/browser_with_test_window_test.cc#newcode59 chrome/test/base/browser_with_test_window_test.cc:59: ...
4 years, 4 months ago (2016-07-29 20:43:57 UTC) #38
mohsen
Yeah, sorry! I noticed chrome/test/OWNERS, but they were OOO and I wanted to get the ...
4 years, 4 months ago (2016-07-29 23:59:50 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2186363002/200001
4 years, 4 months ago (2016-07-30 01:42:39 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:200001)
4 years, 4 months ago (2016-07-30 01:46:32 UTC) #49
commit-bot: I haz the power
4 years, 4 months ago (2016-07-30 01:48:05 UTC) #51
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/c66d687b9ffbd366ff3a1ca85acb6c0c4eab1ab1
Cr-Commit-Position: refs/heads/master@{#408837}

Powered by Google App Engine
This is Rietveld 408576698