load("@fbsource//tools/build_defs/dirsync:fb_dirsync_cpp_benchmark.bzl", "fb_dirsync_cpp_benchmark")
load("@fbsource//tools/build_defs/dirsync:fb_dirsync_cpp_unittest.bzl", "fb_dirsync_cpp_unittest")

oncall("fbcode_entropy_wardens_folly")

fb_dirsync_cpp_unittest(
    name = "contains_test",
    srcs = ["ContainsTest.cpp"],
    headers = [],
    deps = [
        "//folly/algorithm/simd:contains",
        "//folly/algorithm/simd/detail:simd_contains_impl",
        "//folly/portability:gtest",
        "//folly/test:test_utils",
    ],
)

fb_dirsync_cpp_unittest(
    name = "find_first_of_test",
    srcs = ["find_first_of_test.cpp"],
    supports_static_listing = False,
    deps = [
        "//folly:string",
        "//folly/algorithm/simd:find_first_of",
        "//folly/algorithm/simd:find_first_of_extra",
        "//folly/portability:gtest",
    ],
)

fb_dirsync_cpp_unittest(
    name = "find_fixed_test",
    srcs = ["FindFixedTest.cpp"],
    headers = [],
    deps = [
        "fbsource//third-party/fmt:fmt",
        "//folly:portability",
        "//folly/algorithm/simd:find_fixed",
        "//folly/portability:gtest",
    ],
)

fb_dirsync_cpp_unittest(
    name = "momemask_test",
    srcs = ["MovemaskTest.cpp"],
    headers = [],
    deps = [
        "//folly:portability",
        "//folly/algorithm/simd:movemask",
        "//folly/portability:gtest",
    ],
)

fb_dirsync_cpp_benchmark(
    name = "find_first_of_bench",
    srcs = ["find_first_of_bench.cpp"],
    deps = [
        "//folly:benchmark",
        "//folly/algorithm/simd:find_first_of",
        "//folly/algorithm/simd:find_first_of_extra",
        "//folly/init:init",
        "//folly/lang:keep",
    ],
)

fb_dirsync_cpp_benchmark(
    name = "find_fixed_bench",
    srcs = ["FindFixedBenchmark.cpp"],
    deps = [
        "fbsource//third-party/fmt:fmt",
        "//folly:benchmark",
        "//folly/algorithm/simd:find_fixed",
        "//folly/init:init",
    ],
)
