# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
assert(is_chromeos_ash, "Non-ChromeOS builds cannot depend on //chromeos/ash")
static_library("hotspot_config") {
sources = [
"cros_hotspot_config.cc",
"cros_hotspot_config.h",
]
deps = [
"//base",
"//chromeos/ash/components/dbus/shill",
"//chromeos/ash/components/network",
"//chromeos/ash/services/hotspot_config/public/cpp",
"//chromeos/ash/services/hotspot_config/public/mojom",
]
}
component("in_process_hotspot_config") {
sources = [
"in_process_instance.cc",
"in_process_instance.h",
]
defines = [ "IS_IN_PROCESS_HOTSPOT_CONFIG_IMPL" ]
public_deps = [
"//chromeos/ash/services/hotspot_config/public/mojom",
"//mojo/public/cpp/bindings",
]
deps = [
":hotspot_config",
"//ash/constants",
"//chromeos/ash/components/network",
"//components/device_event_log",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "cros_hotspot_config_unittest.cc" ]
deps = [
":hotspot_config",
"//ash/constants",
"//base",
"//base/test:test_support",
"//chromeos/ash/components/dbus/shill:test_support",
"//chromeos/ash/components/login/login_state",
"//chromeos/ash/components/network:test_support",
"//chromeos/ash/services/hotspot_config/public/cpp:test_support",
"//testing/gtest",
]
}