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

Issue 14136005: [Autofill] Fix MessageLoop in test. (Closed)

Created:
7 years, 8 months ago by groby-ooo-7-16
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Raman Kakilate, benquan, dhollowa+watch_chromium.org, ahutter, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, Albert Bodenhamer, estade+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Autofill] Fix MessageLoop in test. The old approach (RunMessageLoop) only works for dialogs that actually post messages. This seems to be true for Views, but is not true for the upcoming OSX dialogs. R=isherman@chromium.org BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195588

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use MessageLoopRunner. #

Total comments: 2

Patch Set 3 : Fix lifetime issue. #

Total comments: 2

Patch Set 4 : Address review nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -27 lines) Patch
M chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc View 1 2 3 11 chunks +36 lines, -27 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
groby-ooo-7-16
7 years, 8 months ago (2013-04-13 03:09:56 UTC) #1
Ilya Sherman
What do you mean by "dialogs that actually post messages"? I'm not following what's wrong ...
7 years, 8 months ago (2013-04-13 03:14:28 UTC) #2
groby-ooo-7-16
For OSX, ViewClosed() is reached from SubmitForTesting/CancelForTesting. That means OSX will call MessageLoop::current()->Quit(), followed by ...
7 years, 8 months ago (2013-04-13 03:25:45 UTC) #3
Evan Stade
https://codereview.chromium.org/14136005/diff/1/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/14136005/diff/1/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode89 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:89: virtual void ViewClosed() OVERRIDE { if you do go ...
7 years, 8 months ago (2013-04-13 03:27:41 UTC) #4
Ilya Sherman
On 2013/04/13 03:25:45, groby wrote: > For OSX, ViewClosed() is reached from SubmitForTesting/CancelForTesting. > > ...
7 years, 8 months ago (2013-04-13 03:38:48 UTC) #5
groby-ooo-7-16
PTAL
7 years, 8 months ago (2013-04-17 00:00:09 UTC) #6
Ilya Sherman
LGTM, thanks https://codereview.chromium.org/14136005/diff/8001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/14136005/diff/8001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode109 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:109: void RunMessageLoop(void) { nit: Docs https://codereview.chromium.org/14136005/diff/8001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode109 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:109: ...
7 years, 8 months ago (2013-04-17 00:03:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/14136005/8001
7 years, 8 months ago (2013-04-18 00:11:54 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=103969
7 years, 8 months ago (2013-04-18 03:14:14 UTC) #9
groby-ooo-7-16
PTAL - my previous patch missed the fact that the controller self-destroys. New patch ensures ...
7 years, 8 months ago (2013-04-19 19:30:20 UTC) #10
Ilya Sherman
LGTM https://codereview.chromium.org/14136005/diff/35001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/14136005/diff/35001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode145 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:145: } nit: Please leave a blank line after ...
7 years, 8 months ago (2013-04-20 01:19:07 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/14136005/35002
7 years, 8 months ago (2013-04-20 02:28:23 UTC) #12
groby-ooo-7-16
https://codereview.chromium.org/14136005/diff/35001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/14136005/diff/35001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode145 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:145: } On 2013/04/20 01:19:07, Ilya Sherman wrote: > nit: ...
7 years, 8 months ago (2013-04-20 02:28:37 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-20 02:46:20 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/14136005/35002
7 years, 8 months ago (2013-04-21 18:18:20 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-21 18:24:48 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/14136005/35002
7 years, 8 months ago (2013-04-22 16:53:40 UTC) #17
commit-bot: I haz the power
7 years, 8 months ago (2013-04-22 21:06:33 UTC) #18
Message was sent while issue was closed.
Change committed as 195588

Powered by Google App Engine
This is Rietveld 408576698