blob: 54319ee04249a22cf1e4c764958c54299040316a [file] [log] [blame] [edit]
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//common-mk/mojom_bindings_generator.gni")
import("//common-mk/pkg_config.gni")
import("//diagnostics/bindings/connectivity/generator.gni")
if (use.test) {
pkg_config("pkg_deps_test") {
pkg_deps = [
"libchrome",
"libchrome-test",
]
}
generate_mojom_bindings("connectivity_test_mojom") {
mojo_root = "${platform2_root}"
standalone = true
sources = [
"test_client.mojom",
"test_common.mojom",
"test_server.mojom",
]
mojo_extra_args = [
"--typemap",
rebase_path("type_mapping.json"),
]
}
mojom_connectivity("connectivity_test_mojom_conn") {
mojo_root = "${platform2_root}"
deps = [ ":connectivity_test_mojom" ]
generator_overrides = [ "generator_override.json" ]
sources = [
"test_client.mojom",
"test_common.mojom",
"test_server.mojom",
]
}
source_set("test") {
configs += [ ":pkg_deps_test" ]
deps = [ ":connectivity_test_mojom_conn" ]
sources = [ "connectivity_test.cc" ]
}
}