commit | a6f990329d1059f1ae594ffbe6c70c46c10257a2 | [log] [tgz] |
---|---|---|
author | Carlos Caballero <carlscab@google.com> | Thu Dec 06 14:45:06 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 06 14:45:06 2018 |
tree | a7a4e8a318bea961075dd9e8284f77ccf48875c0 | |
parent | 0d17b741996e047d7aaf439dcb22ef7359e8f52b [diff] |
MockClock for ScopedTaskEnvironment Add the option to get a MockClock that is in sync with the underlying MockTickClock that ScopedTaskEnvironment uses. Some test need access to a base::Clock and ScopedTaskEnvironment currently just provides a MockTickClock. Need for this araised while refactoring components/ntp_snippets/breaking_news/breaking_news_gcm_app_handler_unittest.cc to use ScopedTaskEnvironment instead of MessageLoop. Bug: 891670 Change-Id: I0716dbe2b46e268dfe57bed7c667d275f62519af Reviewed-on: https://chromium-review.googlesource.com/c/1356553 Commit-Queue: Carlos Caballero <carlscab@google.com> Reviewed-by: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#614342}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .