0
Files
src/content/app
Joe Mason 910275690b Refactor how ContentMainDelegate is passed to Android tests
This reuses slightly more test setup code between Android and
non-Android platforms: now test_launcher.cc creates a
ContentMainParams object holding the ContentMainDelegate pointer on
all platforms, and BrowserTestBase::SetUp() uses the
ContentMainParams as much as possible in both Android and non-Android
paths.

This will allow a followup patch to override the ContentMainDelegate
for a single browsertest by updating the ContentMainParams, without
needing a separate path on Android.

Also simplifies Android's GetContentMainDelegateForTesting() by
removing a layer of indirection in content_main_runner_impl.h and
putting it in its own header file which is exposed to
content/public/test/*.cc but not content/public.

Bug: 1340599
Change-Id: I3f5538365f7e1020900fce6f1dc8d43085f7ab9f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3978890
Commit-Queue: Joe Mason <joenotcharles@google.com>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1063875}
2022-10-26 17:17:25 +00:00
..
2022-09-15 14:03:50 +00:00
2022-09-22 03:01:08 +00:00