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

Issue 250943005: Fix MultipleClientPasswordsSyncTest.Sanity (Closed)

Created:
6 years, 8 months ago by rlarocque
Modified:
6 years, 7 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Fix MultipleClientPasswordsSyncTest.Sanity This test had some issues with accidentally nested RunLoops. The attached bug includes a small essay that thoroughly describes the issue. The solution implemented here is to prevent nesting by not allowing multiple calls to IsExitConditionRequired() to occur on the stack at the same time. It also ensures that the requests to check the exit condition are not fully ignored; it will retry the check if a call was attempted and rejected while the current one was in progress. This CL also disables self-notifications for the MultipleClientPasswordsSyncTest. Since the test no longer depends on AwaitQuiescence, self-notifications should be no longer necessary. BUG=363247 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266770

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -5 lines) Patch
M chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/sync/test/integration/passwords_helper.cc View 1 chunk +36 lines, -2 lines 2 comments Download

Messages

Total messages: 12 (0 generated)
rlarocque
This should fix the test. I don't like it as a long-term solution, but it ...
6 years, 8 months ago (2014-04-26 00:26:06 UTC) #1
Nicolas Zea
https://codereview.chromium.org/250943005/diff/1/chrome/browser/sync/test/integration/passwords_helper.cc File chrome/browser/sync/test/integration/passwords_helper.cc (right): https://codereview.chromium.org/250943005/diff/1/chrome/browser/sync/test/integration/passwords_helper.cc#newcode57 chrome/browser/sync/test/integration/passwords_helper.cc:57: base::MessageLoopForUI::current()->Quit(); I wonder if we should instead not be ...
6 years, 7 months ago (2014-04-28 22:14:47 UTC) #2
rlarocque
https://codereview.chromium.org/250943005/diff/1/chrome/browser/sync/test/integration/passwords_helper.cc File chrome/browser/sync/test/integration/passwords_helper.cc (right): https://codereview.chromium.org/250943005/diff/1/chrome/browser/sync/test/integration/passwords_helper.cc#newcode57 chrome/browser/sync/test/integration/passwords_helper.cc:57: base::MessageLoopForUI::current()->Quit(); On 2014/04/28 22:14:47, Nicolas Zea wrote: > I ...
6 years, 7 months ago (2014-04-28 23:18:57 UTC) #3
Nicolas Zea
FYI, Run loops have RunUntilIdle, which I think results in the same behavior as QuitWhenIdle. ...
6 years, 7 months ago (2014-04-28 23:26:38 UTC) #4
rlarocque
On 2014/04/28 23:26:38, Nicolas Zea wrote: > FYI, Run loops have RunUntilIdle, which I think ...
6 years, 7 months ago (2014-04-28 23:35:40 UTC) #5
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-04-28 23:36:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/250943005/1
6 years, 7 months ago (2014-04-28 23:38:01 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 00:19:48 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 7 months ago (2014-04-29 00:19:48 UTC) #9
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-04-29 00:22:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/250943005/1
6 years, 7 months ago (2014-04-29 00:22:43 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-04-29 07:38:21 UTC) #12
Message was sent while issue was closed.
Change committed as 266770

Powered by Google App Engine
This is Rietveld 408576698