1# Copyright 2020 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 15package( 16 default_visibility = [ 17 "//fcp:internal", 18 ], 19 licenses = ["notice"], # Apache 2.0 20) 21 22cc_library( 23 name = "utils", 24 testonly = True, 25 hdrs = ["utils.h"], 26 deps = [ 27 "//fcp/base", 28 "//fcp/client:interfaces", 29 "//fcp/client:simple_task_environment", 30 "//fcp/client/engine:engine_cc_proto", 31 "//fcp/protos:federated_api_cc_proto", 32 "//fcp/protos:plan_proto_cc", 33 "@com_google_absl//absl/status", 34 "@com_google_absl//absl/status:statusor", 35 "@com_google_absl//absl/strings", 36 "@com_google_absl//absl/time", 37 "@com_google_protobuf//:protobuf", 38 ], 39) 40 41cc_test( 42 name = "utils_test", 43 size = "small", 44 srcs = ["utils_test.cc"], 45 deps = [ 46 ":utils", 47 "//fcp/protos:plan_cc_proto", 48 "@com_google_absl//absl/status:statusor", 49 "@com_google_googletest//:gtest_main", 50 ], 51) 52