More BUILD.gn fixes for building Tint in Chromium

Bug: None
Change-Id: Ib9ed45e428aefd73eeefdbe34d03d9bc499d3679
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/48605
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
diff --git a/fuzzers/BUILD.gn b/fuzzers/BUILD.gn
index cfb23f2..cb5646d 100644
--- a/fuzzers/BUILD.gn
+++ b/fuzzers/BUILD.gn
@@ -30,7 +30,10 @@
       "${tint_root_dir}/src:tint_common_config",
     ]
 
-    public_deps = [ "${tint_root_dir}/src:libtint" ]
+    public_deps = [
+      "${tint_root_dir}/src:libtint",
+      "${tint_spirv_tools_dir}/:spvtools_val",
+    ]
 
     sources = [
       "tint_common_fuzzer.cc",
diff --git a/test/BUILD.gn b/test/BUILD.gn
index 4dd0453..6b4a159 100644
--- a/test/BUILD.gn
+++ b/test/BUILD.gn
@@ -126,6 +126,8 @@
     sources += [ "../src/utils/command_other.cc" ]
     sources += [ "../src/utils/tmpfile_other.cc" ]
   }
+
+  configs += [ ":tint_unittests_config" ]
 }
 
 template("tint_unittests_source_set") {