[iOS] Fixing the scroll view test for the signin confirmation

To validate the signin consent, the consent scroll view has to be
scrolled  down to the bottom. Unfortunately, when a scroll view doesn't
bounce, grey_scrollToContentEdge() scrolls without stopping.
To workaround the problem and keep -UIScrollView.alwaysBounceVertical
set to NO, a matcher is used to test if content is smaller than the
scroll view.
If the content is smaller, than the consent is validated directly.
Otherwise, the view is scrolled down to the bottom, before validating
the consent.

Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I5a982cefd38c755be3993cd27b619b8f400efdb6
Reviewed-on: https://chromium-review.googlesource.com/1147520
Commit-Queue: Jérôme Lebel <jlebel@chromium.org>
Reviewed-by: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577516}
3 files changed