Index: mojo/dart/embedder/test/BUILD.gn |
diff --git a/mojo/dart/embedder/test/BUILD.gn b/mojo/dart/embedder/test/BUILD.gn |
index 78c1d2a7b9e2484448c69eecf68b78e36503fb04..ce4e6917e24540dd5c2e426914b4ce41969b28dc 100644 |
--- a/mojo/dart/embedder/test/BUILD.gn |
+++ b/mojo/dart/embedder/test/BUILD.gn |
@@ -13,6 +13,11 @@ action("generate_test_snapshot_bin") { |
"test_snapshot.dart", |
"//dart/runtime/tools/create_snapshot_bin.py", |
"//mojo/dart/embedder/builtin.dart", |
+ "//mojo/dart/embedder/core/buffer_patch.dart", |
zra
2015/02/23 23:21:02
rm
Cutch
2015/02/24 15:36:48
Done.
|
+ "//mojo/dart/embedder/core/data_pipe_patch.dart", |
+ "//mojo/dart/embedder/core/handle_patch.dart", |
+ "//mojo/dart/embedder/core/handle_watcher_patch.dart", |
+ "//mojo/dart/embedder/core/message_pipe_patch.dart", |
"//mojo/public/dart/bindings.dart", |
"//mojo/public/dart/core.dart", |
"//mojo/public/dart/src/buffer.dart", |
@@ -35,18 +40,24 @@ action("generate_test_snapshot_bin") { |
output, |
] |
- gen_snapshot_dir = get_label_info( |
- "//dart/runtime/bin:gen_snapshot($host_toolchain)", "root_out_dir") |
+ gen_snapshot_dir = |
+ get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", |
+ "root_out_dir") |
script = "//dart/runtime/tools/create_snapshot_bin.py" |
builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart") |
bindings_path = rebase_path("//mojo/public/dart/bindings.dart") |
core_path = rebase_path("//mojo/public/dart/core.dart") |
args = [ |
- "--executable", rebase_path("$gen_snapshot_dir/gen_snapshot"), |
- "--package_root", rebase_path("$root_gen_dir"), |
- "--script", rebase_path("test_snapshot.dart"), |
- "--output_bin", rebase_path(output, root_build_dir), |
- "--target_os", os, |
+ "--executable", |
+ rebase_path("$gen_snapshot_dir/gen_snapshot"), |
+ "--package_root", |
+ rebase_path("$root_gen_dir"), |
+ "--script", |
+ rebase_path("test_snapshot.dart"), |
+ "--output_bin", |
+ rebase_path(output, root_build_dir), |
+ "--target_os", |
+ os, |
"--url_mapping=dart:mojo_bindings,$bindings_path", |
"--url_mapping=dart:mojo_builtin,$builtin_path", |
"--url_mapping=dart:mojo_core,$core_path", |
@@ -69,14 +80,17 @@ action("generate_test_snapshot_file") { |
script = "//dart/runtime/tools/create_snapshot_file.py" |
args = [ |
- "--input_bin", rebase_path("$target_gen_dir/test_snapshot_gen.bin"), |
- "--input_cc", rebase_path("//mojo/dart/embedder/snapshot.cc.tmpl"), |
- "--output", rebase_path(output), |
+ "--input_bin", |
+ rebase_path("$target_gen_dir/test_snapshot_gen.bin"), |
+ "--input_cc", |
+ rebase_path("//mojo/dart/embedder/snapshot.cc.tmpl"), |
+ "--output", |
+ rebase_path(output), |
] |
} |
source_set("dart_controller_for_test") { |
- testonly=true |
+ testonly = true |
sources = [ |
"$target_gen_dir/test_snapshot.cc", |
] |
@@ -97,6 +111,7 @@ test("dart_unittests") { |
":dart_to_cpp_unittests", |
":expect", |
":validation_test_input_parser", |
+ ":async_helper", |
"//base", |
"//crypto:crypto", |
"//mojo/dart/embedder:dart_controller_no_snapshot", |
@@ -128,6 +143,15 @@ copy("validation_test_input_parser") { |
] |
} |
+copy("async_helper") { |
+ sources = [ |
+ "//mojo/dart/testing/async_helper.dart", |
+ ] |
+ outputs = [ |
+ "{{source_gen_dir}}/{{source_file_part}}", |
+ ] |
+} |
+ |
source_set("dart_to_cpp_unittests") { |
testonly = true |
sources = [ |