| # 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. |
| |
| source_set("client") { |
| sources = [ |
| "client_channel.cc", |
| "client_channel.h", |
| "client_channel_impl.cc", |
| "client_channel_impl.h", |
| "connection_attempt.cc", |
| "connection_attempt.h", |
| "connection_attempt_impl.cc", |
| "connection_attempt_impl.h", |
| "secure_channel_client.h", |
| "secure_channel_client_impl.cc", |
| "secure_channel_client_impl.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//chromeos/components/proximity_auth/logging", |
| "//chromeos/services/secure_channel/public/cpp/shared", |
| "//chromeos/services/secure_channel/public/mojom", |
| "//mojo/public/cpp/bindings", |
| "//services/service_manager/public/cpp", |
| ] |
| } |
| |
| static_library("test_support") { |
| testonly = true |
| |
| sources = [ |
| ":shared", |
| "fake_client_channel.cc", |
| "fake_client_channel.h", |
| "fake_client_channel_observer.cc", |
| "fake_client_channel_observer.h", |
| "fake_connection_attempt.cc", |
| "fake_connection_attempt.h", |
| "fake_secure_channel_client.cc", |
| "fake_secure_channel_client.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//chromeos/services/secure_channel/public/cpp/client", |
| "//chromeos/services/secure_channel/public/cpp/shared", |
| "//chromeos/services/secure_channel/public/mojom", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "client_channel_impl_unittest.cc", |
| "secure_channel_client_impl_unittest.cc", |
| ] |
| |
| deps = [ |
| ":client", |
| ":test_support", |
| "//base", |
| "//base/test:test_support", |
| "//chromeos/components/multidevice", |
| "//chromeos/components/multidevice:test_support", |
| "//chromeos/services/secure_channel", |
| "//chromeos/services/secure_channel:test_support", |
| "//chromeos/services/secure_channel/public/cpp/shared", |
| "//chromeos/services/secure_channel/public/mojom", |
| "//services/service_manager/public/cpp/test:test_support", |
| "//testing/gtest", |
| ] |
| } |