Use a dummy LocalInterfaceProvider for spellcheck test code
Several spellcheck classes hold a LocalInterfaceProvider pointer, which is always non-null in production code, but can be null in unit tests. This makes the production code performing unnecessary nullptr checks and doing hacky things. This patch adds a dummy LocalInterfaceProvider that doesn't bind any remote application, and uses it in test code, so that spellcheck production code no longer needs to perform nullptr checks. Bug: 714480 Change-Id: I30a9c82efd4298a62bda52d357fcfa9a6c6d991b Reviewed-on: https://chromium-review.googlesource.com/910650 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Ken Rockot <rockot@chromium.org> Reviewed-by:
Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#537163}
Showing
Please register or sign in to comment