blob: 5d9a8ab03400b5465b5fa251aafea84ea10ecc94 [file]
# Copyright 2014 The Chromium Authors. All rights reserved.
# 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")
test("dart_unittests") {
sources = [
"run_dart_tests.cc",
]
deps = [
":dart_to_cpp_unittests",
":expect",
"//base",
"//crypto:crypto",
"//mojo/dart/embedder:dart_controller",
"//mojo/edk/test:run_all_unittests",
"//mojo/edk/test:test_support",
"//mojo/public/cpp/environment",
"//mojo/public/cpp/system",
"//mojo/public/cpp/utility",
"//mojo/environment:chromium",
]
}
copy("expect") {
sources = [
"//mojo/dart/testing/expect.dart",
]
outputs = [
"{{source_gen_dir}}/{{source_file_part}}",
]
}
source_set("dart_to_cpp_unittests") {
testonly = true
sources = [
"dart_to_cpp_tests.cc",
]
deps = [
":dart_to_cpp_bindings",
"//crypto:crypto",
"//mojo/dart/embedder:dart_controller",
"//mojo/edk/test:test_support",
"//mojo/public/cpp/bindings",
"//mojo/public/cpp/system",
"//mojo/public/interfaces/bindings/tests:test_interfaces",
"//testing/gtest",
]
}
mojom("dart_to_cpp_bindings") {
sources = [
"dart_to_cpp.mojom",
]
}