blob: 18792231a211f61c3c9d08f786361fdf5806e5e7 [file] [log] [blame]
# 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 = [
"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 = [
"//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 = [
"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",
]
}