Commit 8a833fd0 authored by Brandon Wylie's avatar Brandon Wylie Committed by Commit Bot

Adding instrumentation tests for the search engine logo feature

Bug: 1032236
Change-Id: I5f80fb7c33158e39b17ff0947f1fa239929815b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1958808
Commit-Queue: Brandon Wylie <wylieb@chromium.org>
Reviewed-by: default avatarEnder <ender@google.com>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726096}
parent 991178ea
......@@ -158,9 +158,7 @@ public class StatusViewCoordinator implements View.OnClickListener, TextWatcher
return mMediator.isSecurityButtonShown();
}
/**
* @return The ID of the drawable currently shown in the security icon.
*/
/** @return The ID of the drawable currently shown in the security icon. */
@DrawableRes
public int getSecurityIconResourceIdForTesting() {
return mModel.get(StatusProperties.STATUS_ICON_RESOURCE) == null
......@@ -168,6 +166,13 @@ public class StatusViewCoordinator implements View.OnClickListener, TextWatcher
: mModel.get(StatusProperties.STATUS_ICON_RESOURCE).getIconResForTesting();
}
/** @return The icon identifier used for custom resources. */
public String getSecurityIconIdentifierForTesting() {
return mModel.get(StatusProperties.STATUS_ICON_RESOURCE) == null
? null
: mModel.get(StatusProperties.STATUS_ICON_RESOURCE).getIconIdentifierForTesting();
}
/**
* Update visibility of the verbose status based on the button type and focus state of the
* omnibox.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment