xref: /aosp_15_r20/external/federated-compute/fcp/protocol/BUILD (revision 14675a029014e728ec732f129a32e299b2da0601)
1*14675a02SAndroid Build Coastguard Worker# Copyright 2019 Google LLC
2*14675a02SAndroid Build Coastguard Worker#
3*14675a02SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4*14675a02SAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5*14675a02SAndroid Build Coastguard Worker# You may obtain a copy of the License at
6*14675a02SAndroid Build Coastguard Worker#
7*14675a02SAndroid Build Coastguard Worker#      http://www.apache.org/licenses/LICENSE-2.0
8*14675a02SAndroid Build Coastguard Worker#
9*14675a02SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*14675a02SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11*14675a02SAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*14675a02SAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13*14675a02SAndroid Build Coastguard Worker# limitations under the License.
14*14675a02SAndroid Build Coastguard Worker
15*14675a02SAndroid Build Coastguard Workerload("//fcp:config.bzl", "FCP_COPTS")
16*14675a02SAndroid Build Coastguard Worker
17*14675a02SAndroid Build Coastguard Workerpackage(
18*14675a02SAndroid Build Coastguard Worker    default_visibility = [
19*14675a02SAndroid Build Coastguard Worker        "//visibility:public",
20*14675a02SAndroid Build Coastguard Worker    ],
21*14675a02SAndroid Build Coastguard Worker    licenses = ["notice"],  # Apache 2.0
22*14675a02SAndroid Build Coastguard Worker)
23*14675a02SAndroid Build Coastguard Worker
24*14675a02SAndroid Build Coastguard Workercc_library(
25*14675a02SAndroid Build Coastguard Worker    name = "grpc_chunked_bidi_stream",
26*14675a02SAndroid Build Coastguard Worker    hdrs = ["grpc_chunked_bidi_stream.h"],
27*14675a02SAndroid Build Coastguard Worker    copts = FCP_COPTS,
28*14675a02SAndroid Build Coastguard Worker    deps = [
29*14675a02SAndroid Build Coastguard Worker        "//fcp/base",
30*14675a02SAndroid Build Coastguard Worker        "//fcp/protos:cc_grpc",
31*14675a02SAndroid Build Coastguard Worker        "@com_github_grpc_grpc//:grpc++",
32*14675a02SAndroid Build Coastguard Worker        "@com_google_absl//absl/base:core_headers",
33*14675a02SAndroid Build Coastguard Worker        "@com_google_absl//absl/status",
34*14675a02SAndroid Build Coastguard Worker        "@com_google_protobuf//:protobuf",
35*14675a02SAndroid Build Coastguard Worker    ],
36*14675a02SAndroid Build Coastguard Worker)
37*14675a02SAndroid Build Coastguard Worker
38*14675a02SAndroid Build Coastguard Workercc_test(
39*14675a02SAndroid Build Coastguard Worker    name = "grpc_chunked_bidi_stream_test",
40*14675a02SAndroid Build Coastguard Worker    timeout = "long",
41*14675a02SAndroid Build Coastguard Worker    srcs = ["grpc_chunked_bidi_stream_test.cc"],
42*14675a02SAndroid Build Coastguard Worker    copts = FCP_COPTS,
43*14675a02SAndroid Build Coastguard Worker    deps = [
44*14675a02SAndroid Build Coastguard Worker        ":grpc_chunked_bidi_stream",
45*14675a02SAndroid Build Coastguard Worker        "//fcp/base",
46*14675a02SAndroid Build Coastguard Worker        "//fcp/client:fake_server",
47*14675a02SAndroid Build Coastguard Worker        "//fcp/client:grpc_bidi_stream",
48*14675a02SAndroid Build Coastguard Worker        "//fcp/protos:federated_api_cc_proto",
49*14675a02SAndroid Build Coastguard Worker        "//fcp/testing",
50*14675a02SAndroid Build Coastguard Worker        "@com_github_grpc_grpc//:grpc++",
51*14675a02SAndroid Build Coastguard Worker        "@com_google_absl//absl/algorithm:container",
52*14675a02SAndroid Build Coastguard Worker        "@com_google_absl//absl/strings",
53*14675a02SAndroid Build Coastguard Worker        "@com_google_googletest//:gtest_main",
54*14675a02SAndroid Build Coastguard Worker    ],
55*14675a02SAndroid Build Coastguard Worker)
56