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

Issue 8566037: aura: Fix unit_tests on linux (Closed)

Created:
9 years, 1 month ago by sadrul
Modified:
9 years ago
CC:
chromium-reviews, Paweł Hajdan Jr., Daniel Erat
Visibility:
Public.

Description

aura: Fix unit_tests on linux Make sure the aura::Desktop is destroyed with the message-loop. This is done by adding a DestroyMessagePump notification to MessagePumpObserver. Also remove some views_unittests that were added to test NativeWidgetViews (which aren't used anymore), and do proper cleanup in AccessibilityEventRouter unittest. TBR=darin@chromium.org BUG=104559, 105613 TEST=unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112474

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : git try -b linux_aura #

Patch Set 6 : Use macro, and notify the observer on MP destruction on windows." #

Patch Set 7 : . #

Patch Set 8 : remove Synthetic tests that were added for NWViews #

Total comments: 7

Patch Set 9 : . #

Total comments: 1

Patch Set 10 : Use MesageLoop::DestructionObserver #

Patch Set 11 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -94 lines) Patch
M base/message_pump_x.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/ui/views/accessibility_event_router_views_unittest.cc View 1 2 3 4 3 chunks +5 lines, -7 lines 0 comments Download
M ui/aura/desktop.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -11 lines 0 comments Download
M ui/aura/desktop_host_linux.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +16 lines, -2 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -62 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
sadrul
This is probably the simplest workaround/fix. A more involved fix would be to send a ...
9 years, 1 month ago (2011-11-18 05:56:33 UTC) #1
oshima
ui_test_utils is also used by browser_tests, ui_tests and interactive_uitests that need native events. On 2011/11/18 ...
9 years, 1 month ago (2011-11-18 06:12:37 UTC) #2
sadrul
On 2011/11/18 06:12:37, oshima wrote: > ui_test_utils is also used by browser_tests, ui_tests and interactive_uitests ...
9 years, 1 month ago (2011-11-18 06:21:19 UTC) #3
oshima_google
On Thu, Nov 17, 2011 at 10:21 PM, <sadrul@chromium.org> wrote: > On 2011/11/18 06:12:37, oshima ...
9 years, 1 month ago (2011-11-18 07:28:45 UTC) #4
sadrul
I have changed the CL to take a different approach. I think this is better ...
9 years, 1 month ago (2011-11-18 17:26:10 UTC) #5
sadrul
Requesting suggestion as to which approach is better: 1) Add AuraMessageLoopForTest in ui/aura, require all ...
9 years ago (2011-11-29 16:15:59 UTC) #6
sadrul
I have gone ahead and done the change for MessagePumpObserver in patchset5. PTAL
9 years ago (2011-11-29 18:31:37 UTC) #7
sadrul
The trybots are happy; linux_aura runs unit_tests and it's green.
9 years ago (2011-11-29 20:49:12 UTC) #8
oshima
nice work! http://codereview.chromium.org/8566037/diff/14009/base/message_pump_observer.h File base/message_pump_observer.h (right): http://codereview.chromium.org/8566037/diff/14009/base/message_pump_observer.h#newcode42 base/message_pump_observer.h:42: virtual void DestroyMessagePump() {} OnMessagePumpDestroying. how much ...
9 years ago (2011-11-29 21:08:11 UTC) #9
sadrul
http://codereview.chromium.org/8566037/diff/14009/base/message_pump_observer.h File base/message_pump_observer.h (right): http://codereview.chromium.org/8566037/diff/14009/base/message_pump_observer.h#newcode42 base/message_pump_observer.h:42: virtual void DestroyMessagePump() {} On 2011/11/29 21:08:11, oshima wrote: ...
9 years ago (2011-11-29 21:21:33 UTC) #10
oshima
LGTM http://codereview.chromium.org/8566037/diff/14009/base/message_pump_observer.h File base/message_pump_observer.h (right): http://codereview.chromium.org/8566037/diff/14009/base/message_pump_observer.h#newcode42 base/message_pump_observer.h:42: virtual void DestroyMessagePump() {} On 2011/11/29 21:21:33, sadrul ...
9 years ago (2011-11-30 00:04:16 UTC) #11
sadrul
+darin for base/ +davemoore for chrome/browser/profiles/
9 years ago (2011-11-30 01:09:43 UTC) #12
darin (slow to review)
Is there some reason why MessageLoop::DestructionObserver is insufficient? Why do you need to separately know ...
9 years ago (2011-11-30 06:30:31 UTC) #13
sadrul
On 2011/11/30 06:30:31, darin wrote: > Is there some reason why MessageLoop::DestructionObserver is insufficient? Why ...
9 years ago (2011-11-30 13:49:00 UTC) #14
sadrul
http://codereview.chromium.org/8566037/diff/14009/ui/aura/desktop_host_linux.cc File ui/aura/desktop_host_linux.cc (right): http://codereview.chromium.org/8566037/diff/14009/ui/aura/desktop_host_linux.cc#newcode311 ui/aura/desktop_host_linux.cc:311: MessageLoopForUI::current()->RemoveObserver(this); On 2011/11/30 00:04:16, oshima wrote: > nit: it ...
9 years ago (2011-11-30 13:54:58 UTC) #15
Ben Goodger (Google)
UI bits lgtm.
9 years ago (2011-11-30 20:51:55 UTC) #16
DaveMoore
LGTM
9 years ago (2011-11-30 23:00:26 UTC) #17
sadrul
9 years ago (2011-12-01 16:21:19 UTC) #18
Thanks for the reviews! I am going to TBR the change in base/

Powered by Google App Engine
This is Rietveld 408576698