package(
    default_visibility = ["//visibility:private"],
    licenses = ["notice"],  # Apache 2.0
)

cc_test(
    name = "metadata_extractor_test",
    srcs = ["metadata_extractor_test.cc"],
    data = [
        "//mediapipe/tasks/testdata/metadata:data_files",
        "//mediapipe/tasks/testdata/metadata:model_files",
    ],
    deps = [
        "//mediapipe/framework/port:file_helpers",
        "//mediapipe/framework/port:gtest",
        "//mediapipe/framework/port:gtest_main",
        "//mediapipe/framework/port:status",
        "//mediapipe/tasks/cc:common",
        "//mediapipe/tasks/cc/metadata:metadata_extractor",
        "@com_google_absl//absl/status",
        "@com_google_absl//absl/status:statusor",
        "@com_google_absl//absl/strings",
        "@com_google_absl//absl/strings:cord",
    ],
)

cc_test(
    name = "metadata_version_test",
    srcs = ["metadata_version_test.cc"],
    deps = [
        "//mediapipe/framework/port:gtest_main",
        "//mediapipe/tasks/cc/metadata:metadata_version",
        "//mediapipe/tasks/metadata:metadata_schema_cc",
        "@flatbuffers//:runtime_cc",
    ],
)

cc_test(
    name = "metadata_parser_test",
    srcs = ["metadata_parser_test.cc"],
    deps = [
        "//mediapipe/framework/port:gtest_main",
        "//mediapipe/tasks/cc/metadata:metadata_version",
    ],
)
