| # Copyright 2021 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") |
| |
| source_set("support") { |
| testonly = true |
| sources = [ |
| "network_device_client.cc", |
| "test_network_device_ifc.cc", |
| ] |
| public = [ |
| "network_device_client.h", |
| "test_network_device_ifc.h", |
| ] |
| public_deps = [ |
| "//sdk/fidl/fuchsia.hardware.network.driver:fuchsia.hardware.network.driver_cpp", |
| "//sdk/lib/async_patterns/testing/cpp", |
| "//sdk/lib/driver/testing/cpp", |
| "//sdk/lib/fidl", |
| ] |
| } |
| |
| test("components_test") { |
| testonly = true |
| sources = [ |
| "frame_container_test.cc", |
| "frame_storage_test.cc", |
| "frame_test.cc", |
| "network_device_test.cc", |
| "network_port_test.cc", |
| "priority_queue_test.cc", |
| "test_driver.cc", |
| ] |
| public_deps = [ |
| ":support", |
| "//sdk/lib/async:async-cpp", |
| "//sdk/lib/driver/testing/cpp", |
| "//sdk/lib/driver/testing/cpp:minimal_compat_environment", |
| "//src/connectivity/wlan/drivers/lib/components:cpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/testing/predicates", |
| "//third_party/googletest:gmock", |
| ] |
| } |
| |
| fuchsia_unittest_package("wlan-drivers-components-tests") { |
| deps = [ ":components_test" ] |
| test_specs = { |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":wlan-drivers-components-tests" ] |
| } |