Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: mojo/public/interfaces/bindings/tests/BUILD.gn

Issue 2853293003: Moving mojo/validation test into LayoutTests (Closed)
Patch Set: moves index file outside data dir Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/js/tests/run_js_unittests.cc ('k') | mojo/public/js/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/interfaces/bindings/tests/BUILD.gn
diff --git a/mojo/public/interfaces/bindings/tests/BUILD.gn b/mojo/public/interfaces/bindings/tests/BUILD.gn
index e496eb656c0f16063a48630c66e826207c815f25..7fa34eb17f9d315c2d7acc5c8f3f803ba7445a65 100644
--- a/mojo/public/interfaces/bindings/tests/BUILD.gn
+++ b/mojo/public/interfaces/bindings/tests/BUILD.gn
@@ -4,6 +4,44 @@
import("../../../tools/bindings/mojom.gni")
+group("tests") {
+ testonly = true
+ deps = [
+ ":test_interfaces",
+ ]
+ data_deps = [
+ ":test_data",
+ ":test_data_list",
+ ]
+}
+
+copy("test_data") {
+ testonly = true
+ sources = [
+ "data/validation",
+ ]
+ outputs = [
+ "$root_gen_dir/layout_test_data/{{source_root_relative_dir}}/{{source_file_part}}",
+ ]
+}
+
+action_foreach("test_data_list") {
+ testonly = true
+ script = "//mojo/public/tools/bindings/gen_data_files_list.py"
+ sources = [
+ "data/validation",
+ ]
+ outputs = [
+ "$root_gen_dir/layout_test_data/{{source_root_relative_dir}}/{{source_file_part}}_index.txt",
+ ]
+ args = [
+ "-d",
+ rebase_path(sources[0], root_build_dir),
+ "-o",
+ rebase_path(outputs[0], root_build_dir),
+ ]
+}
+
mojom("test_interfaces") {
testonly = true
sources = [
« no previous file with comments | « mojo/edk/js/tests/run_js_unittests.cc ('k') | mojo/public/js/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698