| # Copyright 2024 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") |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":memory_pressure_signaler_tests" ] |
| } |
| |
| executable("memory_pressure_signaler_unittests") { |
| testonly = true |
| sources = [ |
| "pressure_notifier_unittest.cc", |
| "pressure_observer_unittest.cc", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.feedback:fuchsia.feedback_cpp_testing", |
| "//sdk/lib/sys/cpp/testing:unit", |
| "//src/developer/memory/pressure_signaler:lib", |
| "//src/lib/fxl/test:gtest_main", |
| "//src/lib/testing/loop_fixture", |
| ] |
| } |
| |
| fuchsia_unittest_package("memory_pressure_signaler_tests") { |
| manifest = "meta/memory_pressure_signaler_unittests.cml" |
| deps = [ ":memory_pressure_signaler_unittests" ] |
| test_type = "system" |
| } |