chromium/chromeos/ash/services/hotspot_config/public/cpp/BUILD.gn

# 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")

source_set("cpp") {
  sources = [
    "cros_hotspot_config_observer.cc",
    "cros_hotspot_config_observer.h",
  ]

  deps = [ "//chromeos/ash/services/hotspot_config/public/mojom" ]
}

source_set("test_support") {
  testonly = true

  sources = [
    "cros_hotspot_config_test_helper.cc",
    "cros_hotspot_config_test_helper.h",
    "cros_hotspot_config_test_observer.cc",
    "cros_hotspot_config_test_observer.h",
    "fake_cros_hotspot_config.cc",
    "fake_cros_hotspot_config.h",
    "hotspot_enabled_state_test_observer.cc",
    "hotspot_enabled_state_test_observer.h",
  ]

  public_deps = [
    "//base",
    "//chromeos/ash/components/network:test_support",
    "//chromeos/ash/services/hotspot_config/public/mojom",
    "//mojo/public/cpp/bindings",
  ]

  deps = [
    "//chromeos/ash/components/network",
    "//chromeos/ash/services/hotspot_config",
    "//chromeos/ash/services/hotspot_config:in_process_hotspot_config",
  ]
}