[iOS] Fix CHECK in SigninPromoView

ARQuickLookCoordinatorTest.InvalidUSDZFile fails in -[SigninPromoView
primaryButtonTitle] [1].
This test doesn't create SigninPromoView.

Prior to this patch, the SigninPromoView in SigninPromoViewTest is not
removed and stays alive.

With this patch, the title is always set, and the SigninPromoView
is always removed from the view at the end of the test.

[1]: https://source.chromium.org/chromium/chromium/src/+/main:ios/chrome/browser/authentication/ui_bundled/cells/signin_promo_view.mm;l=586;drc=92366573925fdd3a56824b27427b5fd44f4628fc

Fixed: 394339048
Change-Id: I2fdc9f3f4b02ffc44d71879707931fa6e090e553
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6234252
Reviewed-by: Arthur Milchior <arthurmilchior@chromium.org>
Auto-Submit: Jérôme Lebel <jlebel@chromium.org>
Commit-Queue: Arthur Milchior <arthurmilchior@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1416351}
NOKEYCHECK=True
GitOrigin-RevId: c12dadcc5a3069413b80d13e03b007c85d54a136
1 file changed
tree: ae206cff59f130b3d7345028ccdc0cea61998a5a
  1. build/
  2. chrome/
  3. components/
  4. google_internal/
  5. intents/
  6. net/
  7. public/
  8. testing/
  9. third_party/
  10. tools/
  11. web/
  12. web_view/
  13. .swift-format
  14. BUILD.gn
  15. COMMON_METADATA
  16. DEPS
  17. DIR_METADATA
  18. features.gni
  19. OWNERS
  20. PRESUBMIT.py
  21. PRESUBMIT_test.py
  22. README.md
README.md

This directory holds code related to Chrome for iOS. See this document for a description of the structure underneath this directory.