# Copyright 2020 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. assert(is_chromeos) source_set("platform") { sources = [ "atomic_boolean.cc", "atomic_boolean.h", "atomic_uint32.cc", "atomic_uint32.h", "bidirectional_stream.cc", "bidirectional_stream.h", "ble_medium.cc", "ble_medium.h", "ble_peripheral.cc", "ble_peripheral.h", "ble_v2_gatt_client.cc", "ble_v2_gatt_client.h", "ble_v2_gatt_server.cc", "ble_v2_gatt_server.h", "ble_v2_medium.cc", "ble_v2_medium.h", "ble_v2_remote_peripheral.cc", "ble_v2_remote_peripheral.h", "ble_v2_server_socket.cc", "ble_v2_server_socket.h", "bluetooth_adapter.cc", "bluetooth_adapter.h", "bluetooth_classic_medium.cc", "bluetooth_classic_medium.h", "bluetooth_device.cc", "bluetooth_device.h", "bluetooth_server_socket.cc", "bluetooth_server_socket.h", "bluetooth_socket.cc", "bluetooth_socket.h", "bluetooth_utils.cc", "bluetooth_utils.h", "condition_variable.cc", "condition_variable.h", "count_down_latch.cc", "count_down_latch.h", "credential_storage.cc", "credential_storage.h", "input_file.cc", "input_file.h", "input_stream_impl.cc", "input_stream_impl.h", "log_message.cc", "log_message.h", "mutex.cc", "mutex.h", "nearby_platform_metrics.cc", "nearby_platform_metrics.h", "output_file.cc", "output_file.h", "output_stream_impl.cc", "output_stream_impl.h", "recursive_mutex.cc", "recursive_mutex.h", "scheduled_executor.cc", "scheduled_executor.h", "submittable_executor.cc", "submittable_executor.h", "webrtc.cc", "webrtc.h", "wifi_direct_medium.cc", "wifi_direct_medium.h", "wifi_direct_server_socket.cc", "wifi_direct_server_socket.h", "wifi_direct_socket.cc", "wifi_direct_socket.h", "wifi_lan_medium.cc", "wifi_lan_medium.h", "wifi_lan_server_socket.cc", "wifi_lan_server_socket.h", "wifi_lan_socket.cc", "wifi_lan_socket.h", ] configs += [ "//build/config/compiler:wexit_time_destructors" ] public_deps = [ "//third_party/nearby:connections_credential_proto", "//third_party/nearby:connections_local_credential_proto", "//third_party/nearby:platform_api_platform", "//third_party/nearby:platform_impl_shared_file", ] deps = [ "//ash/constants", "//base", "//chrome/browser/nearby_sharing/common", "//chrome/services/sharing/webrtc", "//chromeos/ash/components/nearby/presence/conversions", "//chromeos/ash/services/nearby/public/cpp:tcp_server_socket_port", "//chromeos/ash/services/nearby/public/mojom", "//chromeos/services/network_config/public/mojom", "//components/cross_device/logging", "//components/cross_device/nearby", "//components/webrtc:thread_wrapper", "//crypto", "//device/bluetooth", "//mojo/public/cpp/bindings", "//mojo/public/cpp/system", "//net", "//services/network/public/mojom", "//third_party/abseil-cpp:absl", "//third_party/nearby:platform_api_comm", ] } source_set("unit_tests") { testonly = true sources = [ "atomic_boolean_unittest.cc", "atomic_uint32_unittest.cc", "bidirectional_stream_unittest.cc", "ble_medium_unittest.cc", "ble_v2_gatt_client_unittest.cc", "ble_v2_gatt_server_unittest.cc", "ble_v2_medium_unittest.cc", "ble_v2_remote_peripheral_unittest.cc", "ble_v2_server_socket_unittest.cc", "bluetooth_adapter_unittest.cc", "bluetooth_classic_medium_unittest.cc", "bluetooth_server_socket_unittest.cc", "bluetooth_socket_unittest.cc", "bluetooth_utils_unittest.cc", "condition_variable_unittest.cc", "count_down_latch_unittest.cc", "credential_storage_unittest.cc", "input_file_unittest.cc", "input_stream_impl_unittest.cc", "multi_thread_executor_unittest.cc", "mutex_unittest.cc", "output_stream_impl_unittest.cc", "recursive_mutex_unittest.cc", "scheduled_executor_unittest.cc", "single_thread_executor_unittest.cc", "webrtc_test.cc", "wifi_direct_medium_unittest.cc", "wifi_direct_server_socket_unittest.cc", "wifi_direct_socket_unittest.cc", "wifi_lan_medium_unittest.cc", "wifi_lan_server_socket_unittest.cc", "wifi_lan_socket_unittest.cc", ] deps = [ ":platform", "//base/test:test_support", "//chrome/browser/nearby_sharing/common", "//chrome/services/sharing/nearby/test_support", "//chrome/test:test_support", "//chromeos/ash/components/login/login_state", "//chromeos/ash/components/nearby/common/connections_manager", "//chromeos/ash/services/nearby/public/cpp:tcp_server_socket_port", "//chromeos/ash/services/nearby/public/cpp:test_support", "//chromeos/ash/services/nearby/public/mojom", "//chromeos/ash/services/network_config:in_process_instance", "//chromeos/ash/services/network_config/public/cpp:test_support", "//components/cross_device/nearby", "//components/onc", "//components/prefs:test_support", "//components/proxy_config", "//components/session_manager/test:test_support", "//components/sync_preferences:test_support", "//device/bluetooth:deprecated_experimental_mojo", "//device/bluetooth:mocks", "//mojo/public/cpp/bindings", "//services/network/public/mojom", "//testing/gtest", ] # TODO(crbug.com/40031409): Fix code that adds exit-time destructors and # enable the diagnostic by removing this line. configs += [ "//build/config/compiler:no_exit_time_destructors" ] }