>[!warning]- Info > Author: [email protected] > Publish date: 2026/07/02 > Last update: 2026/11/15 > Status: WIP > Revision: 56 > Visibility: Public >[!note]- AI Assistance > This document was drafted with the assistance of [Claude](https://claude.ai) (Anthropic). The technical content reflects work done by the author; Claude helped structure and articulate it. # Modularizing `chrome/test` A phased BUILD.gn-only effort to break up the `chrome/test` monolith, following Bedrock conventions. > [!summary] TL;DR > - **Problem:** `chrome/test/BUILD.gn` is a ~11,000-line monolith aggregating test-support targets from 26 subdirectories. > - **Goal:** Give each logical subdirectory its own `BUILD.gn`, mirroring `chrome/browser/ui`. Then delete the two aggregator targets `test_support` and `test_support_ui`. > - **Current state:** Phases 3a, 3b, 3c complete. Phase 3d (delete `group("test_support")`) **in progress** — **3d-1…3d-8 MERGED** (all consumers outside `//chrome/browser` + enterprise). WIP stack 3d-9…3d-13 in review, all full-tree gn-check clean on 5 configs: 3d-9 chromeos, **3d-10 de-leech prep CL**, 3d-11 glic, 3d-12 apps, 3d-13 extensions. > - **Next milestone:** Finish the `//chrome/browser/**` sweep (~860 files; big waves: `ui` 366, `ash` 217), then delete `group("test_support")`. ## Background Project Bedrock fixes the `Browser` god-object in `chrome/browser`. The structural half — per-subdirectory `BUILD.gn`, enforced visibility, breaking circular deps — applies equally to `chrome/test`. There are two complementary efforts: | Effort | What it does | |--------|-------------| | **This work — `chrome/test/` modularization** | Moves test *support* target declarations into per-subdirectory `BUILD.gn` files. No source files move. | | **Bedrock team — `chrome/browser/` modularization** | Moves test *case* source declarations out of `chrome/test/BUILD.gn` into the module's own `:browser_tests` / `:unit_tests` targets. | --- ## Current State ``` chrome/test/ ├── BUILD.gn ← group("test_support") remains; group("test_support_ui") deleted ✅ ├── base/ ← ✅ fully modularized (~49 targets) ├── interaction/ ← ✅ done ├── user_education/ ← ✅ done ├── permissions/ ← ✅ done ├── views/ ← ✅ done ├── gpu/ ← ✅ done ├── v8/ ← ✅ done ├── enterprise/ ← Python-only, skip ├── accessibility/ ← standalone tool, skip └── android/, chromedriver/, payments/, … ← BUILD.gn exists ``` ### Phase progress | Phase | Status | Description | |-------|--------|-------------| | **Phase 1** — Leaf modules | ✅ Landed | `interaction`, `user_education`, `permissions`, `views`, `gpu`, `v8` | | **Phase 2** — `chrome/test/base/` extraction | ✅ Landed | ~49 targets extracted (CLs 0–37 + Phase 2D granularity pass). `test_support` and `test_support_ui` now have zero `base/` entries. | | **Phase 3a** — Remaining source extractions + `test_support` → `group()` | ✅ Landed | `test_support` is a pure `group()`. Crash reporter → `chrome/app:test_support`. Chooser bubble and all `test_support_ui` sources → dedicated targets in `chrome/browser/ui/views/`. | | **Phase 3b** — Migrate `test_support` consumers | ✅ Landed | 3b-9→3b-23, 3b-24–33, 3b-34 all complete. `testing_profile_impl` removed from `test_support.public_deps`. | | **Phase 3c** — Remove `test_support_ui` from all consumers | ✅ Landed | 3c-1→3c-14 (direct): ✅. 3c-transitive-1→12 (cascade + deletion): ✅. `group("test_support_ui")` is now deleted from `chrome/test/BUILD.gn`. | | **Phase 3d** — Migrate `test_support` consumers | 🔄 Active | ~1,000 BUILD.gn files. **3d-1…3d-8 MERGED.** WIP stack 3d-9…3d-13 (chromeos, de-leech prep, glic, apps, extensions) in review, full-tree-clean on 5 configs. Bulk `//chrome/browser/**` (ui 366, ash 217) next. Goal: delete `group("test_support")`. | > [!abstract] Overall completion: **~90%** > By CL-units (~125 total): Phases 1, 2, 3a, 3b, 3c — **~100 CLs landed (~80%)**. Phase 3d — > 3d-1…3d-8 landed, 3d-9…3d-13 in review (**~90%** cumulative). Remaining: the `//chrome/browser/**` consumer sweep > (~962 BUILD.gn files, est. ~18–20 CLs) + the final `group("test_support")` deletion CL. > All source extraction and the entire `test_support_ui` teardown are already done; what's > left is the last mechanical consumer-migration wave plus the deletion. > [!tip] For CL reviewers > All Phase 3b/3c CLs are **BUILD.gn-only** — no source files move or change. Each CL adds direct deps to consumers that were getting them transitively through `test_support` or `test_support_ui`, or removes an aggregated dep once consumers have direct ones. See [Consumer Migration Philosophy](#consumer-migration-philosophy) for the full rationale. --- ## What's Next **Phase 3c: complete.** All 3c-1→3c-14 and 3c-transitive-1→12 landed. `group("test_support_ui")` deleted. **Phase 3d: in progress.** First wave green on the CQ and in review — all `test_support` consumers *outside* `//chrome/browser`: | CL | Scope | Status | |----|-------|--------| | 3d-1 | Consumers outside `//chrome` (apps/, ash/webui/, chromeos/ash/, components/, ui/ozone) | ✅ merged | | 3d-2 | `//chrome` non-browser, light targets (chrome/test/*, services, app, …) | ✅ merged | | 3d-3 | `//chrome/common` + `//chrome/common/extensions` | ✅ merged | | 3d-4 | `//chrome/renderer` | ✅ merged | | 3d-5 | `//chrome/test/base:chrome_test_launcher` | ✅ merged | | 3d-6 | `//chrome/browser/enterprise/connectors` | ✅ merged | | 3d-7 | enterprise reporting/data_controls/data_protection/watermark | ✅ merged | | 3d-8 | enterprise remaining leaf dirs (enterprise fully migrated) | ✅ merged | | 3d-9 | `//chrome/browser/chromeos` (24 files) | review, 5 configs clean | | **3d-10** | **de-leech prep CL** (15 files) — gives all leecher targets direct deps | review, 5 configs clean | | 3d-11 | `//chrome/browser/glic` (12 files) | review, 5 configs clean | | 3d-12 | `//chrome/browser/apps` (13 files) | review, 5 configs clean | | 3d-13 | `//chrome/browser/extensions` + api/ (10 files) | review, 5 configs clean | **Up next:** 1. Remaining `//chrome/browser/**` consumers (~860 files) — assorted leaf dirs, then the big waves: `ui` (366, ~8 CLs) and `ash` (217, ~5 CLs). 2. **3d-final** — delete `group("test_support")` and remove the now-stale `//chrome/test:test_support` entries from the `chrome/app:test_support`, `chrome/common:test_support`, `chrome/browser:test_support`, and glic `provider_features` visibility lists. --- ## Technical Reference ### Validation commands Full-tree `gn gen --check` (checks **all** targets, not just the touched dir — see the leech-cascade note) on all five configs before uploading. Each `out/<platform>` already has its `args.gn`, so no `--args` is needed: ```sh for cfg in linux cros win android android-desktop; do buildtools/linux64/gn gen --check out/$cfg done # + out/libfuzzer for CLs touching chrome/test/fuzzing ``` `out/win` is a local cross-build (prebuilt toolchain), so `if (is_win)` dep blocks are validated locally. No local **mac** build — audit `if (is_mac)` / `.mm`-only blocks manually and rely on CQ. ### BUILD.gn patterns #### New per-directory `BUILD.gn` ```gn source_set("test_support") { testonly = true sources = [ "interactive_browser_test.cc", "interactive_browser_test.h", ] public_deps = [ "//ui/base/interaction:interaction" ] deps = [ "//chrome/test/base:in_process_browser_test", "//chrome/browser/ui", "//content/public/test:test_support", ] } ``` #### Root `chrome/test/BUILD.gn` after modularization ```gn group("test_support") { testonly = true public_deps = [ "//chrome/test/base:test_support", "//chrome/test/interaction:test_support", "//chrome/test/user_education:test_support", # ... ] } ``` --- ## Handling Circular Dependencies ### Background GN cycle detection operates on the **dep graph** (`deps`/`public_deps` entries), not on `#include` lines. Two targets can mutually include each other's headers while keeping the dep graph a DAG — as long as only one dep edge exists and `allow_circular_includes_from` is declared. > [!info] Key insight > `allow_circular_includes_from` is a **header-include permission** only — invisible to the dep graph. It cannot rescue a **true dep-graph cycle**; those require structural fixes (Pattern A split, pre-extraction of a thin target, etc.). ### Deferred `allow_circular_includes_from` cleanups Three `testing_browser_process` entries remain to fix (marked `TODO(crbug.com/353332589)`): | Entry | Why it exists | Fix | |-------|--------------|-----| | `testing_browser_process` ← `testing_profile_impl` | `testing_profile_manager.cc` includes `testing_browser_process.h` | Forward-declare or extract TBP header | | `testing_browser_process` ← `extensions:test_support` | Extension sources include `testing_browser_process.h` | Pattern A split on TBP | | `testing_browser_process` ← `ash/settings:test_support`, `ash/system_web_apps/test_support` | CrOS sources include `testing_browser_process.h` | Pattern A split on TBP | **Pattern A split** (done for `testing_profile` in CL6–7, pending for `testing_browser_process`): Split into a thin header-only target and a full impl target. The circular dep becomes a direct dep on the thin target, breaking the cycle. ### Break of `chrome_test_utils` dep-graph cycle (CL 18b) The cycle was: ``` in_process_browser_test → chrome_test_utils → platform_browser_test → in_process_browser_test ``` Fix: Extract 4 pure path utility functions into a new `:chrome_test_path_utils` target (no browser dep). All callers work unchanged; cycle is gone. --- ## Consumer Migration Philosophy During Phase 2, extracted targets are placed in `test_support`'s `public_deps` — **not `deps`**. `public_deps` propagates headers transitively so hundreds of consumer targets continue to work without changes. This is intentional and temporary. Phase 3b (for `test_support`) and Phase 3c (for `test_support_ui`) clean this up: once every consumer has a direct dep, the aggregator entry is demoted to `deps` or removed entirely. > [!note] For reviewers > "Do you plan to make callers depend directly?" — yes, that is Phase 3b/3d. The `public_deps` entries added during Phase 2 are deliberate, time-bounded transitional scaffolding, not the intended end-state. **Migration process per target:** 1. `gn refs out/linux //chrome/test/base:TARGET` — enumerate all consumers. 2. For each consumer: does its source `#include` the target's headers? If yes, add a direct dep. 3. Once all consumers have direct deps, demote the monolith entry from `public_deps` → `deps` (or remove it). --- ## Lessons Learned (Phase 3b — applies to Phase 3d) 1. **`gn check` ≠ build success for `static_library`:** When a dep moves from `public_deps` to `deps` in a `static_library`, headers remain visible to `gn check` but link fails (object files no longer propagate). Always do a full build after demoting a dep. 2. **T / T_impl split and linking:** Migrating consumers to the header-only `T` target alone is insufficient for linking — `T_impl`'s object files must reach every executable/aggregator target too. Add `T_impl` to binary targets (`test("unit_tests")`, etc.), not to each individual consumer. 3. **`assert(use_aura)` on mac:** Any target with a transitive dep on `//ui/aura` or `//ui/wm` requires a `if (use_aura)` guard. `if (!is_android)` is not sufficient (mac is `!is_android` but is not aura). 4. **`gn --fix` spurious `public_deps`:** `gn --fix` can emit a standalone `public_deps = [...]` block at the end of a target in addition to updating an existing `deps` block — creating a duplicate. Always review `gn --fix` output before committing. 5. **Mac/win-only consumers missed by linux/cros GN check:** `.mm` sources and `if (is_win)` blocks are invisible to linux/cros GN check. After removing a target from `test_support`'s `public_deps`, audit for platform-specific consumers manually. 6. **Aura-only targets in `!is_android` blocks:** `drag_and_drop_test_utils` and anything depending on `//ui/aura` must use `if (use_aura)`, not `if (!is_android)`. 7. **`js2gtest` with `test_type = "extension"` need `cros_extension_js_browser_test`:** These targets inherit from `ExtensionJSBrowserTest`. After 3b-21 removed the transitive dep, all 8 accessibility js2gtest targets needed an explicit dep on `//chrome/test/base:cros_extension_js_browser_test`. 8. **Phase 3c-transitive rationale:** The `3c-transitive` CLs mostly *remove* explicit `test_support_ui` deps — most consumers don't need a replacement dep because `test_support` (which they already dep on) already provides the needed headers. Only a small number of consumers need new direct deps. The correct CL title is `[Bedrock] Remove c/t:test_support_ui from consumers (CL N/N)`, not "Add direct deps". 9. **Out-of-`chrome/` consumers are invisible to `grep -rl` scans:** The grep-based migration scan (`grep -rl '"//chrome/test:test_support_ui"' chrome/`) only covers files under `chrome/`. Targets outside that subtree (e.g. `ui/accessibility/extensions:colorenhancer_tests`) that relied on the `test_support → test_support_ui → cros_web_ui_browser_test` chain were missed. These surface as link failures on the CQ bots after the deletion CL lands. Fix: audit non-`chrome/` BUILD.gn files that use `webui_test_deps` or `browser_tests_deps` templates, or search the full tree for `test_support_ui` references before uploading the deletion CL. 10. **GN conditional guard errors to avoid:** When adding a dep that belongs in the negation of an existing conditional, use `else {}` — not a new `if (!is_X) {}` block. And never add `if (is_X) {}` nested inside a block already guarded by that same condition. Both patterns were caught in 3c-transitive review and required manual fixes across CLs. 11. **`public_deps` vs `deps` for exposed headers:** When a target's `.h` file (reachable by consumers) `#include`s a header from dep D, D must be in `public_deps`. GN check enforces this even if no other target currently depends on the source_set. All 5 new `public_deps` additions in the 3c-transitive-12 deletion CL were verified correct on this basis. --- ## Appendix — `chrome/test/base` External Include Counts Audit run 2026-08-31. Relative popularity of `chrome/test/base` headers across the tree: | Target | External includes | Key headers | |--------|------------------:|-------------| | `testing_profile` | ~2,082 | `testing_profile.h`, `testing_profile_manager.h` | | `in_process_browser_test` | 1,588 | `in_process_browser_test.h` | | `ui_test_utils` | 1,388 | `ui_test_utils.h` | | `testing_browser_process` | ~885 | `testing_browser_process.h` | | `chrome_render_view_host_test_harness` | 454 | — | | `mixin_based_in_process_browser_test` | 228 | — | | `chrome_test_utils` | 227 | — | | `interactive_test_utils` | 168 | — | | `platform_browser_test` | 113 | — | | `chrome_test_path_utils` | 89 | — | | `fake_gaia_mixin` | 86 | — | | `browser_with_test_window_test` | 73 | — | | `chrome_ash_test_base` | 64 | — | | `browser_test_waiters` | ~61 | `search_test_utils.h`, `browser_{created,closed}_waiter.h` | | `android_browser_test` | 48 | — | | others | <30 each | — | Top 4 targets account for ~6,000 of ~8,000 total external includes — clearly justify independent targets. Granularity is well-calibrated. --- ## Appendix — Phase 3d: `test_support` consumer migration Phase 3d removes `//chrome/test:test_support` from its ~1,000 consumers (so the aggregator `group("test_support")` can be deleted), mirroring the Phase 3c method for `test_support_ui`. ### Method (per consumer) 1. Remove `//chrome/test:test_support` from the target. 2. `gn check <out> --error-limit=2000 "//dir:*"` — this is the oracle. It prints `Suggestion: Add deps = [ "//x:y" ]` for each now-unreachable `#include`. (Default error limit caps at ~10 and silently truncates; pass `--error-limit=2000`.) 3. Add exactly the suggested granular deps, in sorted order (`git cl format` enforces it). Many consumers need *no* replacement — they already had the specific deps and were only pulling `test_support`'s surface transitively. 4. `testing_profile` vs `testing_profile_impl`: gn check suggests the header-only `testing_profile`; if the `.cc` **instantiates** `TestingProfile`, use `testing_profile_impl` instead (it `public_deps` the header, so the check still passes and the object code links). ### Lessons from the first wave (3d-1 … 3d-5) - **Build the full header → owner map first.** For heavy targets, run `gn check` and collect every `#include → owning target` across all five configs *before* editing. chrome_test_launcher went clean on the first pass this way; piecemeal edits caused phantom cascades. - **Place each dep under the same conditional guard as the source that needs it.** A chromeos-only or `enable_extensions_core`-only target added unconditionally *fails to resolve* on other configs (not just a style nit). Mirror the source's `if (is_chromeos)` / `if (enable_extensions_core)` / `if (!is_android)` guard. - **`public_deps` only for header exposure.** A dep goes in `public_deps` only when one of the target's own `.h` files includes the dep's header (e.g. `chrome_test_launcher.h` includes `chrome_main_delegate.h` → `chrome/app:test_support` is public). Otherwise private `deps`. New `public_deps` blocks go right before `deps`. - **Restricted-visibility internal targets.** Some headers live in targets with a narrow `visibility` (`chrome/common:common_lib` → `//chrome/common/*`; `chrome/common:test_support`, `chrome/app:test_support` → small allowlists). Prefer the public re-exporter (`//chrome/common`); where a test target genuinely includes the header directly (e.g. `extension_test_util.h`, the win crash-reporter client), add a **targeted visibility grant** for that consumer. - **The 5-config set pays off.** `out/win` (local cross-build) caught an `in_process_fuzzer_runner` → ~10-fuzzer cascade and win-only `install_static`/crash-reporter deps; `out/android` / `out/android-desktop` caught `enable_extensions_core` asserts. linux/cros alone would have shipped these to the CQ. - **`net/dns:test_support` is visibility-restricted** → depend on `//net:test_support` (which re-exports it). ### Three failure classes the CQ exposed that local `gn check` can't Even with 5-config `gn check` green, the CQ surfaced three classes of breakage that `test_support`'s huge dep surface had been masking. All are now in the validation playbook: 1. **libfuzzer-only gn-check** (`linux-libfuzzer-asan-rel`). Targets under `chrome/test/fuzzing/**` only exist in a libfuzzer config (`use_libfuzzer` + `enable_mojom_fuzzer`). Validate with a local `out/libfuzzer` dir when touching fuzzing. 2. **Component-build link errors** (debug bots, e.g. `linux-chromeos-compile-dbg`). Local dirs are static release, so `gn check` and static link both pass, but the debug *component* build fails with `undefined symbol` — `test_support` was force-linking a mojom/component `.so` into a test exe. Fix: add the real target as a direct dep (e.g. `enhanced_network_tts:unit_tests` needed its mojom). 3. **Compile-only include-path errors** (`fatal error: '…' file not found`). A source's header transitively includes a header whose include dir comes from a `public_config` (e.g. tflite). `gn check` passes; only a real compile fails. Fix: add the config-carrying target directly (e.g. `chrome/renderer:unit_tests` needed `//third_party/tflite`). **Catch locally by compiling the migrated source_set** (`autoninja -C out/linux chrome/renderer:unit_tests`), not just `gn check`. ### The android-desktop restricted-intermediary trap (3d-12, extensions) `test_support` was a **visibility-approved intermediary**. A restricted test-only target (e.g. `//chrome/common:test_support`, which provides `extension_test_util.h` under `enable_extensions_core` and whitelists `//chrome/test:*`) was reachable by a consumer only through `consumer → //chrome/test:test_support → //chrome/common:test_support`. Removing the intermediary breaks the consumer — but **only on android-desktop** (`is_desktop_android`, `enable_extensions=false`, `enable_extensions_core=true`). The other four configs (`enable_extensions=true`) reach the same header through the normal dep graph, so they stay clean and hide the problem. - **Fix (replicate on the consumer side):** add the restricted target as a direct dep **and** add the consumer to its `visibility` list. (Same shape as glic `//chrome/browser/glic/public:provider_features`.) - **Gotcha 1 — a fatal graph error masks the include-check.** `--fix` can add an `!is_android`-only target (e.g. `ui_test_utils`) *unconditionally*, producing `ERROR Unresolved dependencies` on android-desktop. That halts gn's analysis **before** it checks includes, so you see "1 error" hiding dozens. Fix the graph error first (guard the dep under `if (!is_android)`), then re-run `--fix` — it now applies the granular deps it couldn't reach. - **Gotcha 2 — ambiguous header.** A header can belong to both a C++ target and an android `java_enum_srcjar` (e.g. `browser_window_interface.h`). Resolve by adding a **direct** dep on the C++ target. - **Always diff against the parent commit's android-desktop baseline** before calling something a regression — extensions already had **65** android-desktop gn-check errors at HEAD (independent of the migration); the CL drove it to **0**. ### The leech cascade and the de-leech prep CL (3d-10) The single biggest lesson of this wave. Two parts: 1. **Validate with a FULL-TREE `gn check out/X` (no target args), never scoped to the touched directory.** Removing `//chrome/test:test_support` from any target can break *leecher* targets **anywhere in the tree**, so `gn check out/X //touched/dir:*` gives a false "clean." CQ's `generate_build_files` step is full-tree, so it catches what the scoped check missed. Run the full-tree check on all five configs for every CL. 2. **`public_deps` forwarders cause tree-wide leech cascades.** Several test_support source_sets (`//chrome/browser/glic/test_support`, `//chrome/browser/apps/platform_apps:browser_test_support`, the extensions test targets) re-export `//chrome/test:test_support` through their `public_deps`. Dozens of unrelated targets (`core_browser_tests`, the webui test targets, `sharing`, `ui/tabs`, `local_network_access`, `chromeos/policy/dlp`, `extensions:browser_tests`, …) were leeching test helpers (`ui_test_utils`, `interactive_test_utils`, `testing_profile`, …) through that forwarding. Trace a leech with `gn path out/X //leecher //forwarder` — a `--[private]-->` edge is the leech. gn check on the forwarder target itself stays green; only the full-tree check reveals the leechers. When several dir-CLs de-leech shared forwarders, the *same* leecher targets break in more than one CL, so per-CL fixes entangle and produce repeated rebase conflicts. The fix is a **prep CL at the bottom of the stack (3d-10)** that gives every leecher its direct deps up front — purely additive, no-ops until the forwarding is removed — plus the restricted-target visibility grants. Then each dir-CL (glic, apps, extensions) removes only its own directory's test_support, cleanly. ToT drift can add new leechers over time (e.g. a new include in `tab_strip_browsertest.cc` made `ui/views/tabs:browser_tests` need `tabs/common`); fix those in the prep CL too. ### Validation Every CL is **full-tree** `gn check`-clean (`gn check out/X` with **no target args** — not scoped to the touched dir, see the leech-cascade note above) on five local configs before upload: `out/{linux, cros, android, android-desktop, win}` (plus `out/libfuzzer` for fuzzing CLs), and heavy `unit_tests` targets are compiled with `autoninja` to catch the include-path class above. Windows uses a local cross-build (prebuilt toolchain), so `if (is_win)` dep blocks are caught locally rather than on the CQ. ### The `chrome/browser:test_support` visibility question (audited — not a blocker) > [!tip] For reviewers > A natural worry: `//chrome/browser:test_support` has a **restricted `visibility` allowlist** (`chrome/browser/BUILD.gn`). If Phase 3d consumers needed to depend on it directly, they couldn't — a potential blocker to deleting `test_support`. > > **We audited this** (2026-11-13): temporarily dropped `//chrome/browser:test_support` from `test_support`'s `public_deps` and ran full-tree `gn check` on all five configs. Result: **`//chrome/browser:test_support` is never the dependency gn check asks consumers to add (0 occurrences).** It only appears as an *intermediate node* that re-exports granular, per-directory test_support targets. > > The headers consumers actually include are owned by **publicly-visible granular targets** — e.g. `//chrome/browser/signin:test_support`, `//chrome/browser/safe_browsing:test_support`, `//chrome/browser/interstitials:test_support`, `//chrome/browser/ui/browser_window/test:test_support`, `//chrome/browser/media/webrtc:test_support`, `//chrome/browser/autofill:test_support`, `//chrome/browser/sessions:test_support`, `//chrome/browser:global_features_test_support` (~18 targets, **all `public`**). Consumers add these directly; no visibility change and no owner negotiation needed. Scale of that granular-dep need (distinct consumer targets, by config): linux 60, cros 68, win 61, android-desktop 24, android 0 — **union 77**, overlapping the normal 3d consumer set. The only residual cleanup: the final deletion CL also removes the now-stale `"//chrome/test:test_support"` entry from `chrome/browser:test_support`'s own `visibility` list. --- ## References - [Project Bedrock design doc](https://chromium.googlesource.com/chromium/src/+/main/docs/modularization.md) - `chrome/test/interaction/BUILD.gn` — first CL in this effort; reference for BUILD.gn pattern - `chrome/test/base/BUILD.gn` — per-subdirectory target list - `chrome/test/BUILD.gn` — monolith, being reduced - Bug tracker: [crbug.com/353332589](https://crbug.com/353332589)