blob: 05643d6a09c93df4e54351a20b6634674e2b8899 [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/testing/cc_test_executable.gni")
cc_test_executable("files_unittests") {
testonly = true
sources = [
"directory_unittest.cc",
"file_descriptor_unittest.cc",
"file_unittest.cc",
"glob_unittest.cc",
"path_unittest.cc",
"scoped_temp_dir_unittest.cc",
]
deps = [
":files",
"//sdk/lib/syslog/cpp",
"//src/lib/fxl:common",
"//src/lib/fxl:strings",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
if (is_fuchsia) {
import("//build/components.gni")
fuchsia_unittest_package("files-tests") {
manifest = "meta/files_unittests.cml"
deps = [ ":files_unittests" ]
}
group("tests") {
testonly = true
deps = [ ":files-tests" ]
}
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
# A self-verification target for generated content in this file.
if (is_host) {
verify_bazel2gn("verify_bazel2gn") {
}
}
source_set("files") {
sources = [
"directory.cc",
"file.cc",
"file_descriptor.cc",
"glob.cc",
"path.cc",
"scoped_temp_dir.cc",
]
public = [
"directory.h",
"eintr_wrapper.h",
"file.h",
"file_descriptor.h",
"glob.h",
"path.h",
"scoped_temp_dir.h",
]
deps = [
"//sdk/lib/fit",
"//sdk/lib/utf-utils",
"//src/lib/fxl:memory",
]
public_deps = [
"//src/lib/fxl:strings",
"//zircon/system/ulib/fbl",
]
}