summaryrefslogtreecommitdiff
path: root/chromium/chrome/services/sharing/BUILD.gn
blob: 7d3500d4f3954b7df42d2337dff8b7ae488a859b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# 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",
    "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",
  ]
}