blob: 65ee0908a82e2717e70fd0c7dc7f836271a9a0b9 [file] [log] [blame]
# Copyright 2016 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("loop_fixture") {
public_deps = [ ":gtest" ]
}
# Deprecated - new targets should instead depend on:
# //sdk/lib/testing/loop_fixture (for RealLoop) or
# //src/lib/testing/loop_fixture (for TestLoop or RealLoopFixture)
source_set("gtest") {
sources = [
"real_loop_fixture.h",
"test_loop.cc",
"test_loop.h",
"test_loop_fixture.h",
]
deps = [ "//zircon/system/ulib/async:async-cpp" ]
public_deps = [
"//sdk/lib/async-loop-testing/cpp",
"//sdk/lib/fit",
"//sdk/lib/stdcompat",
"//src/lib/fxl:fxl_cli",
"//third_party/googletest:gtest_no_testonly",
"//zircon/system/ulib/async:async-cpp",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/async-testing",
"//zircon/system/ulib/zx",
]
}
executable("loop_fixture_unittests") {
testonly = true
sources = [
"real_loop_fixture_unittest.cc",
"test_loop_fixture_unittest.cc",
]
deps = [
":loop_fixture",
"//sdk/lib/fit-promise",
"//src/lib/fxl:fxl_cli",
"//src/lib/fxl/test:gtest_main",
"//src/lib/fxl/test:test_settings",
"//src/lib/testing/predicates",
"//third_party/googletest:gmock",
"//zircon/system/ulib/async:async-cpp",
"//zircon/system/ulib/async-default",
"//zircon/system/ulib/sync:sync-cpp",
]
}
fuchsia_unittest_package("loop_fixture_tests") {
deps = [ ":loop_fixture_unittests" ]
}
group("tests") {
testonly = true
deps = [ ":loop_fixture_tests" ]
}