xref: /aosp_15_r20/external/federated-compute/fcp/aggregation/testing/BUILD (revision 14675a029014e728ec732f129a32e299b2da0601)
1# Copyright 2022 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15load("//fcp:config.bzl", "FCP_COPTS")
16
17package(
18    default_visibility = ["//fcp/aggregation:internal"],
19    licenses = ["notice"],  # Apache 2.0
20)
21
22cc_library(
23    name = "testing",
24    testonly = True,
25    srcs = [
26        "testing.cc",
27    ],
28    hdrs = [
29        "testing.h",
30    ],
31    copts = FCP_COPTS,
32    deps = [
33        "//fcp/aggregation/core:tensor",
34        "//fcp/base",
35        "//fcp/tensorflow:status",
36        "//fcp/testing",
37        "@com_google_googletest//:gtest_main",
38        "@org_tensorflow//tensorflow/c:checkpoint_reader",
39        "@org_tensorflow//tensorflow/c:tf_status_headers",
40        "@org_tensorflow//tensorflow/c:tf_status_helper",
41        "@org_tensorflow//tensorflow/cc:cc_ops",
42        "@org_tensorflow//tensorflow/cc:ops",
43        "@org_tensorflow//tensorflow/cc:scope",
44        "@org_tensorflow//tensorflow/core:core_cpu",
45        "@org_tensorflow//tensorflow/core:framework",
46        "@org_tensorflow//tensorflow/core:protos_all_cc",
47        "@org_tensorflow//tensorflow/core:tensorflow",
48    ],
49)
50
51cc_library(
52    name = "test_data",
53    testonly = True,
54    hdrs = [
55        "test_data.h",
56    ],
57    copts = FCP_COPTS,
58    deps = [
59        "//fcp/aggregation/core:tensor",
60    ],
61)
62