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

Issue 2799043002: Use ScopedTaskEnvironment instead of MessageLoop in mojo unit tests. (Closed)

Created:
3 years, 8 months ago by fdoray
Modified:
3 years, 8 months ago
Reviewers:
gab, jam
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ScopedTaskEnvironment instead of MessageLoop in mojo unit tests. ScopedTaskEnvironment allows usage of ThreadTaskRunnerHandle and base/task_scheduler/post_task.h within its scope. It should be instantiated in every unit test that uses either of these APIs (i.e. no test should instantiate a MessageLoop directly). Motivation for ScopedTaskEnvironment can be found in: https://docs.google.com/document/d/1QabRo8c7D9LsYY3cEcaPQbOCLo8Tu-6VLykYXyl3Pkk/edit BUG=708584 R=gab@chromium.org TBR=jam@chromium.org Review-Url: https://codereview.chromium.org/2799043002 Cr-Commit-Position: refs/heads/master@{#462493} Committed: https://chromium.googlesource.com/chromium/src/+/6e08ad229b41423e347d43c6ce2a3c46a7715976

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M mojo/edk/system/ports/ports_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (7 generated)
fdoray
3 years, 8 months ago (2017-04-05 19:47:32 UTC) #1
fdoray
gab@: PTAL The change will then be TBRed to the owner.
3 years, 8 months ago (2017-04-05 19:47:34 UTC) #3
gab
lgtm
3 years, 8 months ago (2017-04-05 20:54:43 UTC) #5
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/2799043002/1
3 years, 8 months ago (2017-04-06 15:30:37 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 15:49:13 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/6e08ad229b41423e347d43c6ce2a...

Powered by Google App Engine
This is Rietveld 408576698