naiveproxy/chromeos/services/secure_channel/BUILD.gn

108 lines
3.2 KiB
Plaintext
Raw Normal View History

2018-08-11 08:35:24 +03:00
# Copyright 2018 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.
assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
static_library("secure_channel") {
sources = [
"authenticated_channel.cc",
"authenticated_channel.h",
"authenticated_channel_impl.cc",
"authenticated_channel_impl.h",
"channel_impl.cc",
"channel_impl.h",
"client_connection_parameters.cc",
"client_connection_parameters.h",
"connect_to_device_operation.h",
"connect_to_device_operation_base.h",
"connect_to_device_operation_factory.h",
"connect_to_device_operation_factory_base.h",
"connection_attempt.h",
"connection_attempt_base.h",
"connection_attempt_delegate.h",
"connection_details.cc",
"connection_details.h",
"connection_medium.cc",
"connection_medium.h",
"multiplexed_channel.cc",
"multiplexed_channel.h",
"multiplexed_channel_impl.cc",
"multiplexed_channel_impl.h",
"pending_connection_request.h",
"pending_connection_request_base.h",
"pending_connection_request_delegate.cc",
"pending_connection_request_delegate.h",
"single_client_message_proxy.cc",
"single_client_message_proxy.h",
"single_client_message_proxy_impl.cc",
"single_client_message_proxy_impl.h",
]
deps = [
"//base",
"//chromeos/components/proximity_auth/logging",
"//chromeos/services/secure_channel/public/mojom",
"//components/cryptauth",
]
}
static_library("test_support") {
testonly = true
sources = [
"fake_authenticated_channel.cc",
"fake_authenticated_channel.h",
"fake_connect_to_device_operation.cc",
"fake_connect_to_device_operation.h",
"fake_connect_to_device_operation_factory.cc",
"fake_connect_to_device_operation_factory.h",
"fake_connection_attempt.cc",
"fake_connection_attempt.h",
"fake_connection_attempt_delegate.cc",
"fake_connection_attempt_delegate.h",
"fake_connection_delegate.cc",
"fake_connection_delegate.h",
"fake_message_receiver.cc",
"fake_message_receiver.h",
"fake_multiplexed_channel.cc",
"fake_multiplexed_channel.h",
"fake_pending_connection_request.cc",
"fake_pending_connection_request.h",
"fake_pending_connection_request_delegate.cc",
"fake_pending_connection_request_delegate.h",
"fake_single_client_message_proxy.cc",
"fake_single_client_message_proxy.h",
]
deps = [
":secure_channel",
"//base",
"//chromeos/services/secure_channel/public/mojom",
"//components/cryptauth:cryptauth",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"authenticated_channel_impl_unittest.cc",
"connect_to_device_operation_base_unittest.cc",
"connect_to_device_operation_factory_base_unittest.cc",
"connection_attempt_base_unittest.cc",
"multiplexed_channel_impl_unittest.cc",
"pending_connection_request_base_unittest.cc",
"single_client_message_proxy_impl_unittest.cc",
]
deps = [
":secure_channel",
":test_support",
"//base/test:test_support",
"//chromeos/services/secure_channel/public/mojom",
"//components/cryptauth:test_support",
"//testing/gtest",
]
}