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

Issue 2060003002: ash: Add a unit test for the system update tray item (Closed)

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

Description

ash: Add a unit test for the system update tray item I'm about to refactor SystemTrayNotifier and TrayUpdate, and I want more confidence that I'm not breaking it. This also changes the default "update required" state in ash unit tests to not having an update. BUG=619181 TEST=ash_unittests TrayUpdateTest Committed: https://crrev.com/a1257f146f22e25c109b67e66d0790c79b927940 Cr-Commit-Position: refs/heads/master@{#399388}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : . #

Patch Set 4 : logging #

Patch Set 5 : fix test #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -9 lines) Patch
M ash/ash.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M ash/system/tray/system_tray.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M ash/system/tray/system_tray.cc View 4 chunks +8 lines, -2 lines 0 comments Download
M ash/system/tray/tray_image_item.h View 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/tray_update.h View 2 chunks +3 lines, -2 lines 0 comments Download
A ash/system/tray_update_unittest.cc View 1 chunk +43 lines, -0 lines 0 comments Download
M ash/test/ash_test_helper.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ash/test/test_system_tray_delegate.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M ash/test/test_system_tray_delegate.cc View 1 2 3 3 chunks +13 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (9 generated)
James Cook
Steven, please take a look.
4 years, 6 months ago (2016-06-10 22:20:23 UTC) #2
stevenjb
lgtm https://codereview.chromium.org/2060003002/diff/20001/ash/system/tray/system_tray.h File ash/system/tray/system_tray.h (right): https://codereview.chromium.org/2060003002/diff/20001/ash/system/tray/system_tray.h#newcode161 ash/system/tray/system_tray.h:161: TrayUpdate* GetTrayUpdateForTesting() const; nit: Replace the comments in ...
4 years, 6 months ago (2016-06-10 22:56:31 UTC) #3
James Cook
Thanks for the quick review. https://codereview.chromium.org/2060003002/diff/20001/ash/system/tray/system_tray.h File ash/system/tray/system_tray.h (right): https://codereview.chromium.org/2060003002/diff/20001/ash/system/tray/system_tray.h#newcode161 ash/system/tray/system_tray.h:161: TrayUpdate* GetTrayUpdateForTesting() const; On ...
4 years, 6 months ago (2016-06-10 23:15:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060003002/40001
4 years, 6 months ago (2016-06-10 23:16:06 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/227189)
4 years, 6 months ago (2016-06-11 00:06:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060003002/100001
4 years, 6 months ago (2016-06-11 23:34:56 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/176377)
4 years, 6 months ago (2016-06-12 00:34:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2060003002/100001
4 years, 6 months ago (2016-06-12 05:53:15 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-12 07:03:05 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-12 07:05:20 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a1257f146f22e25c109b67e66d0790c79b927940
Cr-Commit-Position: refs/heads/master@{#399388}

Powered by Google App Engine
This is Rietveld 408576698