1# Copyright 2019 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 = [ 19 "//visibility:public", 20 ], 21 licenses = ["notice"], # Apache 2.0 22) 23 24cc_library( 25 name = "grpc_chunked_bidi_stream", 26 hdrs = ["grpc_chunked_bidi_stream.h"], 27 copts = FCP_COPTS, 28 deps = [ 29 "//fcp/base", 30 "//fcp/protos:cc_grpc", 31 "@com_github_grpc_grpc//:grpc++", 32 "@com_google_absl//absl/base:core_headers", 33 "@com_google_absl//absl/status", 34 "@com_google_protobuf//:protobuf", 35 ], 36) 37 38cc_test( 39 name = "grpc_chunked_bidi_stream_test", 40 timeout = "long", 41 srcs = ["grpc_chunked_bidi_stream_test.cc"], 42 copts = FCP_COPTS, 43 deps = [ 44 ":grpc_chunked_bidi_stream", 45 "//fcp/base", 46 "//fcp/client:fake_server", 47 "//fcp/client:grpc_bidi_stream", 48 "//fcp/protos:federated_api_cc_proto", 49 "//fcp/testing", 50 "@com_github_grpc_grpc//:grpc++", 51 "@com_google_absl//absl/algorithm:container", 52 "@com_google_absl//absl/strings", 53 "@com_google_googletest//:gtest_main", 54 ], 55) 56