| # 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("$zx/public/gn/fidl.gni") |
| |
| if (current_toolchain != default_toolchain) { |
| test_driver("mock-device") { |
| sources = [ |
| "device.cpp", |
| "fidl.cpp", |
| ] |
| deps = [ |
| ":fuchsia.device.mock.c", |
| "$zx/system/banjo/ddk-protocol-test", |
| "$zx/system/ulib/ddk", |
| "$zx/system/ulib/ddktl", |
| "$zx/system/ulib/fbl", |
| "$zx/system/ulib/fdio", |
| "$zx/system/ulib/fidl", |
| "$zx/system/ulib/zircon", |
| "$zx/system/ulib/zx", |
| "$zx/system/ulib/zxcpp", |
| ] |
| } |
| } |
| |
| fidl_library("fuchsia.device.mock") { |
| visibility = [ ":*" ] |
| testonly = true |
| sources = [ |
| "mock-device.fidl", |
| ] |
| } |