[profile-menu] Add browser tests for each button
A parameterized browser test is added to simulate a click for each button. Each button click is expected to record a sample from ProfileMenuView::ActionableItem in the histogram Profile.Menu.ClickedActionableItem. Additional fix: - The identity image is set to kUserAccountAvatarIcon if the passed image is empty. This can happen in tests and when the account image hasn't been fetched yet. Bug: 995720 Change-Id: I36122417e0cc3b685397aac8d975ed9ad94fd137 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1798610 Commit-Queue: Thomas Tangl <tangltom@chromium.org> Reviewed-by:Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#696002}
Showing
Please register or sign in to comment