1# Copyright 2019 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5source_set("channel") {
6  sources = [
7    "channel/device_auth_namespace_handler.cc",
8    "channel/device_auth_namespace_handler.h",
9    "channel/message_util.cc",
10    "channel/message_util.h",
11    "channel/receiver_socket_factory.cc",
12    "channel/static_credentials.cc",
13    "channel/static_credentials.h",
14    "public/receiver_socket_factory.h",
15  ]
16
17  public_deps = [
18    "../../platform",
19    "../../third_party/abseil",
20    "../../third_party/boringssl",
21    "../common:channel",
22    "../common/channel/proto:channel_proto",
23  ]
24
25  deps = [
26    "../../util",
27    "../common:certificate",
28  ]
29}
30
31source_set("agent") {
32  sources = [
33    "application_agent.cc",
34    "application_agent.h",
35  ]
36
37  public_deps = [
38    "../../platform",
39    "../common:channel",
40    "../common:public",
41  ]
42
43  deps = [
44    ":channel",
45    "../../util",
46  ]
47}
48
49source_set("test_helpers") {
50  testonly = true
51  sources = [
52    "channel/testing/device_auth_test_helpers.cc",
53    "channel/testing/device_auth_test_helpers.h",
54  ]
55
56  public_deps = [
57    ":channel",
58    "../../third_party/boringssl",
59    "../common:test_helpers",
60  ]
61  deps = [
62    "../../third_party/googletest:gtest",
63    "../common/channel/proto:channel_proto",
64  ]
65}
66
67source_set("unittests") {
68  testonly = true
69  sources = [
70    "application_agent_unittest.cc",
71    "channel/device_auth_namespace_handler_unittest.cc",
72  ]
73
74  deps = [
75    ":agent",
76    ":channel",
77    ":test_helpers",
78    "../../platform:test",
79    "../../testing/util",
80    "../../third_party/googletest:gmock",
81    "../../third_party/googletest:gtest",
82    "../common:channel",
83    "../common/channel/proto:channel_proto",
84  ]
85
86  data = [ "../../test/data/cast/receiver/channel/" ]
87}
88