Move license text to BUILD files top

PiperOrigin-RevId: 388579579
This commit is contained in:
jsobczak
2021-08-03 17:10:57 -07:00
committed by Copybara-Service
parent ecb5e7488a
commit dfc61a8f05
49 changed files with 76 additions and 1158 deletions
+2 -2
View File
@@ -1,4 +1,3 @@
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "core",
@@ -55,12 +55,12 @@ cc_library(
"//core:__subpackages__",
],
deps = [
"//proto:connections_enums_portable_proto",
"//absl/strings",
"//absl/types:variant",
"//platform/base",
"//platform/base:util",
"//platform/public:types",
"//proto:connections_enums_portable_proto",
],
)
+5 -5
View File
@@ -1,4 +1,3 @@
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "internal",
@@ -89,8 +89,6 @@ cc_library(
],
deps = [
":message_lite",
"//proto/connections:offline_wire_formats_portable_proto",
"//proto:connections_enums_portable_proto",
"//absl/base:core_headers",
"//absl/container:btree",
"//absl/container:flat_hash_map",
@@ -111,6 +109,8 @@ cc_library(
"//platform/public:comm",
"//platform/public:logging",
"//platform/public:types",
"//proto:connections_enums_portable_proto",
"//proto/connections:offline_wire_formats_portable_proto",
"//securegcm:ukey2",
],
)
@@ -184,8 +184,6 @@ cc_test(
deps = [
":internal",
":internal_test",
"//proto/connections:offline_wire_formats_portable_proto",
"//proto:connections_enums_portable_proto",
"//testing/base/public:gunit",
"//testing/base/public:gunit_main",
"//absl/container:flat_hash_set",
@@ -202,6 +200,8 @@ cc_test(
"//platform/public:comm",
"//platform/public:logging",
"//platform/public:types",
"//proto:connections_enums_portable_proto",
"//proto/connections:offline_wire_formats_portable_proto",
"//securegcm:ukey2",
],
)
+1 -1
View File
@@ -16,7 +16,6 @@
#include <cassert>
#include "proto/connections_enums.pb.h"
#include "absl/strings/escaping.h"
#include "absl/strings/str_cat.h"
#include "core/internal/offline_frames.h"
@@ -25,6 +24,7 @@
#include "platform/public/logging.h"
#include "platform/public/mutex.h"
#include "platform/public/mutex_lock.h"
#include "proto/connections_enums.pb.h"
namespace location {
namespace nearby {
@@ -18,7 +18,6 @@
#include <string>
#include <utility>
#include "proto/connections_enums.pb.h"
#include "securegcm/d2d_connection_context_v1.h"
#include "securegcm/ukey2_handshake.h"
#include "gmock/gmock.h"
@@ -36,6 +35,7 @@
#include "platform/public/multi_thread_executor.h"
#include "platform/public/pipe.h"
#include "platform/public/single_thread_executor.h"
#include "proto/connections_enums.pb.h"
namespace location {
namespace nearby {
+2 -2
View File
@@ -18,8 +18,6 @@
#include <atomic>
#include <memory>
#include "proto/connections/offline_wire_formats.pb.h"
#include "proto/connections_enums.pb.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "absl/time/time.h"
@@ -36,6 +34,8 @@
#include "platform/base/medium_environment.h"
#include "platform/public/count_down_latch.h"
#include "platform/public/pipe.h"
#include "proto/connections/offline_wire_formats.pb.h"
#include "proto/connections_enums.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -17,7 +17,6 @@
#include <algorithm>
#include <memory>
#include "proto/connections_enums.pb.h"
#include "absl/functional/bind_front.h"
#include "absl/time/time.h"
#include "core/internal/bluetooth_bwu_handler.h"
@@ -28,6 +27,7 @@
#include "platform/base/byte_array.h"
#include "platform/base/feature_flags.h"
#include "platform/public/count_down_latch.h"
#include "proto/connections_enums.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -18,7 +18,6 @@
#include <limits>
#include <utility>
#include "proto/connections_enums.pb.h"
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/strings/escaping.h"
@@ -27,6 +26,7 @@
#include "platform/base/prng.h"
#include "platform/public/logging.h"
#include "platform/public/mutex_lock.h"
#include "proto/connections_enums.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -14,7 +14,6 @@
#include "core/internal/encryption_runner.h"
#include "proto/connections_enums.pb.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "absl/time/clock.h"
@@ -24,6 +23,7 @@
#include "platform/public/count_down_latch.h"
#include "platform/public/pipe.h"
#include "platform/public/system_clock.h"
#include "proto/connections_enums.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -18,12 +18,12 @@
#include <cstdint>
#include <string>
#include "proto/connections_enums.pb.h"
#include "securegcm/d2d_connection_context_v1.h"
#include "absl/time/clock.h"
#include "platform/base/byte_array.h"
#include "platform/base/exception.h"
#include "platform/public/mutex.h"
#include "proto/connections_enums.pb.h"
namespace location {
namespace nearby {
@@ -18,7 +18,6 @@
#include <string>
#include <utility>
#include "proto/connections/offline_wire_formats.pb.h"
#include "absl/time/time.h"
#include "core/internal/offline_frames.h"
#include "platform/base/feature_flags.h"
@@ -26,6 +25,7 @@
#include "platform/public/mutex.h"
#include "platform/public/mutex_lock.h"
#include "platform/public/system_clock.h"
#include "proto/connections/offline_wire_formats.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -17,13 +17,13 @@
#include <memory>
#include <utility>
#include "proto/connections/offline_wire_formats.pb.h"
#include "core/internal/endpoint_channel.h"
#include "core/internal/offline_frames.h"
#include "platform/base/exception.h"
#include "platform/public/count_down_latch.h"
#include "platform/public/logging.h"
#include "platform/public/mutex_lock.h"
#include "proto/connections/offline_wire_formats.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -19,7 +19,6 @@
#include <string>
#include <utility>
#include "proto/connections_enums.pb.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "absl/synchronization/mutex.h"
@@ -34,6 +33,7 @@
#include "platform/public/count_down_latch.h"
#include "platform/public/logging.h"
#include "platform/public/pipe.h"
#include "proto/connections_enums.pb.h"
namespace location {
namespace nearby {
+3 -3
View File
@@ -1,6 +1,3 @@
load("//security/fuzzing/blaze:cc_fuzz_target.bzl", "cc_fuzz_target")
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,6 +11,9 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("//security/fuzzing/blaze:cc_fuzz_target.bzl", "cc_fuzz_target")
licenses(["notice"])
cc_fuzz_target(
name = "offline_frames_fuzzer",
@@ -17,12 +17,12 @@
#include <string>
#include <utility>
#include "proto/connections/offline_wire_formats.pb.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "core/internal/offline_frames.h"
#include "platform/base/byte_array.h"
#include "platform/public/pipe.h"
#include "proto/connections/offline_wire_formats.pb.h"
namespace location {
namespace nearby {
+4 -4
View File
@@ -1,4 +1,3 @@
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "mediums",
@@ -41,8 +41,6 @@ cc_library(
],
deps = [
":utils",
"//proto/connections:offline_wire_formats_portable_proto",
"//location/nearby/mediums/proto:web_rtc_signaling_frames_cc_proto",
"//absl/container:flat_hash_map",
"//absl/container:flat_hash_set",
"//absl/functional:bind_front",
@@ -57,6 +55,8 @@ cc_library(
"//platform/public:comm",
"//platform/public:logging",
"//platform/public:types",
"//proto/connections:offline_wire_formats_portable_proto",
"//proto/mediums:web_rtc_signaling_frames_cc_proto",
"//smhasher:libmurmur3",
"//webrtc/api:libjingle_peerconnection_api",
"//webrtc/api:scoped_refptr",
@@ -73,9 +73,9 @@ cc_library(
"//core/internal/mediums/webrtc:__pkg__",
],
deps = [
"//proto/connections:offline_wire_formats_portable_proto",
"//platform/base",
"//platform/public:types",
"//proto/connections:offline_wire_formats_portable_proto",
],
)
+1 -1
View File
@@ -1,4 +1,3 @@
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "ble_v2",
+1 -1
View File
@@ -18,8 +18,8 @@
#include <memory>
#include <string>
#include "proto/connections/offline_wire_formats.pb.h"
#include "platform/base/byte_array.h"
#include "proto/connections/offline_wire_formats.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -17,7 +17,6 @@
#include <functional>
#include <memory>
#include "location/nearby/mediums/proto/web_rtc_signaling_frames.pb.h"
#include "absl/functional/bind_front.h"
#include "absl/strings/str_cat.h"
#include "absl/time/time.h"
@@ -30,6 +29,7 @@
#include "platform/public/future.h"
#include "platform/public/logging.h"
#include "platform/public/mutex_lock.h"
#include "proto/mediums/web_rtc_signaling_frames.pb.h"
#include "webrtc/api/jsep.h"
namespace location {
+2 -2
View File
@@ -20,8 +20,6 @@
#include <memory>
#include <string>
#include "proto/connections/offline_wire_formats.pb.h"
#include "location/nearby/mediums/proto/web_rtc_signaling_frames.pb.h"
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "core/internal/mediums/webrtc/connection_flow.h"
@@ -41,6 +39,8 @@
#include "platform/public/scheduled_executor.h"
#include "platform/public/single_thread_executor.h"
#include "platform/public/webrtc.h"
#include "proto/connections/offline_wire_formats.pb.h"
#include "proto/mediums/web_rtc_signaling_frames.pb.h"
#include "webrtc/api/data_channel_interface.h"
#include "webrtc/api/jsep.h"
#include "webrtc/api/scoped_refptr.h"
+2 -2
View File
@@ -1,4 +1,3 @@
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "webrtc",
@@ -35,7 +35,6 @@ cc_library(
"//core/internal:__subpackages__",
],
deps = [
"//location/nearby/mediums/proto:web_rtc_signaling_frames_cc_proto",
"//absl/memory",
"//absl/strings",
"//absl/time",
@@ -45,6 +44,7 @@ cc_library(
"//platform/public:comm",
"//platform/public:logging",
"//platform/public:types",
"//proto/mediums:web_rtc_signaling_frames_cc_proto",
"//webrtc/api:libjingle_peerconnection_api",
"//third_party/webrtc/files/stable/webrtc/pc:peerconnection",
],
@@ -17,9 +17,9 @@
#include <vector>
#include "location/nearby/mediums/proto/web_rtc_signaling_frames.pb.h"
#include "core/internal/mediums/webrtc/peer_id.h"
#include "platform/base/byte_array.h"
#include "proto/mediums/web_rtc_signaling_frames.pb.h"
#include "webrtc/api/peer_connection_interface.h"
namespace location {
+1 -1
View File
@@ -18,10 +18,10 @@
#include <cstdint>
#include <vector>
#include "proto/connections/offline_wire_formats.pb.h"
#include "core/options.h"
#include "platform/base/byte_array.h"
#include "platform/base/exception.h"
#include "proto/connections/offline_wire_formats.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -19,10 +19,10 @@
#include <utility>
#include <vector>
#include "proto/connections/offline_wire_formats.pb.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "platform/base/byte_array.h"
#include "proto/connections/offline_wire_formats.pb.h"
namespace location {
namespace nearby {
@@ -16,9 +16,9 @@
#include <regex> //NOLINT
#include "proto/connections/offline_wire_formats.pb.h"
#include "core/internal/internal_payload.h"
#include "core/internal/offline_frames.h"
#include "proto/connections/offline_wire_formats.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -15,8 +15,8 @@
#ifndef CORE_INTERNAL_OFFLINE_FRAMES_VALIDATOR_H_
#define CORE_INTERNAL_OFFLINE_FRAMES_VALIDATOR_H_
#include "proto/connections/offline_wire_formats.pb.h"
#include "platform/base/exception.h"
#include "proto/connections/offline_wire_formats.pb.h"
namespace location {
namespace nearby {
@@ -16,11 +16,11 @@
#include <string>
#include "proto/connections/offline_wire_formats.pb.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "core/internal/offline_frames.h"
#include "platform/base/byte_array.h"
#include "proto/connections/offline_wire_formats.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -14,7 +14,6 @@
#include "core/internal/p2p_cluster_pcp_handler.h"
#include "proto/connections_enums.pb.h"
#include "absl/functional/bind_front.h"
#include "absl/strings/escaping.h"
#include "core/internal/base_pcp_handler.h"
@@ -29,6 +28,7 @@
#include "platform/base/nsd_service_info.h"
#include "platform/base/types.h"
#include "platform/public/crypto.h"
#include "proto/connections_enums.pb.h"
namespace location {
namespace nearby {
+1 -1
View File
@@ -17,9 +17,9 @@
#include <string>
#include "proto/connections_enums.pb.h"
#include "core/strategy.h"
#include "platform/base/byte_array.h"
#include "proto/connections_enums.pb.h"
namespace location {
namespace nearby {
+2 -2
View File
@@ -1,4 +1,3 @@
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "types",
@@ -67,11 +67,11 @@ cc_library(
"//platform/public:__pkg__",
],
deps = [
"//proto/connections:offline_wire_formats_portable_proto",
"//absl/strings",
"//absl/types:optional",
"//platform/base",
"//platform/base:cancellation_flag",
"//proto/connections:offline_wire_formats_portable_proto",
"//webrtc/api:libjingle_peerconnection_api",
],
)
+1 -1
View File
@@ -19,9 +19,9 @@
#include <memory>
#include <string>
#include "proto/connections/offline_wire_formats.pb.h"
#include "absl/strings/string_view.h"
#include "platform/base/byte_array.h"
#include "proto/connections/offline_wire_formats.pb.h"
#include "webrtc/api/peer_connection_interface.h"
namespace location {
+3 -3
View File
@@ -1,6 +1,3 @@
load("//ads/util/non_compile:non_compile.bzl", "cc_with_non_compile_test")
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,6 +11,9 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("//ads/util/non_compile:non_compile.bzl", "cc_with_non_compile_test")
licenses(["notice"])
cc_library(
name = "base",
+1 -1
View File
@@ -1,4 +1,3 @@
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "types",
+1 -1
View File
@@ -1,4 +1,3 @@
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "posix_mutex",
+1 -1
View File
@@ -1,4 +1,3 @@
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "types",
+1 -1
View File
@@ -1,4 +1,3 @@
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +11,7 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "types",
+4 -4
View File
@@ -1,6 +1,3 @@
load("//tools/build_defs/cc:cc_fake_binary.bzl", "cc_fake_binary")
licenses(["notice"])
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,6 +11,9 @@ licenses(["notice"])
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("//tools/build_defs/cc:cc_fake_binary.bzl", "cc_fake_binary")
licenses(["notice"])
cc_library(
name = "types",
@@ -89,13 +89,13 @@ cc_library(
deps = [
":logging",
":types",
"//proto/connections:offline_wire_formats_portable_proto",
"//absl/container:flat_hash_map",
"//absl/strings",
"//platform/api:comm",
"//platform/api:platform",
"//platform/base",
"//platform/base:cancellation_flag",
"//proto/connections:offline_wire_formats_portable_proto",
"//webrtc/api:libjingle_peerconnection_api",
],
)