[bazel] Fix test files so they compile individually

Most of these are pretty innocuous changes, like adding
missing headers or moving certain includes behind #ifdefs.

A non-trivial change is creating tests/SkSLDSLUtil.cpp
so tests/SkSLDSLOnlyTest.cpp can depend on it instead
of depending on another Test file. We would like our
test files to be independent of each other as much
as possible.

Change-Id: I3361fbefa8a630aec9dddd28a7b9666dacbb30bc
Bug: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/585762
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
39 files changed