blob: 6ca779855403ff20d26257439c53c92eb7839422 [file] [log] [blame]
# Copyright 2018 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.
# This library contains some low-level helpers that need to be shared between
# the "client" and "symbols", but which doesn't below in the symbol library
# itself.
static_library("common") {
public = [
"adapters.h",
"address_range.h",
"address_ranges.h",
"completion_callback.h",
"data_extractor.h",
"err.h",
"err_or.h",
"file_util.h",
"host_util.h",
"inet_util.h",
"largest_less_or_equal.h",
"ref_ptr_to.h",
"scoped_temp_file.h",
"string_util.h",
]
sources = [
"address_ranges.cc",
"err.cc",
"file_util.cc",
"host_util.cc",
"inet_util.cc",
"scoped_temp_file.cc",
"string_util.cc",
]
public_deps = [
"//src/developer/debug/shared",
"//src/lib/containers/cpp",
"//src/lib/fxl",
"//zircon/public/lib/fit",
]
}
source_set("test_support") {
sources = [
"mock_memory.cc",
"mock_memory.h",
"test_with_loop.h",
]
public_deps = [
":common",
"//src/developer/debug/shared",
]
}
source_set("tests") {
testonly = true
sources = [
"adapters_unittest.cc",
"address_ranges_unittest.cc",
"completion_callback_unittest.cc",
"data_extractor_unittest.cc",
"err_or_unittest.cc",
"file_util_unittest.cc",
"inet_util_unittest.cc",
"largest_less_or_equal_unittest.cc",
"string_util_unittest.cc",
]
deps = [
":common",
"//third_party/googletest:gtest",
"//zircon/public/lib/fbl",
]
}
# Simple support library for writing perf tests. This is a much simpler variant
# of //zircon/system/ulib/perftest that will run on the host.
source_set("perf_test") {
testonly = true
sources = [
"perf_test.cc",
"perf_test.h",
]
public_deps = [ "//third_party/googletest:gtest" ]
deps = [ "//src/lib/fxl" ]
}