mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
79 lines
2.3 KiB
Python
79 lines
2.3 KiB
Python
# Copyright 2020 Google LLC
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# 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",
|
|
srcs = [
|
|
"connection_flow.cc",
|
|
"peer_id.cc",
|
|
"signaling_frames.cc",
|
|
"webrtc_socket.cc",
|
|
],
|
|
hdrs = [
|
|
"connection_flow.h",
|
|
"data_channel_listener.h",
|
|
"local_ice_candidate_listener.h",
|
|
"peer_id.h",
|
|
"session_description_wrapper.h",
|
|
"signaling_frames.h",
|
|
"webrtc_socket.h",
|
|
"webrtc_socket_wrapper.h",
|
|
],
|
|
compatible_with = ["//buildenv/target:non_prod"],
|
|
visibility = [
|
|
"//core/internal:__subpackages__",
|
|
],
|
|
deps = [
|
|
"//absl/memory",
|
|
"//absl/strings",
|
|
"//absl/time",
|
|
"//core:core_types",
|
|
"//core/internal/mediums:utils",
|
|
"//platform/base",
|
|
"//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",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "webrtc_test",
|
|
timeout = "short",
|
|
srcs = [
|
|
"connection_flow_test.cc",
|
|
"peer_id_test.cc",
|
|
"signaling_frames_test.cc",
|
|
"webrtc_socket_test.cc",
|
|
],
|
|
tags = ["notsan"], # NOTE(b/139734036): known data race in usrsctplib.
|
|
deps = [
|
|
":webrtc",
|
|
"//net/proto2/compat/public:proto2",
|
|
"//testing/base/public:gunit_main",
|
|
"//absl/time",
|
|
"//platform/base",
|
|
"//platform/base:test_util",
|
|
"//platform/impl/g3", # buildcleaner: keep
|
|
"//platform/public:comm",
|
|
"//platform/public:types",
|
|
"//webrtc/api:libjingle_peerconnection_api",
|
|
"//webrtc/api:rtc_error",
|
|
"//webrtc/api:scoped_refptr",
|
|
],
|
|
)
|