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

Issue 8591003: aura: Fix Chrome OS status area browser tests. (Closed)

Created:
9 years, 1 month ago by Daniel Erat
Modified:
9 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

aura: Fix Chrome OS status area browser tests. The tests for StatusAreaView, PowerMenuButton, and CapsLockMenuButton were crashing when they tried to get the StatusAreaView from chromeos::BrowserView, which isn't used in Aura builds. This change makes them instead get the status area from the Aura shell. BUG=103501, 103495, 104666 TEST=ran tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111006

Patch Set 1 #

Patch Set 2 : make tests get StatusAreaView #

Patch Set 3 : add some casts #

Total comments: 2

Patch Set 4 : improve member names #

Patch Set 5 : also fix CapsLockMenuButtonTest #

Patch Set 6 : add include #

Total comments: 1

Patch Set 7 : merge with sky's (currently-reverted) change #

Total comments: 3

Patch Set 8 : rename to GetStatusAreaForTest() and remove const-ness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -23 lines) Patch
M chrome/browser/chromeos/frame/browser_view.cc View 1 2 3 4 5 6 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/frame/layout_mode_button.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/status/caps_lock_menu_button_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/status/clock_menu_button_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/status/power_menu_button_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/status/status_area_view.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/status/status_area_view_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +15 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/aura/chrome_shell_delegate.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/aura/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/aura/status_area_host_aura.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/aura/status_area_host_aura.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Daniel Erat
9 years, 1 month ago (2011-11-16 22:48:27 UTC) #1
stevenjb
lgtm
9 years, 1 month ago (2011-11-16 23:38:31 UTC) #2
stevenjb
Oh, did you mean to exclude power_menu_button_browsertest also? Thanks for doing this by the way, ...
9 years, 1 month ago (2011-11-17 00:25:55 UTC) #3
Daniel Erat
On 2011/11/17 00:25:55, Steven Bennetts wrote: > Oh, did you mean to exclude power_menu_button_browsertest also? ...
9 years, 1 month ago (2011-11-17 00:28:46 UTC) #4
stevenjb
lgtm with nit http://codereview.chromium.org/8591003/diff/6001/ui/aura_shell/shelf_layout_controller.h File ui/aura_shell/shelf_layout_controller.h (right): http://codereview.chromium.org/8591003/diff/6001/ui/aura_shell/shelf_layout_controller.h#newcode30 ui/aura_shell/shelf_layout_controller.h:30: views::Widget* status() { return status_; } ...
9 years, 1 month ago (2011-11-17 19:24:49 UTC) #5
Daniel Erat
http://codereview.chromium.org/8591003/diff/6001/ui/aura_shell/shelf_layout_controller.h File ui/aura_shell/shelf_layout_controller.h (right): http://codereview.chromium.org/8591003/diff/6001/ui/aura_shell/shelf_layout_controller.h#newcode30 ui/aura_shell/shelf_layout_controller.h:30: views::Widget* status() { return status_; } On 2011/11/17 19:24:49, ...
9 years, 1 month ago (2011-11-17 20:51:01 UTC) #6
Daniel Erat
@#@! OWNERS file. Scott, can you take a look for ui/aura_shell?
9 years, 1 month ago (2011-11-18 02:33:54 UTC) #7
Daniel Erat
Ben, mind taking a look?
9 years, 1 month ago (2011-11-18 16:47:36 UTC) #8
Daniel Erat
Scott took a similar approach in http://codereview.chromium.org/8600001/. I'll wait for his change to go in ...
9 years, 1 month ago (2011-11-18 17:28:17 UTC) #9
Ben Goodger (Google)
LGTM, one comment: http://codereview.chromium.org/8591003/diff/12001/ui/aura_shell/shell.h File ui/aura_shell/shell.h (right): http://codereview.chromium.org/8591003/diff/12001/ui/aura_shell/shell.h#newcode74 ui/aura_shell/shell.h:74: views::Widget* GetStatusAreaWidget(); Add ForTesting() to the ...
9 years, 1 month ago (2011-11-18 20:31:17 UTC) #10
Daniel Erat
Hmm. Was hoping to finally get this in today, but it looks like Scott's change ...
9 years, 1 month ago (2011-11-19 01:49:11 UTC) #11
sky
GAH. You're right, I was reverted. The patch is cycling through the bots again, hopefully ...
9 years, 1 month ago (2011-11-19 23:26:52 UTC) #12
Daniel Erat
http://codereview.chromium.org/8591003/diff/16001/chrome/browser/chromeos/status/power_menu_button_browsertest.cc File chrome/browser/chromeos/status/power_menu_button_browsertest.cc (right): http://codereview.chromium.org/8591003/diff/16001/chrome/browser/chromeos/status/power_menu_button_browsertest.cc#newcode35 chrome/browser/chromeos/status/power_menu_button_browsertest.cc:35: return const_cast<PowerMenuButton*>( On 2011/11/19 23:26:52, sky wrote: > On ...
9 years, 1 month ago (2011-11-21 16:45:51 UTC) #13
sky
On 2011/11/21 16:45:51, Daniel Erat wrote: > http://codereview.chromium.org/8591003/diff/16001/chrome/browser/chromeos/status/power_menu_button_browsertest.cc > File chrome/browser/chromeos/status/power_menu_button_browsertest.cc (right): > > http://codereview.chromium.org/8591003/diff/16001/chrome/browser/chromeos/status/power_menu_button_browsertest.cc#newcode35 ...
9 years, 1 month ago (2011-11-21 16:59:07 UTC) #14
Daniel Erat
Another look?
9 years, 1 month ago (2011-11-21 17:37:49 UTC) #15
sky
LGTM
9 years, 1 month ago (2011-11-21 17:44:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/8591003/23001
9 years, 1 month ago (2011-11-21 17:49:45 UTC) #17
commit-bot: I haz the power
Try job failure for 8591003-23001 (retry) on mac_rel for step "ui_tests" (clobber build). It's a ...
9 years, 1 month ago (2011-11-21 19:26:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/8591003/23001
9 years, 1 month ago (2011-11-21 20:13:54 UTC) #19
commit-bot: I haz the power
9 years, 1 month ago (2011-11-21 20:31:53 UTC) #20

Powered by Google App Engine
This is Rietveld 408576698