| # 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/config/fuchsia/rules.gni") |
| import("//build/package.gni") |
| import("//build/test/test_package.gni") |
| |
| executable("assoc_unittests") { |
| output_name = "assoc_unittests" |
| |
| testonly = true |
| |
| sources = [ "assoc_unittests.cc" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.wlan.ieee80211", |
| "//src/connectivity/wlan/drivers/testing/lib/sim-env", |
| "//src/connectivity/wlan/drivers/testing/lib/sim-fake-ap", |
| "//src/lib/fxl/test:gtest_main", |
| ] |
| } |
| |
| executable("auth_unittests") { |
| output_name = "auth_unittests" |
| |
| testonly = true |
| |
| sources = [ "auth_unittests.cc" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.wlan.ieee80211", |
| "//src/connectivity/wlan/drivers/testing/lib/sim-env", |
| "//src/connectivity/wlan/drivers/testing/lib/sim-fake-ap", |
| "//src/lib/fxl/test:gtest_main", |
| ] |
| } |
| |
| executable("beacon_unittests") { |
| output_name = "beacon_unittests" |
| |
| testonly = true |
| |
| sources = [ "beacon_unittests.cc" ] |
| |
| deps = [ |
| "//garnet/lib/wlan/protocol", |
| "//sdk/fidl/fuchsia.wlan.ieee80211", |
| "//src/connectivity/wlan/drivers/testing/lib/sim-env", |
| "//src/connectivity/wlan/drivers/testing/lib/sim-fake-ap", |
| "//src/lib/fxl/test:gtest_main", |
| "//third_party/googletest:gmock", |
| "//third_party/googletest:gtest", |
| ] |
| } |
| |
| executable("data_unittests") { |
| output_name = "data_unittests" |
| |
| testonly = true |
| |
| sources = [ "data_unittests.cc" ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.wlan.ieee80211", |
| "//src/connectivity/wlan/drivers/testing/lib/sim-env", |
| "//src/connectivity/wlan/drivers/testing/lib/sim-fake-ap", |
| "//src/lib/fxl/test:gtest_main", |
| ] |
| } |
| |
| executable("probe_unittests") { |
| output_name = "probe_unittests" |
| |
| testonly = true |
| |
| sources = [ "probe_unittests.cc" ] |
| |
| deps = [ |
| "//src/connectivity/wlan/drivers/testing/lib/sim-env", |
| "//src/connectivity/wlan/drivers/testing/lib/sim-fake-ap", |
| "//src/lib/fxl/test:gtest_main", |
| "//third_party/googletest:gmock", |
| "//third_party/googletest:gtest", |
| ] |
| } |
| |
| unittest_package("wlan-sim-fake-ap-test") { |
| deps = [ |
| ":assoc_unittests", |
| ":auth_unittests", |
| ":beacon_unittests", |
| ":data_unittests", |
| ":probe_unittests", |
| ] |
| |
| tests = [ |
| { |
| name = "assoc_unittests" |
| environments = basic_envs |
| }, |
| { |
| name = "auth_unittests" |
| environments = basic_envs |
| }, |
| { |
| name = "beacon_unittests" |
| environments = basic_envs |
| }, |
| { |
| name = "data_unittests" |
| environments = basic_envs |
| }, |
| { |
| name = "probe_unittests" |
| environments = basic_envs |
| }, |
| ] |
| } |