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_edk.gni") | |
6 | |
7 # TODO(hansmuller): The organization of tests in this directory is weird: | 5 # TODO(hansmuller): The organization of tests in this directory is weird: |
8 # * Really, js_unittests tests public stuff, so that should live in public | 6 # * Really, js_unittests tests public stuff, so that should live in public |
9 # and be reworked as some sort of apptest. | 7 # and be reworked as some sort of apptest. |
10 # * Both js_unittests and js_integration_tests should auto-generate their | 8 # * Both js_unittests and js_integration_tests should auto-generate their |
11 # tests somehow. The .cc files are just test runner stubs, including | 9 # tests somehow. The .cc files are just test runner stubs, including |
12 # explicit lists of .js files. | 10 # explicit lists of .js files. |
13 group("tests") { | 11 group("tests") { |
14 testonly = true | 12 testonly = true |
15 deps = [ | 13 deps = [ |
16 "test:js_unittests", | 14 "test:js_unittests", |
17 "test:js_integration_tests", | 15 "test:js_integration_tests", |
18 ] | 16 ] |
19 } | 17 } |
20 | 18 |
21 mojo_edk_source_set("js") { | 19 source_set("system") { |
22 sources = [ | 20 sources = [ |
23 "core.cc", | 21 "core.cc", |
24 "core.h", | 22 "core.h", |
25 "drain_data.cc", | 23 "drain_data.cc", |
26 "drain_data.h", | 24 "drain_data.h", |
27 "handle.cc", | 25 "handle.cc", |
28 "handle.h", | 26 "handle.h", |
29 "handle_close_observer.h", | 27 "handle_close_observer.h", |
30 "mojo_runner_delegate.cc", | 28 "mojo_runner_delegate.cc", |
31 "mojo_runner_delegate.h", | 29 "mojo_runner_delegate.h", |
32 "support.cc", | 30 "support.cc", |
33 "support.h", | 31 "support.h", |
34 "threading.cc", | 32 "threading.cc", |
35 "threading.h", | 33 "threading.h", |
36 "waiting_callback.cc", | 34 "waiting_callback.cc", |
37 "waiting_callback.h", | 35 "waiting_callback.h", |
38 ] | 36 ] |
39 | 37 |
40 public_deps = [ | 38 public_deps = [ |
41 "//base", | 39 "//base", |
42 "//gin", | 40 "//gin", |
| 41 "//mojo/public/cpp/environment", |
| 42 "//mojo/public/cpp/system", |
43 "//v8", | 43 "//v8", |
44 ] | 44 ] |
45 | |
46 mojo_sdk_deps = [ | |
47 "mojo/public/cpp/environment", | |
48 "mojo/public/cpp/system", | |
49 ] | |
50 } | 45 } |
51 | 46 |
52 mojo_edk_source_set("js_unittests") { | 47 source_set("js_unittests") { |
53 testonly = true | 48 testonly = true |
54 sources = [ | 49 sources = [ |
55 "handle_unittest.cc", | 50 "handle_unittest.cc", |
56 ] | 51 ] |
57 | 52 |
58 deps = [ | 53 deps = [ |
| 54 ":system", |
| 55 "//mojo/edk/test:test_support", |
| 56 "//mojo/public/cpp/system", |
59 "//testing/gtest", | 57 "//testing/gtest", |
60 ] | 58 ] |
61 | |
62 mojo_edk_deps = [ | |
63 "mojo/edk/js", | |
64 "mojo/edk/test:test_support", | |
65 ] | |
66 | |
67 mojo_sdk_deps = [ "mojo/public/cpp/system" ] | |
68 } | 59 } |
OLD | NEW |