Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix metrics for when suggester is not allowed.
Currently the metrics depend on whether emoji suggester is not allowed for both personal info and emoji suggester. This would create the wrong metrics. Added Parameterised Testing so there is a total of 44 new tests. Other changes: In order to unit test this for all AssistiveTypes related to PersonalInfo, I had to allow the unit tests to set the personal data in personal suggester. This was done by adding an optional constructor argument to AssistiveSuggester. Created a helper function to map AssistiveType -> Feature since the feature is what is ultimately used to record some metrics. Refactored some code in other functions that was doing a manual mapping to use this new helper function. Added tests for both "NotAlowed" and "Disabled" histogram entries. Bug: b/228136553 Change-Id: Ifb0ae66154fe2cd65504ce5e52c9a624a834a0c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3568930 Reviewed-by: Darren Shen <shend@chromium.org> Reviewed-by: Curtis McMullan <curtismcmullan@chromium.org> Commit-Queue: jhtin <jhtin@chromium.org> Cr-Commit-Position: refs/heads/main@{#989322}
- Loading branch information
jhtin
authored and
Chromium LUCI CQ
committed
Apr 6, 2022
1 parent
7b98ccf
commit 5e6a60c
Showing
4 changed files
with
334 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.