DescriptionUse ScopedTaskEnvironment instead of MessageLoop in storage 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=kinuko@chromium.org, nhiroki@chromium.org
Review-Url: https://codereview.chromium.org/2804703004
Cr-Commit-Position: refs/heads/master@{#462491}
Committed: https://chromium.googlesource.com/chromium/src/+/01875e5e4b2740eb0579d959ac8c28019583d61c
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 14 (7 generated)
|