aboutsummaryrefslogtreecommitdiff
path: root/cast/receiver/BUILD.gn
blob: e0a62eba10278615fd6272520eb97c821f37745a (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
# Copyright 2019 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("channel") {
  sources = [
    "channel/device_auth_namespace_handler.cc",
    "channel/device_auth_namespace_handler.h",
    "channel/receiver_socket_factory.cc",
    "channel/receiver_socket_factory.h",
  ]

  public_deps = [
    "../../platform",
    "../../third_party/abseil",
    "../../third_party/boringssl",
    "../common:channel",
  ]

  deps = [
    "../../util",
    "../common:certificate",
    "../common/channel/proto:channel_proto",
  ]
}

source_set("test_helpers") {
  testonly = true
  sources = [
    "channel/testing/device_auth_test_helpers.cc",
    "channel/testing/device_auth_test_helpers.h",
  ]

  public_deps = [
    ":channel",
    "../../third_party/boringssl",
    "../common:test_helpers",
  ]
  deps = [
    "../../third_party/googletest:gtest",
  ]
}

source_set("unittests") {
  testonly = true
  sources = [
    "channel/device_auth_namespace_handler_unittest.cc",
  ]

  deps = [
    ":channel",
    ":test_helpers",
    "../../testing/util",
    "../../third_party/googletest:gmock",
    "../../third_party/googletest:gtest",
    "../common:channel",
    "../common/channel/proto:channel_proto",
  ]
}