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