OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 source_set("dart_controller_for_test") { | 8 source_set("dart_controller_for_test") { |
9 testonly = true | 9 testonly = true |
10 sources = [ | 10 sources = [ |
11 "$root_gen_dir/dart_snapshot.cc", | 11 "$root_gen_dir/dart_snapshot.cc", |
12 ] | 12 ] |
13 deps = [ | 13 deps = [ |
14 "//mojo/dart/embedder:dart_controller_no_snapshot", | 14 "//mojo/dart/embedder:dart_controller_no_snapshot", |
15 "//mojo/dart/embedder:generate_snapshot_file", | 15 "//mojo/dart/embedder:generate_snapshot_file", |
16 ] | 16 ] |
17 } | 17 } |
18 | 18 |
19 test("dart_unittests") { | 19 test("dart_unittests") { |
20 sources = [ | 20 sources = [ |
21 "run_dart_tests.cc", | 21 "run_dart_tests.cc", |
22 "validation_unittest.cc", | 22 "validation_unittest.cc", |
23 ] | 23 ] |
24 deps = [ | 24 deps = [ |
25 "//mojo/public/dart:mojo", | 25 "//mojo/public/dart:mojo", |
26 "//mojo/dart/testing", | 26 "//mojo/dart/testing", |
27 ":dart_controller_for_test", | 27 ":dart_controller_for_test", |
28 ":dart_to_cpp_unittests", | 28 ":dart_to_cpp_unittests", |
29 "//base", | 29 "//base", |
30 "//crypto:crypto", | |
31 "//mojo/dart/embedder:dart_controller_no_snapshot", | 30 "//mojo/dart/embedder:dart_controller_no_snapshot", |
32 "//mojo/edk/test:run_all_unittests", | 31 "//mojo/edk/test:run_all_unittests", |
33 "//mojo/edk/test:test_support", | 32 "//mojo/edk/test:test_support", |
34 "//mojo/public/cpp/environment", | 33 "//mojo/public/cpp/environment", |
35 "//mojo/public/cpp/system", | 34 "//mojo/public/cpp/system", |
36 "//mojo/public/cpp/utility", | 35 "//mojo/public/cpp/utility", |
37 "//mojo/environment:chromium", | 36 "//mojo/environment:chromium", |
38 "//testing/gtest", | 37 "//testing/gtest", |
39 ] | 38 ] |
40 } | 39 } |
41 | 40 |
42 source_set("dart_to_cpp_unittests") { | 41 source_set("dart_to_cpp_unittests") { |
43 testonly = true | 42 testonly = true |
44 sources = [ | 43 sources = [ |
45 "dart_to_cpp_tests.cc", | 44 "dart_to_cpp_tests.cc", |
46 ] | 45 ] |
47 deps = [ | 46 deps = [ |
48 ":dart_controller_for_test", | 47 ":dart_controller_for_test", |
49 ":dart_to_cpp_bindings", | 48 ":dart_to_cpp_bindings", |
50 "//base", | 49 "//base", |
51 "//crypto", | |
52 "//mojo/dart/embedder:dart_controller_no_snapshot", | 50 "//mojo/dart/embedder:dart_controller_no_snapshot", |
53 "//mojo/edk/test:test_support", | 51 "//mojo/edk/test:test_support", |
54 "//mojo/public/cpp/bindings", | 52 "//mojo/public/cpp/bindings", |
55 "//mojo/public/cpp/system", | 53 "//mojo/public/cpp/system", |
56 "//mojo/public/interfaces/bindings/tests:test_interfaces", | 54 "//mojo/public/interfaces/bindings/tests:test_interfaces", |
57 "//mojo/public/interfaces/bindings/tests:test_interfaces_experimental", | 55 "//mojo/public/interfaces/bindings/tests:test_interfaces_experimental", |
58 "//testing/gtest", | 56 "//testing/gtest", |
59 ] | 57 ] |
60 } | 58 } |
61 | 59 |
62 mojom("dart_to_cpp_bindings") { | 60 mojom("dart_to_cpp_bindings") { |
63 sources = [ | 61 sources = [ |
64 "dart_to_cpp.mojom", | 62 "dart_to_cpp.mojom", |
65 ] | 63 ] |
66 } | 64 } |
OLD | NEW |