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

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

Issue 2745293005: Moving mojo/validation test into LayoutTests (Closed)
Patch Set: added sources to script action Created 3 years, 9 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
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 06d0f9548014c11d8e2da029e06a3ed3f17735ec..c901f51b5173c03381561cf97dc760a06e334c97 100644
--- a/mojo/public/interfaces/bindings/tests/BUILD.gn
+++ b/mojo/public/interfaces/bindings/tests/BUILD.gn
@@ -4,6 +4,40 @@
import("../../../tools/bindings/mojom.gni")
+group("tests") {
+ testonly = true
+ deps = [
+ ":test_interfaces",
+ ":validation_test_data",
alokp 2017/03/27 01:50:09 nit: Would it make sense to create a single target
+ ":validation_test_data_list",
+ ]
+}
+
+action("validation_test_data_list") {
+ script = "//mojo/public/tools/bindings/gen_data_files_list.py"
+ sources = [
+ "data/validation",
+ ]
+ outputs = [
+ "$target_gen_dir/validation_files.txt",
+ ]
+ args = [
+ "-d",
+ rebase_path("data/validation", root_build_dir),
+ "-o",
+ rebase_path(outputs[0], root_build_dir),
+ ]
+}
+
+copy("validation_test_data") {
+ sources = [
+ "data/validation",
+ ]
+ outputs = [
+ "$target_gen_dir/data/{{source_file_part}}",
+ ]
+}
+
mojom("test_interfaces") {
testonly = true
sources = [

Powered by Google App Engine
This is Rietveld 408576698