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

Issue 2796403002: Add base::test::ScopedTaskEnvironment. (Closed)

Created:
3 years, 8 months ago by fdoray
Modified:
3 years, 8 months ago
Reviewers:
robliao, gab
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add base::test::ScopedTaskEnvironment. ScopedTaskEnvironment allows usage of these APIs within its scope: - ThreadTaskRunnerHandle, on the thread where it lives - base/task_scheduler/post_task.h, on any thread Tests that need either of these APIs should instantiate a ScopedTaskEnvironment. Design doc https://docs.google.com/document/d/1QabRo8c7D9LsYY3cEcaPQbOCLo8Tu-6VLykYXyl3Pkk/edit BUG=708584 Review-Url: https://codereview.chromium.org/2796403002 Cr-Commit-Position: refs/heads/master@{#462477} Committed: https://chromium.googlesource.com/chromium/src/+/a1f53b7c3cca3156dcf7cd7a57264d888ea318ef

Patch Set 1 #

Patch Set 2 : self-review #

Patch Set 3 : self-review #

Total comments: 8

Patch Set 4 : CR-gab-9 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -0 lines) Patch
M base/test/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M base/test/scoped_async_task_scheduler.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
A base/test/scoped_task_environment.h View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A base/test/scoped_task_environment.cc View 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
fdoray
PTAL Notes: - I document that ScopedTaskEnvironment provides a ThreadTaskRunnerHandle, not a MessageLoop. This is ...
3 years, 8 months ago (2017-04-05 15:05:39 UTC) #4
gab
lgtm w/ comments, thanks! https://codereview.chromium.org/2796403002/diff/40001/base/test/scoped_async_task_scheduler.h File base/test/scoped_async_task_scheduler.h (right): https://codereview.chromium.org/2796403002/diff/40001/base/test/scoped_async_task_scheduler.h#newcode21 base/test/scoped_async_task_scheduler.h:21: // Deprecated. Use ScopedTaskEnvironment instead. ...
3 years, 8 months ago (2017-04-05 20:44:24 UTC) #9
gab
Also link to doc from CL desc.
3 years, 8 months ago (2017-04-05 20:44:42 UTC) #10
fdoray
https://codereview.chromium.org/2796403002/diff/40001/base/test/scoped_async_task_scheduler.h File base/test/scoped_async_task_scheduler.h (right): https://codereview.chromium.org/2796403002/diff/40001/base/test/scoped_async_task_scheduler.h#newcode21 base/test/scoped_async_task_scheduler.h:21: // Deprecated. Use ScopedTaskEnvironment instead. https://crbug.com/708584 On 2017/04/05 20:44:24, ...
3 years, 8 months ago (2017-04-06 14:00:23 UTC) #16
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/2796403002/60001
3 years, 8 months ago (2017-04-06 14:00:29 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 15:17:56 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/a1f53b7c3cca3156dcf7cd7a5726...

Powered by Google App Engine
This is Rietveld 408576698