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

Issue 2799103002: Enable printers sync_integration_tests on chromeos (Closed)

Created:
3 years, 8 months ago by Gang Wu
Modified:
3 years, 8 months ago
Reviewers:
skym, skau
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable printers sync_integration_tests on chromeos Fix printer flaky bugs by adding another wait. The bug is flaky because tests only wait for UI tasks to be completed, but since PrintersManagerFactory uses content::BrowserThread::GetBlockingPool() to schedule ModelTypeStore initialization, and then reply result to UI thread, so we need to wait on content::BrowserThread::GetBlockingPool() as well. Remove unnecessary changes from https://codereview.chromium.org/2758643002 since that did not really fix this waiting issue. BUG=689662, 701999 Review-Url: https://codereview.chromium.org/2799103002 Cr-Commit-Position: refs/heads/master@{#462716} Committed: https://chromium.googlesource.com/chromium/src/+/864d4cde3b40817cf6831a4a2e6711a4f94413b9

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : Add comments #

Total comments: 8

Patch Set 4 : update #

Patch Set 5 : update comments #

Total comments: 11

Patch Set 6 : more comments #

Total comments: 2

Patch Set 7 : add todo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -37 lines) Patch
M chrome/browser/sync/test/integration/printers_helper.cc View 1 2 3 4 5 6 3 chunks +22 lines, -8 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_printers_sync_test.cc View 1 2 3 4 chunks +8 lines, -22 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_printers_sync_test.cc View 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 45 (34 generated)
Gang Wu
PTAL
3 years, 8 months ago (2017-04-06 02:17:25 UTC) #14
skau
lgtm Awesome. Thanks for figuring this out! I reassigned 701999 to you.
3 years, 8 months ago (2017-04-06 02:46:29 UTC) #18
skym
I don't think the CL comment > Also revert https://codereview.chromium.org/2758643002 as well. Is exactly appropriate. ...
3 years, 8 months ago (2017-04-06 16:48:44 UTC) #19
Gang Wu
updated https://codereview.chromium.org/2799103002/diff/40001/chrome/browser/sync/test/integration/printers_helper.cc File chrome/browser/sync/test/integration/printers_helper.cc (right): https://codereview.chromium.org/2799103002/diff/40001/chrome/browser/sync/test/integration/printers_helper.cc#newcode115 chrome/browser/sync/test/integration/printers_helper.cc:115: // Flush here since PrintersManagerFactory::BuildServiceInstanceFor() uses On 2017/04/06 ...
3 years, 8 months ago (2017-04-06 19:22:59 UTC) #26
Gang Wu
update more comments
3 years, 8 months ago (2017-04-06 20:10:07 UTC) #30
skym
Thanks for the updates, and sorry to be a bit of a stickler, but I ...
3 years, 8 months ago (2017-04-06 21:03:03 UTC) #31
Gang Wu
updated. https://codereview.chromium.org/2799103002/diff/80001/chrome/browser/sync/test/integration/printers_helper.cc File chrome/browser/sync/test/integration/printers_helper.cc (right): https://codereview.chromium.org/2799103002/diff/80001/chrome/browser/sync/test/integration/printers_helper.cc#newcode72 chrome/browser/sync/test/integration/printers_helper.cc:72: // content::BrowserThread::GetBlockingPool() to schedule tasks, tests need to ...
3 years, 8 months ago (2017-04-06 21:50:56 UTC) #35
skym
lgtm https://codereview.chromium.org/2799103002/diff/80001/chrome/browser/sync/test/integration/printers_helper.cc File chrome/browser/sync/test/integration/printers_helper.cc (right): https://codereview.chromium.org/2799103002/diff/80001/chrome/browser/sync/test/integration/printers_helper.cc#newcode125 chrome/browser/sync/test/integration/printers_helper.cc:125: WaitForTaskCompletion(); On 2017/04/06 21:50:56, Gang Wu wrote: > ...
3 years, 8 months ago (2017-04-06 22:52:11 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2799103002/120001
3 years, 8 months ago (2017-04-06 23:45:48 UTC) #41
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/864d4cde3b40817cf6831a4a2e6711a4f94413b9
3 years, 8 months ago (2017-04-07 00:48:43 UTC) #44
Gang Wu
3 years, 8 months ago (2017-04-07 22:02:55 UTC) #45
Message was sent while issue was closed.
https://codereview.chromium.org/2799103002/diff/100001/chrome/browser/sync/te...
File chrome/browser/sync/test/integration/printers_helper.cc (right):

https://codereview.chromium.org/2799103002/diff/100001/chrome/browser/sync/te...
chrome/browser/sync/test/integration/printers_helper.cc:74: // Must wait for
ModelTypeStore initialization.
On 2017/04/06 22:52:11, skym wrote:
> Can you add that we can probably remove all of this once crbug.com/709094 is
> fixed?

Done.

Powered by Google App Engine
This is Rietveld 408576698