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

Issue 2355093003: Do not flush SequencedWorkerPools in browser tests. (Closed)

Created:
4 years, 3 months ago by fdoray
Modified:
4 years, 3 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, mrefaat
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not flush SequencedWorkerPools in browser tests. Before this CL, the blocking pool and the simple cache's pool were flushed at the end of each browser test. That means that every task posted to these pools ran, regardless of their shutdown behavior. This flush was introduced by https://codereview.chromium.org/11649032 to prevent leaks between tests (see https://crbug.com/168415). This flush is not required for browser tests since they each run in their own process. Note that in production, BrowserThreads are joined before the blocking pool. Before this CL, the blocking pool was flushed before BrowserThreads were joined. With this CL, the behavior of browser threads is closer to production. Why is this important? There is no way to flush TaskScheduler and we would prefer not to implement it if it is not required. BUG=622400 Committed: https://crrev.com/0881867ce08db7368ca9f6ea10aa230dc2849227 Cr-Commit-Position: refs/heads/master@{#420366}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -31 lines) Patch
M content/public/test/content_test_suite_base.cc View 3 chunks +0 lines, -15 lines 0 comments Download
M ios/web/test/web_test_suite.mm View 2 chunks +0 lines, -16 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
fdoray
gab@ and robliao@ for initial review. sky@: You can chime in now. Otherwise, I'll ask ...
4 years, 3 months ago (2016-09-21 16:51:52 UTC) #7
gab
lgtm
4 years, 3 months ago (2016-09-21 17:08:12 UTC) #8
robliao
lgtm
4 years, 3 months ago (2016-09-21 17:14:31 UTC) #9
fdoray
sky@: Please review changes in content/public/test/content_test_suite_base.cc eugenebut@: Please review changes in ios/web/test/web_test_suite.mm
4 years, 3 months ago (2016-09-21 17:35:34 UTC) #11
Eugene But (OOO till 7-30)
ios lgtm. Do you know if this works with Chrome for iOS downstream repo? CCing ...
4 years, 3 months ago (2016-09-21 20:36:42 UTC) #13
sky
LGTM
4 years, 3 months ago (2016-09-21 22:01:45 UTC) #14
fdoray
On 2016/09/21 20:36:42, Eugene But wrote: > ios lgtm. Do you know if this works ...
4 years, 3 months ago (2016-09-22 14:15:18 UTC) #15
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/2355093003/1
4 years, 3 months ago (2016-09-22 14:16:47 UTC) #17
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/2355093003/1
4 years, 3 months ago (2016-09-22 16:15:22 UTC) #23
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-22 16:22:48 UTC) #25
commit-bot: I haz the power
4 years, 3 months ago (2016-09-22 16:24:47 UTC) #27
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0881867ce08db7368ca9f6ea10aa230dc2849227
Cr-Commit-Position: refs/heads/master@{#420366}

Powered by Google App Engine
This is Rietveld 408576698