commit | 6387bfd109d0b31de37d40b0318dd0b680906a04 | [log] [tgz] |
---|---|---|
author | Jeroen Dhollander <jeroendh@google.com> | Wed Dec 16 00:59:49 2020 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 16 00:59:49 2020 |
tree | 5d0ebd453d025f88b4e7167bddd8f26064c5b4bf | |
parent | 297828daa13982a9eb42fe528de52211cf159c2a [diff] |
Allow fake instances of LibassistantService during unittests All access to the Libassistant classes is being moved inside the |LibassistantService| mojom classes, so we need to update the unittests to fake the |LibassistantService| class, instead of the Libassistant classes. This CL introduces a |LibassistantServiceHost| which launches/stops the Mojom service. This CL also introduces fake objects, and updates the |AssistantManagerServiceImpl| unittests to use these fakes. Bug: b/171748795 Change-Id: I4742f0c28050f0bce5c11a4d946ec35b3aab449d Tests: chromeos_unittests --gtest_filter="Assistant*" Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2569920 Commit-Queue: Jeroen Dhollander <jeroendh@chromium.org> Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/master@{#837368}
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 .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.