chromium/chrome/browser/ash/extended_updates/test/BUILD.gn

# Copyright 2024 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)

static_library("test_support") {
  testonly = true

  public_configs = [ "//build/config/linux/dbus" ]

  sources = [
    "mock_extended_updates_controller.cc",
    "mock_extended_updates_controller.h",
    "scoped_extended_updates_controller.cc",
    "scoped_extended_updates_controller.h",
  ]

  deps = [
    "//base",
    "//chrome/browser/ash/extended_updates",
    "//testing/gmock",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "scoped_extended_updates_controller_unittest.cc" ]

  deps = [
    ":test_support",
    "//chrome/browser/ash/extended_updates",
    "//chrome/browser/profiles:profile",
    "//testing/gmock",
    "//testing/gtest",
  ]
}