summaryrefslogtreecommitdiff
path: root/chromium/components/openscreen_platform/BUILD.gn
blob: 7418f682c820ce58540e38c38536cb9e47141088 (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
64
65
# 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.

import("//testing/test.gni")

source_set("openscreen_platform") {
  sources = [
    "logging.cc",
    "network_util.cc",
    "network_util.h",
    "task_runner.cc",
    "task_runner.h",
    "time.cc",
    "trace_logging_platform.cc",
  ]

  public_deps = [ "//third_party/openscreen/src/platform" ]

  deps = [
    "//base",
    "//net",
  ]
}

source_set("openscreen_platform_network_service") {
  sources = [
    "network_context.cc",
    "network_context.h",
    "tls_client_connection.cc",
    "tls_client_connection.h",
    "tls_connection_factory.cc",
    "tls_connection_factory.h",
    "udp_socket.cc",
    "udp_socket.h",
  ]

  public_deps = [
    ":openscreen_platform",
    "//mojo/public/cpp/bindings",
    "//services/network/public/mojom",
  ]

  deps = [
    "//base",
    "//services/network:network_service",
  ]
}

source_set("unittests") {
  testonly = true

  sources = [
    "tls_client_connection_unittest.cc",
    "tls_connection_factory_unittest.cc",
  ]

  deps = [
    ":openscreen_platform_network_service",
    "//base/test:test_support",
    "//services/network:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}