blob: 088613a7c806d78d0aefb8126bc3c41f488428c1 [file] [log] [blame]
# Copyright 2019 The Fuchsia 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("//build/components.gni")
import("//build/test.gni")
group("tests") {
testonly = true
deps = [ ":backlight-test-pkg" ]
}
test("backlight-test") {
configs += [ "//build/unification/config:zircon-migrated" ]
output_name = "backlight-test"
sources = [ "backlight-test.cc" ]
deps = [
"//sdk/fidl/fuchsia.hardware.backlight:fuchsia.hardware.backlight_llcpp",
"//sdk/lib/fdio",
"//zircon/public/lib/zxtest",
]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
}
fuchsia_unittest_package("backlight-test-pkg") {
package_name = "backlight-test"
deps = [ ":backlight-test" ]
}