1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # Copyright 2021 The Chromium Authors. All rights reserved.
- # 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-Chrome-OS builds must not depend on //ash")
- component("fwupd") {
- defines = [ "IS_ASH_FIRMWARE_UPDATE_MANAGER_IMPL" ]
- deps = [
- "//ash/public/cpp",
- "//ash/public/mojom",
- "//ash/webui/firmware_update_ui/mojom",
- "//base:base",
- "//chromeos/ash/components/dbus/fwupd",
- "//crypto",
- "//dbus",
- ]
- sources = [
- "firmware_update_manager.cc",
- "firmware_update_manager.h",
- "histogram_util.cc",
- "histogram_util.h",
- ]
- }
- source_set("unit_tests") {
- testonly = true
- deps = [
- ":fwupd",
- "//ash",
- "//ash:test_support",
- "//ash/constants",
- "//ash/public/cpp",
- "//ash/public/mojom",
- "//ash/webui/firmware_update_ui/mojom",
- "//base/test:test_support",
- "//chromeos/ash/components/dbus/fwupd",
- "//dbus:test_support",
- "//services/network:test_support",
- "//services/network/public/cpp",
- "//testing/gmock",
- "//testing/gtest",
- "//ui/message_center:test_support",
- ]
- sources = [
- "fake_fwupd_download_client.cc",
- "fake_fwupd_download_client.h",
- "firmware_update_manager_unittest.cc",
- ]
- }
|