Commit 20cf2418 authored by Robbie Gibson's avatar Robbie Gibson Committed by Commit Bot

Add field to OmniboxIconView for tests

We want to check that the view is showing some icon in tests. This
exposes a readonly property for that case.

Bug: 963894
Change-Id: I2649ad4d4615cb41b4589cab6142978f747b97cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1627375Reviewed-by: default avatarStepan Khapugin <stkhapugin@chromium.org>
Commit-Queue: Robbie Gibson <rkgibson@google.com>
Cr-Commit-Position: refs/heads/master@{#663050}
parent 8d1ccc35
......@@ -17,8 +17,10 @@
// Used to fetch favicons.
@property(nonatomic, weak) id<FaviconRetriever> faviconRetriever;
// Used to fetch other images (rich entities, answers, etc.)
@property(nonatomic, weak) id<ImageRetriever> imageRetriever;
// Used for testing to check whether this view is displaying anything.
@property(nonatomic, readonly) UIImage* mainImage;
- (void)prepareForReuse;
......
......@@ -145,4 +145,8 @@
self.backgroundImageView.tintColor = omniboxIcon.backgroundImageTintColor;
}
- (UIImage*)mainImage {
return self.mainImageView.image;
}
@end
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