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

Issue 2420783002: mustash: Convert TraySupervisedUserTest to AshTest (Closed)

Created:
4 years, 2 months ago by James Cook
Modified:
4 years, 2 months ago
Reviewers:
msw
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mustash: Convert TraySupervisedUserTest to AshTest It only uses common types. * Add AshTest::GetSystemTrayDelegate, which is used in about 10 places in other tests. * Reset the initial login status directly in this test. This is the only call site for SetInitialLoginStatus(). Continuing to do it in AshTestHelper would mean I would have to duplicate that call in WmTestHelper, which seems worse than what I did here. BUG=654495 TEST=ash_unittests, mash_unittests Committed: https://crrev.com/d0ded2732e3832c3b1b060098330cf14096c4342 Cr-Commit-Position: refs/heads/master@{#425382}

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix deps #

Total comments: 1

Patch Set 3 : ScopedInitialLoginStatus #

Patch Set 4 : typo #

Total comments: 2

Patch Set 5 : wording #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -32 lines) Patch
M ash/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/BUILD.gn View 1 1 chunk +5 lines, -1 line 0 comments Download
M ash/common/system/chromeos/supervised/tray_supervised_user_unittest.cc View 1 2 3 chunks +8 lines, -16 lines 0 comments Download
M ash/common/test/ash_test.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ash/common/test/ash_test.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M ash/common/test/test_system_tray_delegate.h View 1 2 3 4 2 chunks +14 lines, -7 lines 0 comments Download
M ash/common/test/test_system_tray_delegate.cc View 1 2 3 2 chunks +11 lines, -5 lines 0 comments Download
M ash/test/ash_test_helper.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (16 generated)
James Cook
msw, please take a look. https://codereview.chromium.org/2420783002/diff/1/ash/common/system/chromeos/supervised/tray_supervised_user_unittest.cc File ash/common/system/chromeos/supervised/tray_supervised_user_unittest.cc (right): https://codereview.chromium.org/2420783002/diff/1/ash/common/system/chromeos/supervised/tray_supervised_user_unittest.cc#newcode63 ash/common/system/chromeos/supervised/tray_supervised_user_unittest.cc:63: test::TestSystemTrayDelegate::SetInitialLoginStatus(LoginStatus::USER); See CL comment ...
4 years, 2 months ago (2016-10-13 23:03:21 UTC) #4
msw
lgtm with a nit https://codereview.chromium.org/2420783002/diff/20001/ash/common/system/chromeos/supervised/tray_supervised_user_unittest.cc File ash/common/system/chromeos/supervised/tray_supervised_user_unittest.cc (right): https://codereview.chromium.org/2420783002/diff/20001/ash/common/system/chromeos/supervised/tray_supervised_user_unittest.cc#newcode62 ash/common/system/chromeos/supervised/tray_supervised_user_unittest.cc:62: // Reset the initial login ...
4 years, 2 months ago (2016-10-14 00:23:53 UTC) #9
James Cook
msw, I added a ScopedInitialLoginStatus object. Can you take another look?
4 years, 2 months ago (2016-10-14 03:10:52 UTC) #12
msw
nice, lgtm https://codereview.chromium.org/2420783002/diff/60001/ash/common/test/test_system_tray_delegate.h File ash/common/test/test_system_tray_delegate.h (right): https://codereview.chromium.org/2420783002/diff/60001/ash/common/test/test_system_tray_delegate.h#newcode67 ash/common/test/test_system_tray_delegate.h:67: // Allows testing the case when chrome ...
4 years, 2 months ago (2016-10-14 16:10:29 UTC) #17
James Cook
https://codereview.chromium.org/2420783002/diff/60001/ash/common/test/test_system_tray_delegate.h File ash/common/test/test_system_tray_delegate.h (right): https://codereview.chromium.org/2420783002/diff/60001/ash/common/test/test_system_tray_delegate.h#newcode67 ash/common/test/test_system_tray_delegate.h:67: // Allows testing the case when chrome is restarted ...
4 years, 2 months ago (2016-10-14 16:32:53 UTC) #18
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/2420783002/100001
4 years, 2 months ago (2016-10-14 16:46:54 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-14 17:46:54 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 17:50:50 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d0ded2732e3832c3b1b060098330cf14096c4342
Cr-Commit-Position: refs/heads/master@{#425382}

Powered by Google App Engine
This is Rietveld 408576698