OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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("//third_party/WebKit/Source/core/core.gni") | 6 import("//third_party/WebKit/Source/core/core.gni") |
6 | 7 |
7 blink_core_sources("mojo") { | 8 blink_core_sources("mojo") { |
8 sources = [ | 9 sources = [ |
9 "Mojo.cpp", | 10 "Mojo.cpp", |
10 "Mojo.h", | 11 "Mojo.h", |
11 "MojoHandle.cpp", | 12 "MojoHandle.cpp", |
12 "MojoHandle.h", | 13 "MojoHandle.h", |
13 "MojoWatcher.cpp", | 14 "MojoWatcher.cpp", |
14 "MojoWatcher.h", | 15 "MojoWatcher.h", |
15 "testing/MojoInterfaceInterceptor.cpp", | 16 "testing/MojoInterfaceInterceptor.cpp", |
16 "testing/MojoInterfaceInterceptor.h", | 17 "testing/MojoInterfaceInterceptor.h", |
17 "testing/MojoInterfaceRequestEvent.cpp", | 18 "testing/MojoInterfaceRequestEvent.cpp", |
18 "testing/MojoInterfaceRequestEvent.h", | 19 "testing/MojoInterfaceRequestEvent.h", |
19 ] | 20 ] |
20 | 21 |
21 deps = [ | 22 deps = [ |
22 "//mojo/public/cpp/system", | 23 "//mojo/public/cpp/system", |
23 "//services/service_manager/public/cpp", | 24 "//services/service_manager/public/cpp", |
24 ] | 25 ] |
25 } | 26 } |
| 27 |
| 28 source_set("unit_tests") { |
| 29 testonly = true |
| 30 sources = [ |
| 31 "tests/JsToCppTest.cpp", |
| 32 ] |
| 33 |
| 34 data = [ |
| 35 "tests/JsToCppTest.js", |
| 36 ] |
| 37 |
| 38 configs += [ |
| 39 "//third_party/WebKit/Source/core:blink_core_pch", |
| 40 "//third_party/WebKit/Source:config", |
| 41 "//third_party/WebKit/Source:inside_blink", |
| 42 ] |
| 43 |
| 44 deps = [ |
| 45 ":test_bindings_blink", |
| 46 "//mojo/public/cpp/bindings", |
| 47 "//testing/gtest", |
| 48 "//third_party/WebKit/Source/core:core", |
| 49 "//third_party/WebKit/Source/core:testing", |
| 50 ] |
| 51 |
| 52 data_deps = [ |
| 53 ":test_bindings", # For JS bindings: crbug.com/729649. |
| 54 "//mojo/public/js:new_bindings", |
| 55 ] |
| 56 } |
| 57 |
| 58 mojom("test_bindings") { |
| 59 sources = [ |
| 60 "tests/JsToCpp.mojom", |
| 61 ] |
| 62 } |
OLD | NEW |