|  | # 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/test.gni") | 
|  | import("//src/sys/build/fuchsia_unittest_package.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" ] | 
|  | } |