# Copyright 2021 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 //ash")
static_library("backend") {
sources = [
"external_app_dialog.cc",
"external_app_dialog.h",
"shimless_rma_delegate.cc",
"shimless_rma_delegate.h",
"shimless_rma_service.cc",
"shimless_rma_service.h",
"version_updater.cc",
"version_updater.h",
]
public_deps = [ "//components/web_package:web_package" ]
deps = [
"//ash",
"//ash/public/cpp:cpp",
"//ash/webui/shimless_rma/mojom",
"//base",
"//chromeos/ash/components/dbus",
"//chromeos/ash/components/dbus/rmad",
"//chromeos/ash/components/dbus/rmad:rmad_proto",
"//chromeos/ash/components/dbus/update_engine",
"//chromeos/ash/components/dbus/update_engine:proto",
"//chromeos/ash/components/network",
"//chromeos/ash/services/cros_healthd/public/cpp",
"//chromeos/ash/services/cros_healthd/public/mojom",
"//chromeos/ash/services/network_config:in_process_instance",
"//chromeos/dbus/power",
"//chromeos/services/network_config/public/mojom",
"//chromeos/version",
"//components/input",
"//components/permissions:permissions",
"//components/qr_code_generator",
"//content/public/browser",
"//ui/display",
"//ui/gfx",
"//ui/views",
"//ui/views/controls/webview",
"//ui/web_dialogs",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"fake_shimless_rma_delegate.cc",
"fake_shimless_rma_delegate.h",
"shimless_rma_service_3p_diag_unittest.cc",
"shimless_rma_service_unittest.cc",
"version_updater_unittest.cc",
]
deps = [
":backend",
"//ash",
"//ash:test_support",
"//ash/public/cpp:cpp",
"//ash/webui/shimless_rma/mojom",
"//base",
"//base/test:test_support",
"//chromeos/ash/components:test_support",
"//chromeos/ash/components/dbus:test_support",
"//chromeos/ash/components/dbus/rmad",
"//chromeos/ash/components/dbus/rmad:rmad_proto",
"//chromeos/ash/components/dbus/update_engine:update_engine",
"//chromeos/ash/components/login/login_state:login_state",
"//chromeos/ash/components/mojo_service_manager:test_support",
"//chromeos/ash/components/network",
"//chromeos/ash/components/network:test_support",
"//chromeos/ash/services/cros_healthd/public/cpp:test_support",
"//chromeos/ash/services/cros_healthd/public/mojom",
"//chromeos/ash/services/network_config/public/cpp:test_support",
"//chromeos/dbus/power",
"//chromeos/services/network_config/public/mojom",
"//chromeos/services/network_config/public/mojom:network_types_shared_cpp_sources",
"//components/onc:onc",
"//components/prefs:test_support",
"//components/proxy_config:proxy_config",
"//components/qr_code_generator",
"//components/sync_preferences:test_support",
"//components/user_manager:test_support",
"//content/test:test_support",
"//services/data_decoder/public/cpp:test_support",
"//services/device/public/cpp:test_support",
"//testing/gtest",
"//ui/gfx",
"//ui/shell_dialogs",
"//ui/webui",
]
}