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