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

Issue 2903213003: Do not use ScopedTaskEnvironment::RunUntilIdle() in URLRequestSimpleJobTest. (Closed)

Created:
3 years, 6 months ago by fdoray
Modified:
3 years, 6 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not use ScopedTaskEnvironment::RunUntilIdle() in URLRequestSimpleJobTest. URLRequestSimpleJobTest.CancelAfterFirstReadStarted doesn't need ScopedTaskEnvironment::RunUntilIdle() because it doesn't depend on tasks running in TaskScheduler. Moving from ScopedTaskEnvironment::RunUntilIdle() to RunLoop::RunUntilIdle() in this test is important because the test posts a MessageLoop::QuitWhenIdleClosure() (via TestDelegate), which is incompatible with changes that we want to make to ScopedTaskEnvironment::RunUntilIdle(). BUG=724077 Review-Url: https://codereview.chromium.org/2903213003 Cr-Commit-Position: refs/heads/master@{#474772} Committed: https://chromium.googlesource.com/chromium/src/+/38ca4d86dba6022a465b9966e6917a9e004e919b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -5 lines) Patch
M net/url_request/url_request_simple_job_unittest.cc View 2 chunks +1 line, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (7 generated)
fdoray
Please take a look.
3 years, 6 months ago (2017-05-25 19:44:42 UTC) #4
mmenke
On 2017/05/25 19:44:42, fdoray wrote: > Please take a look. LGTM. I am a bit ...
3 years, 6 months ago (2017-05-25 19:52:14 UTC) #5
fdoray
On 2017/05/25 19:52:14, mmenke wrote: > On 2017/05/25 19:44:42, fdoray wrote: > > Please take ...
3 years, 6 months ago (2017-05-25 19:59:35 UTC) #6
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/2903213003/1
3 years, 6 months ago (2017-05-25 20:00:37 UTC) #9
commit-bot: I haz the power
3 years, 6 months ago (2017-05-25 20:07:05 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/38ca4d86dba6022a465b9966e691...

Powered by Google App Engine
This is Rietveld 408576698