[bazel] Rewrite GM tests to use the modular build.

This CL is the GM counterpart to e.g. https://skia-review.googlesource.com/c/skia/+/815097.

Bug: b/40045064
Bug: b/40045301
Change-Id: I618c870a5ef92a4b4fab6f1122a5a181a7bedf51
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/816137
Commit-Queue: Leandro Lovisolo <lovisolo@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
15 files changed