blob: 8d8d2fc6f51a1764068f15096534e84a712f123b [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.
visibility = [ "//src/ledger/*" ]
source_set("environment") {
sources = [
"environment.cc",
"environment.h",
"notification.h",
"thread_notification.cc",
"thread_notification.h",
]
public_deps = [
"//sdk/lib/sys/cpp",
"//src/ledger/bin/platform",
"//src/ledger/bin/platform:implementation",
"//src/ledger/bin/storage/public",
"//src/ledger/bin/storage/public",
"//src/ledger/lib/backoff",
"//src/ledger/lib/coroutine",
"//src/ledger/lib/rng",
"//src/ledger/lib/timekeeper:system",
]
deps = [
"//src/ledger/lib/logging",
"//src/ledger/lib/rng:system",
"//zircon/public/lib/async-cpp",
]
configs += [ "//src/ledger:ledger_config" ]
}
source_set("test_loop_notification") {
testonly = true
sources = [
"test_loop_notification.cc",
"test_loop_notification.h",
]
public_deps = [
":environment",
"//zircon/public/lib/async-testing",
]
deps = [ "//src/ledger/lib/logging" ]
}
source_set("unittests") {
testonly = true
sources = [
"environment_unittest.cc",
"test_loop_notification_unittest.cc",
"thread_notification_unittest.cc",
]
deps = [
":environment",
":test_loop_notification",
"//sdk/lib/sys/cpp/testing:unit",
"//src/ledger/lib/loop_fixture",
"//src/ledger/lib/rng:testing",
"//src/ledger/lib/timekeeper:testing",
"//third_party/googletest:gmock",
"//zircon/public/lib/async-cpp",
"//zircon/public/lib/async-default",
]
configs += [ "//src/ledger:ledger_config" ]
}