| # Copyright 2020 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("sharing") { |
| sources = [ |
| "nearby/nearby_connections.cc", |
| "nearby/nearby_connections.h", |
| "nearby/webrtc/incoming_messages_listener.cc", |
| "nearby/webrtc/incoming_messages_listener.h", |
| "sharing_impl.cc", |
| "sharing_impl.h", |
| "webrtc/ipc_network_manager.cc", |
| "webrtc/ipc_network_manager.h", |
| "webrtc/ipc_packet_socket_factory.cc", |
| "webrtc/ipc_packet_socket_factory.h", |
| "webrtc/mdns_responder_adapter.cc", |
| "webrtc/mdns_responder_adapter.h", |
| "webrtc/p2p_async_address_resolver.cc", |
| "webrtc/p2p_async_address_resolver.h", |
| "webrtc/p2p_port_allocator.cc", |
| "webrtc/p2p_port_allocator.h", |
| "webrtc/p2p_socket_client.cc", |
| "webrtc/p2p_socket_client.h", |
| "webrtc/p2p_socket_client_delegate.h", |
| "webrtc/sharing_webrtc_connection.cc", |
| "webrtc/sharing_webrtc_connection.h", |
| "webrtc/sharing_webrtc_timing_recorder.cc", |
| "webrtc/sharing_webrtc_timing_recorder.h", |
| ] |
| |
| deps = [ |
| "nearby_decoder", |
| "//jingle:webrtc_glue", |
| "//third_party/webrtc_overrides:webrtc_component", |
| ] |
| |
| public_deps = [ |
| "//base", |
| "//chrome/services/sharing/public/cpp", |
| "//chrome/services/sharing/public/mojom", |
| "//mojo/public/cpp/bindings", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "nearby/test/mock_nearby_connections_host.cc", |
| "nearby/test/mock_nearby_connections_host.h", |
| "sharing_impl_unittest.cc", |
| "webrtc/sharing_webrtc_connection_integration_test.cc", |
| "webrtc/sharing_webrtc_connection_unittest.cc", |
| "webrtc/test/mock_sharing_connection_host.cc", |
| "webrtc/test/mock_sharing_connection_host.h", |
| ] |
| |
| deps = [ |
| ":sharing", |
| "//base/test:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |