# 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 //chromeos/ash")
component("fwupd") {
output_name = "ash_dbus_fwupd"
defines = [ "IS_ASH_DBUS_FWUPD_IMPL" ]
deps = [
"//ash/constants",
"//base",
"//chromeos/dbus/common",
"//components/device_event_log",
"//dbus",
"//url",
]
sources = [
"dbus_constants.h",
"fake_fwupd_client.cc",
"fake_fwupd_client.h",
"fwupd_client.cc",
"fwupd_client.h",
"fwupd_device.cc",
"fwupd_device.h",
"fwupd_properties.h",
"fwupd_properties_dbus.cc",
"fwupd_properties_dbus.h",
"fwupd_properties_fake.cc",
"fwupd_properties_fake.h",
"fwupd_request.cc",
"fwupd_request.h",
"fwupd_update.cc",
"fwupd_update.h",
]
}
source_set("test_support") {
testonly = true
deps = [
":fwupd",
"//ash/constants",
"//base/test:test_support",
"//dbus:test_support",
"//testing/gmock",
"//testing/gtest",
]
sources = [ "fwupd_client_unittest.cc" ]
}