| Index: third_party/WebKit/Source/core/mojo/BUILD.gn
|
| diff --git a/third_party/WebKit/Source/core/mojo/BUILD.gn b/third_party/WebKit/Source/core/mojo/BUILD.gn
|
| index 202d78ebe01b8e11225838ba4881f6a453b8c2fa..aaa52acaed158c6fd807a524718ac88c0d0fb0e5 100644
|
| --- a/third_party/WebKit/Source/core/mojo/BUILD.gn
|
| +++ b/third_party/WebKit/Source/core/mojo/BUILD.gn
|
| @@ -2,6 +2,7 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import("//mojo/public/tools/bindings/mojom.gni")
|
| import("//third_party/WebKit/Source/core/core.gni")
|
|
|
| blink_core_sources("mojo") {
|
| @@ -23,3 +24,39 @@ blink_core_sources("mojo") {
|
| "//services/service_manager/public/cpp",
|
| ]
|
| }
|
| +
|
| +source_set("unit_tests") {
|
| + testonly = true
|
| + sources = [
|
| + "tests/JsToCppTest.cpp",
|
| + ]
|
| +
|
| + data = [
|
| + "tests/JsToCppTest.js",
|
| + ]
|
| +
|
| + configs += [
|
| + "//third_party/WebKit/Source/core:blink_core_pch",
|
| + "//third_party/WebKit/Source:config",
|
| + "//third_party/WebKit/Source:inside_blink",
|
| + ]
|
| +
|
| + deps = [
|
| + ":test_bindings_blink",
|
| + "//mojo/public/cpp/bindings",
|
| + "//testing/gtest",
|
| + "//third_party/WebKit/Source/core:core",
|
| + "//third_party/WebKit/Source/core:testing",
|
| + ]
|
| +
|
| + data_deps = [
|
| + ":test_bindings", # For JS bindings: crbug.com/729649.
|
| + "//mojo/public/js:new_bindings",
|
| + ]
|
| +}
|
| +
|
| +mojom("test_bindings") {
|
| + sources = [
|
| + "tests/JsToCpp.mojom",
|
| + ]
|
| +}
|
|
|