blob: 099a178a9f5e7b23e4b4d99f4059acfc66ca2ca0 [file] [log] [blame]
# 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/message_util.cc",
"channel/message_util.h",
"channel/receiver_socket_factory.cc",
"channel/static_credentials.cc",
"channel/static_credentials.h",
"public/receiver_socket_factory.h",
]
public_deps = [
"../../platform",
"../../third_party/abseil",
"../../third_party/boringssl",
"../common:channel",
"../common/channel/proto:channel_proto",
]
deps = [
"../../util",
"../common:certificate",
]
}
source_set("agent") {
sources = [
"application_agent.cc",
"application_agent.h",
]
public_deps = [
"../../platform",
"../common:channel",
"../common:public",
]
deps = [
":channel",
"../../util",
]
}
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",
"../common/channel/proto:channel_proto",
]
}
source_set("unittests") {
testonly = true
sources = [
"application_agent_unittest.cc",
"channel/device_auth_namespace_handler_unittest.cc",
]
deps = [
":agent",
":channel",
":test_helpers",
"../../platform:test",
"../../testing/util",
"../../third_party/googletest:gmock",
"../../third_party/googletest:gtest",
"../common:channel",
"../common/channel/proto:channel_proto",
]
data = [ "../../test/data/cast/receiver/channel/" ]
}