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

Side by Side Diff: mojo/edk/js/tests/BUILD.gn

Issue 2645873003: Cleanup mojo-js tests. (Closed)
Patch Set: fixes isolate_map Created 3 years, 11 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 unified diff | Download patch
OLDNEW
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 7
7 source_set("js_to_cpp_tests") { 8 # TODO(hansmuller): The organization of tests in this directory is weird:
9 # * Really, js_unittests tests public stuff, so that should live in public
10 # and be reworked as some sort of apptest.
11 # * Both js_unittests and js_integration_tests should auto-generate their
12 # tests somehow. The .cc files are just test runner stubs, including
13 # explicit lists of .js files.
14
15 group("tests") {
16 testonly = true
17 deps = [
18 ":mojo_js_integration_tests",
19 ":mojo_js_unittests",
20 ]
21 }
22
23 test("mojo_js_integration_tests") {
8 testonly = true 24 testonly = true
9 25
10 deps = [ 26 deps = [
11 ":js_to_cpp_bindings", 27 ":js_to_cpp_bindings",
12 "//gin:gin_test", 28 "//gin:gin_test",
13 "//mojo/common", 29 "//mojo/common",
14 "//mojo/edk/js", 30 "//mojo/edk/js",
31 "//mojo/edk/test:run_all_unittests",
15 "//mojo/edk/test:test_support", 32 "//mojo/edk/test:test_support",
16 "//mojo/public/cpp/bindings", 33 "//mojo/public/cpp/bindings",
17 "//mojo/public/cpp/system", 34 "//mojo/public/cpp/system",
18 "//mojo/public/interfaces/bindings/tests:test_interfaces", 35 "//mojo/public/interfaces/bindings/tests:test_interfaces",
19 "//mojo/public/interfaces/bindings/tests:test_interfaces_experimental", 36 "//mojo/public/interfaces/bindings/tests:test_interfaces_experimental",
20 ] 37 ]
21 38
22 sources = [ 39 sources = [
23 "js_to_cpp_tests.cc", 40 "js_to_cpp_tests.cc",
24 ] 41 ]
25 42
26 data = [ 43 data = [
27 "binding_tests.js",
28 "connection_tests.js",
29 "interface_ptr_tests.js",
30 "js_to_cpp_tests.js", 44 "js_to_cpp_tests.js",
31 "sample_service_tests.js",
32 ] 45 ]
33 46
34 configs += [ "//v8:external_startup_data" ] 47 configs += [ "//v8:external_startup_data" ]
35 } 48 }
36 49
37 mojom("js_to_cpp_bindings") { 50 mojom("js_to_cpp_bindings") {
38 sources = [ 51 sources = [
39 "js_to_cpp.mojom", 52 "js_to_cpp.mojom",
40 ] 53 ]
41 } 54 }
55
56 test("mojo_js_unittests") {
57 deps = [
58 "//base",
59 "//gin:gin_test",
60 "//mojo/edk/js",
61 "//mojo/edk/test:run_all_unittests",
62 "//mojo/edk/test:test_support",
63 "//mojo/public/cpp/system",
64 "//mojo/public/interfaces/bindings/tests:test_interfaces",
65 "//mojo/public/interfaces/bindings/tests:test_interfaces_experimental",
66 "//mojo/public/js:tests",
67 ]
68
69 sources = [
70 "//mojo/edk/js/handle_unittest.cc",
71 "run_js_unittests.cc",
72 ]
73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698